Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 20
Default Compare text in cell to custom text format??

Hi guys, I have a list of shipment codes e.g. 06G271, 06G272, 06G273
etc. Occasionnally, I get a shipment code that has an additional
letter as a suffix e.g. 06G273A . The suffix is always the letter A.

I have the list of codes setup in column A. In column B, i would like
a formula to check whether the shipment code in the same row has this
additional suffix and if so print it into column B, and then if it
doesn't just leave the cell blank.

e.g.

If A1 is 06G271 then B1 would be blank because it has no suffix.

If A2 is 06G271A then i would want B2 to display 06G271A.

Any ideas?

Regards,

Tom Pritchard

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 427
Default Compare text in cell to custom text format??

Try this formula in column B:

=IF(RIGHT(A1,1)="A",A1,"")

....where cell A1 contains the shipping code to be tested. You can copy/
paste that into the remaining cells in column B as needed.

Dave O

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
Custom format (time) and wrapping text in a cell Phrank Excel Worksheet Functions 6 December 9th 06 01:48 PM
custom format cell with text and numbers maryj Excel Discussion (Misc queries) 5 December 8th 06 04:44 PM
Use custom format to add text to a text entry. Pierre Excel Worksheet Functions 4 October 30th 06 04:42 PM
Custom format with text PierreL Excel Discussion (Misc queries) 2 October 14th 05 06:46 PM
Custom format a text cell with square brackets: [ ] ? StargateFan Excel Discussion (Misc queries) 2 February 6th 05 03:35 PM


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