Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 27
Default 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   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,276
Default 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   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 913
Default 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
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
borders between 2 specific words pedy Excel Discussion (Misc queries) 0 July 2nd 09 03:09 PM
Search for specific words Newberry Excel Worksheet Functions 3 July 21st 05 10:18 PM
counting specific words jen Excel Worksheet Functions 2 June 25th 05 12:46 AM
Highlight a row if a specific cell is specific numbers/words sea0221 Excel Worksheet Functions 2 March 9th 05 12:06 AM
how do I find an average number of specific words in a column cashgrfx New Users to Excel 7 January 6th 05 04:44 PM


All times are GMT +1. The time now is 11:33 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"