Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
=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
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
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 |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Replace can't find text | Excel Discussion (Misc queries) | |||
find text in cell and replace it with part of the text in that ce. | Excel Discussion (Misc queries) | |||
Find & Replace in Text Box | Excel Discussion (Misc queries) | |||
Find & Replace text format | Excel Discussion (Misc queries) | |||
Find/Replace Text In Cells | Excel Discussion (Misc queries) |