Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.misc
|
|||
|
|||
How do I find specific words and reference it
I want Excel to say "Westmidlands" if Postcode in column J starts with "B or
CV or W" and "Scotland" if the postcode starts with "AB or G". How do I do that? |
#2
Posted to microsoft.public.excel.misc
|
|||
|
|||
How do I find specific words and reference it
Hi,
=if(or(J1="B",J1="CV",J1="W"),"Westmidlands","Scot land") "Shaz" wrote: I want Excel to say "Westmidlands" if Postcode in column J starts with "B or CV or W" and "Scotland" if the postcode starts with "AB or G". How do I do that? |
#3
Posted to microsoft.public.excel.misc
|
|||
|
|||
How do I find specific words and reference it
On Mon, 27 Jul 2009 08:24:01 -0700, Shaz
wrote: I want Excel to say "Westmidlands" if Postcode in column J starts with "B or CV or W" and "Scotland" if the postcode starts with "AB or G". How do I do that? Try this formula: =IF(OR(EXACT(LEFT(J1,1),"B"),EXACT(LEFT(J1,2),"CV" ), EXACT(LEFT(J1,1),"W")),"Westmidlands",IF(OR(EXACT( LEFT(J1,2),"AB"), EXACT(LEFT(J1,1),"G")),"Scotland","not specified what to say")) Hope this helps / Lars-Åke |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
borders between 2 specific words | Excel Discussion (Misc queries) | |||
Search for specific words | Excel Worksheet Functions | |||
counting specific words | Excel Worksheet Functions | |||
Highlight a row if a specific cell is specific numbers/words | Excel Worksheet Functions | |||
how do I find an average number of specific words in a column | New Users to Excel |