LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 87
Default Brain Clog! Help with formula, please

I have a column of UPC numbers, most of which are 10 characters, which is
all we need for our purposes. But, some contain an 11th check digit at the
beginning, which we do NOT want, since it interferes somewhat with reading
accuracy.

Examples:
Some look like: 3600012345
Others look like: 73600012345

I want to remove the 7, and also split the remaining 10 digits with a dash,
so we get this:
36000-12345

No calculation is ever done with these characters - they're used only as
text. I know how to use the RIGHT() & LEFT() functions, so I can strip off
the chars I want, but I do NOT know how to have Excel check to see if there
are 11 digits and automatically get rid of the first one. I can do it in
Access or Paradox, but I'd rather not add an extra chore, since I'll be
receiving these files once a week. I suppose I could sort the whole list,
which would put all the 11-char string in one place, and then use two
different string formulae to handle the different groups, but that's not
very elegant.

Help!


 
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
Locking portions of a formula tiggatattoo Excel Worksheet Functions 2 June 5th 06 04:51 PM
assign formula to another cell Dannycol Excel Worksheet Functions 3 May 12th 06 09:46 PM
Formula Problem - interrupted by #VALUE! in other cells!? Ted Excel Worksheet Functions 17 November 25th 05 05:18 PM
Creating a check mark box MarthaSue Setting up and Configuration of Excel 18 April 28th 05 12:31 AM
Match / Vlookup within an Array formula Hari Prasadh Excel Discussion (Misc queries) 3 February 3rd 05 04:37 PM


All times are GMT +1. The time now is 05:32 AM.

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

About Us

"It's about Microsoft Excel"