LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.misc
ConfusedNHouston
 
Posts: n/a
Default Copy Text to Right of Hyphen

I am importing data from a database that describes hundreds of products that
we sell. Each product code has a suffix to indicate the container-type that
it's sold in. The format for these data is "ABC1234-55" wherein the -55
indicates a 55 gallon drum. These suffixes vary from 2 digits to 7 digits in
lenght; which means I cannot readily use the =RIGHT(cell, 2).

Is there some version of the RIGHT command or some other means by which I
can copy the contents of the cell that are to the right of the hyphen? For
instance; Column A would have ABC12345-55 in (A1) and XYZ4444-999OW in (A2).
I'd like to write a function that would paste 55 in (B1) and 999OW in (B2).

Thanks..
 
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
how do I copy an entire worksheet to another with text & format? kb Excel Discussion (Misc queries) 15 July 4th 08 09:25 PM
Copy a string text to cell if another cell not empty Pasmatos Excel Discussion (Misc queries) 0 November 25th 05 03:54 PM
Truncating text before a hyphen tcjay Excel Worksheet Functions 1 September 6th 05 12:43 PM
Find text in cell, copy row to new sheet Ajay Excel Discussion (Misc queries) 6 June 29th 05 08:40 AM
How to copy a formula as text to another cell? Audrey Excel Discussion (Misc queries) 2 February 16th 05 07:35 PM


All times are GMT +1. The time now is 06:50 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"