Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Not sure what type of formula to use

I'm trying to find in one of my rows of my excel spreadsheet specific
countries like Germany, Italy, France, etc. I need a formula that will
display IF one of those names occurs in that row, it will display a Y for
Yes. If it is not one of those names, I want it to display a N for No.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 22
Default Not sure what type of formula to use

You can use "countif" for this. Here's how it would work:

Row 1 = your data range
Column A = the values you want to find

Here's some sample data:
Row 1 Column A (starting in row 2)
Germany Germany
Italy USA
Austria
France
Hungary

In cell B2, next to Germany, your formula would be:
=if(countif($1:$1,a2)=0,"No","Yes")

Beverly

"woodson87" wrote:

I'm trying to find in one of my rows of my excel spreadsheet specific
countries like Germany, Italy, France, etc. I need a formula that will
display IF one of those names occurs in that row, it will display a Y for
Yes. If it is not one of those names, I want it to display a N for No.

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Not sure what type of formula to use

I'm assuming you mean that if the range contains Germany *OR* Italy *OR*
France then return Y.

Try this...

=IF(SUM(COUNTIF(A1:J1,{"Germany","Italy","France"} )),"Y","N")

--
Biff
Microsoft Excel MVP


"woodson87" wrote in message
...
I'm trying to find in one of my rows of my excel spreadsheet specific
countries like Germany, Italy, France, etc. I need a formula that will
display IF one of those names occurs in that row, it will display a Y for
Yes. If it is not one of those names, I want it to display a N for No.



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
What type formula to use? CE Excel Worksheet Functions 6 June 10th 09 04:47 PM
Cannot see formula descriptions in worksheet as I type a formula. RABL33 Excel Worksheet Functions 5 January 17th 07 06:59 AM
Look for a certain type of formula... jimmy Excel Discussion (Misc queries) 0 October 10th 06 09:11 PM
Just need to know what type of formula i would use for this DHS64 Excel Worksheet Functions 2 September 26th 05 10:18 PM
"IF" type formula G118 Excel Discussion (Misc queries) 1 February 21st 05 04:53 PM


All times are GMT +1. The time now is 03:04 PM.

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"