Solved

Excel - Trim Script

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

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Suggested Solutions

Introduction While answering a recent question (http:/Q_27311462.html), I created an alternative function to the Excel Concatenate() function that you might find useful.  I tested several solutions and share the results in this article as well as t…
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;…
This Micro Tutorial will demonstrate in Google Sheets how to use the HYPERLINK function to create live links inside your spreadsheet.
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.

707 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

16 Experts available now in Live!

Get 1:1 Help Now