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? |
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? |
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 |
All times are GMT +1. The time now is 03:13 PM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com