Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default Find & replace with text

I have a column in excel that has invoice numbers from two departments
They start with S-####### or WO-######. I want to add another column and
insert text "counter" if it is an invoice that starts with S and text "work
order" if invoice number started with WO*. I tried the IF function but my
result always comes out false. Can someone help please?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Find & replace with text

=if(right(a2,1)="s","Counter","Work Order")
if the only two options are S* and WO*

=if(left(a2,1)="s","Counter",if(left(a2,2)="wo","W ork Order","Not specified"))



Waheeda Ali wrote:

I have a column in excel that has invoice numbers from two departments
They start with S-####### or WO-######. I want to add another column and
insert text "counter" if it is an invoice that starts with S and text "work
order" if invoice number started with WO*. I tried the IF function but my
result always comes out false. Can someone help please?


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default Find & replace with text

Thank you Dave. It worked.

"Dave Peterson" wrote:

=if(right(a2,1)="s","Counter","Work Order")
if the only two options are S* and WO*

=if(left(a2,1)="s","Counter",if(left(a2,2)="wo","W ork Order","Not specified"))



Waheeda Ali wrote:

I have a column in excel that has invoice numbers from two departments
They start with S-####### or WO-######. I want to add another column and
insert text "counter" if it is an invoice that starts with S and text "work
order" if invoice number started with WO*. I tried the IF function but my
result always comes out false. Can someone help please?


--

Dave Peterson

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
Replace can't find text dac Excel Discussion (Misc queries) 1 October 26th 07 10:26 PM
find text in cell and replace it with part of the text in that ce. jules Excel Discussion (Misc queries) 3 May 3rd 07 10:18 AM
Find & Replace in Text Box Ed Excel Discussion (Misc queries) 10 March 28th 07 03:03 AM
Find & Replace text format jmn13 Excel Discussion (Misc queries) 2 May 25th 06 06:18 PM
Find/Replace Text In Cells Rob Excel Discussion (Misc queries) 1 April 11th 05 04:01 AM


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