Solved

Excel - Trim Script

Posted on 2013-12-13
2
279 Views
Last Modified: 2013-12-13
Objective:  Trim an Excel spreadsheet field

We have a field that contains 15 digits and I need to keep the first three and last five digits and store into another field in the same row.  

Current Field =  "=tblBoundBook!AH"
Target / Desired Field = "=tblBoundBook!AI"

Would prefer to to have this setup in a function whereas when I leave the current field the target field is updated with the first three and last five digits.
0
Comment
Question by:REIHELPDESK
2 Comments
 
LVL 12

Accepted Solution

by:
Harry Lee earned 200 total points
ID: 39717753
Put the following formula in the tblBoundBook!AI column.

=if(tblBoundBook!AH1="","",left(tblBoundBook!AH1,3)&right(tblBoundBook!AH1,5))

should do the job for you.
0
 

Author Comment

by:REIHELPDESK
ID: 39717811
Awesome! I was just watching youtube and testing... Love EE and Youtube.
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This tutorial explains how to create a series of drop-down lists that are dependent upon prior selections to guide (“force”) the user to make the correct selection and reduce data errors within Microsoft Excel. Excel 2010 was used for this tutorial;…
Freeze panes is an option within all variants of Excel to enable parts of a sheet to remain stationary when the cursor is in another part of the sheet. This is a very useful feature which is overlooked or under used.
The viewer will learn how to create a normally distributed random variable in Excel, use a normal distribution to simulate the return on an investment over a period of years, Create a Monte Carlo simulation using a normal random variable, and calcul…
This Micro Tutorial will demonstrate in Microsoft Excel how to add style and sexy appeal to horizontal bar charts.

679 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question