ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Find & replace with text (https://www.excelbanter.com/excel-discussion-misc-queries/218030-find-replace-text.html)

Waheeda Ali

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?

Dave Peterson

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

Waheeda Ali

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



All times are GMT +1. The time now is 07:08 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com