Solved

Excel - Trim Script

Posted on 2013-12-13
2
253 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

How to quickly and accurately populate Word documents with Excel data, charts and images (including Automated Bookmark generation) David Miller (dlmille) Synopsis In this article you’ll learn how to use ExcelToWord! to copy data,charts, shapes …
This article will guide you to convert a grid from a picture into Excel format using Microsoft OneNote and no other 3rd party application.
Graphs within dashboards are meant to be dynamic, representing data from a period of time that will change each time the dashboard is updated with new data. Rather than update each graph to point to a different set within a static set of data, t…
This Micro Tutorial will demonstrate how to create pivot charts out of a data set. I also added a drop-down menu which allows to choose from different categories in the data set and the chart will automatically update.

932 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

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now