Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 116
Default Removing extra characters in a cell

I am working on a forecasting spreadsheet and have item numbers in column "a"
and # sold in column "b". I have run subtotal so it has added the word
"total" to the end of the part number. I then copied just the totals to
another worksheet and I am trying to use the lookup function but it won't
look up these "total part numbers" because it no longer matches my part
numbers. My problem is that my part numbers are all over the map as far as
length. Some are as short as 6 digits and some can be 13 or 14 digits so I
can't use the left function. Any suggestions?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,290
Default Removing extra characters in a cell

From the Edit menu, do a Replace.
Replace total with nothing (leave the "replace with" box blank)
--
Jim Cone
San Francisco, USA
http://www.realezsites.com/bus/primitivesoftware
(Excel Add-ins / Excel Programming)


"Sherry"
wrote in message
I am working on a forecasting spreadsheet and have item numbers in column "a"
and # sold in column "b". I have run subtotal so it has added the word
"total" to the end of the part number. I then copied just the totals to
another worksheet and I am trying to use the lookup function but it won't
look up these "total part numbers" because it no longer matches my part
numbers. My problem is that my part numbers are all over the map as far as
length. Some are as short as 6 digits and some can be 13 or 14 digits so I
can't use the left function. Any suggestions?
  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4,393
Default Removing extra characters in a cell

Tell us what you mean by: I have run subtotal so it has added the word
"total" to the end of the part number

--
Bernard V Liengme
Microsoft Excel MVP
www.stfx.ca/people/bliengme
remove caps from email

"Sherry" wrote in message
...
I am working on a forecasting spreadsheet and have item numbers in column
"a"
and # sold in column "b". I have run subtotal so it has added the word
"total" to the end of the part number. I then copied just the totals to
another worksheet and I am trying to use the lookup function but it won't
look up these "total part numbers" because it no longer matches my part
numbers. My problem is that my part numbers are all over the map as far
as
length. Some are as short as 6 digits and some can be 13 or 14 digits so
I
can't use the left function. Any suggestions?



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 80
Default Removing extra characters in a cell

If I undertand what you are trying to accomplish, use this formula to
strip the word TOTAL from the subtotal cell text:
=LEFT(A6,LEN(A6)-6). Where for example A6="123part Total". This
formula would return "123part".

Use that in your lookup formula, like
=vlookup(LEFT(A6,LEN(A6)-6),mydatatable,2,false).

Reply
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
Removing characters from a cell (keeping only the numbers) Monk Excel Discussion (Misc queries) 9 January 24th 06 03:32 PM
Removing characters from a cell (keeping only numbers) 2 Monk Excel Discussion (Misc queries) 6 January 24th 06 02:45 PM
Removing random extra spaces jermsalerms Excel Discussion (Misc queries) 3 January 18th 06 04:40 PM
limiting or deleting extra characters in a cell dprichard Excel Discussion (Misc queries) 3 October 28th 05 09:57 PM
removing some of the characters from a cell Patience Excel Discussion (Misc queries) 2 May 3rd 05 08:28 PM


All times are GMT +1. The time now is 10:34 AM.

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"