LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 16
Default LEFT and MID

Hello,

I need to prep a spreadsheet to be imported into an Access table. The cells
have an ID number that consists of 10 characters. I only need to pull in 6
characters and thus am looking for the commands within Excel to allow me to
do so with some additional logic -

Numbers as they exist in the spreadsheet as is

6992065300 is in cell D4
IT5785111200 is in cell D5

Need logic (if statement?) to return the results of a single cell as follows

Cell D4 above would be the first 6 characters 699206 and retuened in the
cell where the formula resides.

Cell D5 above would need to return 578511

So, if the contents of the cells being checked does not begin with IT then
results are the first 6 characters - if the contents of the cells being
checked begin with IT then results are 6 characters beginning with the 3rd
character.

Thank you -


 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
LEFT function-all to left of a comma? Jennifer F Excel Worksheet Functions 1 January 21st 09 11:19 PM
when inserting new worksheets they read right to left not left to. Andy Setting up and Configuration of Excel 2 December 3rd 08 09:51 PM
My Excel view is Right to Left instead of Left to Right !!! Akash Puri Excel Discussion (Misc queries) 2 May 5th 08 07:15 PM
How to make a cell appear in upper left (top left) corner of works jeff Excel Programming 2 March 6th 07 10:14 PM
How to change the right-to-left worksheet to left-to-right workshe RAMA Excel Discussion (Misc queries) 1 July 4th 05 01:57 PM


All times are GMT +1. The time now is 12:48 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"