Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default If Statement and a List

I have a column with 100 names in it. Of those names, 6 are part of a
special category. The column with 100 names gets updated automatically via
macro, while the 6 names category rarely changes. If they do change, I will
manually update the list.

What I want to do is write an IF function that says, if one of the 100 names
appears in the special list of six, I want the function to return "Yes", if
not, "No".

Any suggestions?

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,344
Default If Statement and a List

Try something like this:

=IF(SUMPRODUCT(COUNTIF(A1:A8,C1:C3))0,"Yes","No")


--
Cheers,
Shane Devenshire


"mikesaysgobears" wrote:

I have a column with 100 names in it. Of those names, 6 are part of a
special category. The column with 100 names gets updated automatically via
macro, while the 6 names category rarely changes. If they do change, I will
manually update the list.

What I want to do is write an IF function that says, if one of the 100 names
appears in the special list of six, I want the function to return "Yes", if
not, "No".

Any suggestions?

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default If Statement and a List

Try this:

A1:A100 = names
G1:G6 = special category names

=IF(SUMPRODUCT(--(ISNUMBER(MATCH(A1:A100,G1:G6,0)))),"Yes","No")

Biff

"mikesaysgobears" wrote in
message ...
I have a column with 100 names in it. Of those names, 6 are part of a
special category. The column with 100 names gets updated automatically
via
macro, while the 6 names category rarely changes. If they do change, I
will
manually update the list.

What I want to do is write an IF function that says, if one of the 100
names
appears in the special list of six, I want the function to return "Yes",
if
not, "No".

Any suggestions?



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default If Statement and a List

Thanks - I would like to apply this formula to each of the 100 names;
however, this formula does not refer to the cells in the list.


"ShaneDevenshire" wrote:

Try something like this:

=IF(SUMPRODUCT(COUNTIF(A1:A8,C1:C3))0,"Yes","No")


--
Cheers,
Shane Devenshire


"mikesaysgobears" wrote:

I have a column with 100 names in it. Of those names, 6 are part of a
special category. The column with 100 names gets updated automatically via
macro, while the 6 names category rarely changes. If they do change, I will
manually update the list.

What I want to do is write an IF function that says, if one of the 100 names
appears in the special list of six, I want the function to return "Yes", if
not, "No".

Any suggestions?

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,344
Default If Statement and a List

Hi Mike,

I'm not sure what you mean by this formula does not refer to the cells in
the list.

In the example I sent the A1:A8 is your long list and C1:C3 is your short
list. Just replace these with the addresses of your two ranges.

=IF(SUMPRODUCT(COUNTIF(A1:A8,C1:C3))0,"Yes","No")

Cheers,
Shane Devenshire


"mikesaysgobears" wrote:

Thanks - I would like to apply this formula to each of the 100 names;
however, this formula does not refer to the cells in the list.


"ShaneDevenshire" wrote:

Try something like this:

=IF(SUMPRODUCT(COUNTIF(A1:A8,C1:C3))0,"Yes","No")


--
Cheers,
Shane Devenshire


"mikesaysgobears" wrote:

I have a column with 100 names in it. Of those names, 6 are part of a
special category. The column with 100 names gets updated automatically via
macro, while the 6 names category rarely changes. If they do change, I will
manually update the list.

What I want to do is write an IF function that says, if one of the 100 names
appears in the special list of six, I want the function to return "Yes", if
not, "No".

Any suggestions?

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
If statement with validation list Pete Excel Worksheet Functions 7 January 2nd 07 07:46 PM
list embedded in an if statement rk0909 Excel Discussion (Misc queries) 0 March 14th 06 03:45 PM
adding a drop down list to an If Statement? robc Excel Worksheet Functions 1 February 13th 06 09:07 PM
If statement with a drop down list heater Excel Discussion (Misc queries) 1 September 1st 05 10:26 PM
Drop down list with an if statement khelton Excel Worksheet Functions 2 June 6th 05 09:11 PM


All times are GMT +1. The time now is 11:59 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"