Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 216
Default Count, Sum, Index,Match or other formula needed

Using Excel 2003:
One row is a set of numbers. I need to match that to another worksheet and
find certain results in it. Here's the trick. This second worksheet will
have these numbers over and over again with either Yes or No in the column I
want returned. Example, number in cell one is shown 10 times in the second
worksheet sometimes with yes and sometimes with no in the column I want back.


The result need to find the number in the 1st worksheet and return a No if
any of the matching in the 2nd worksheet contain a No in the column I want
returned even if sometimes it has a Yes for this number.

Example:
Worksheet 2:
# Yes/No
123 Yes
456 No
789 No
789 No
789 Yes
123 No
456 No
456 No
123 Yes

Results should be:
123 Yes
456 No
789 Yes

Thanks.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,069
Default Count, Sum, Index,Match or other formula needed

Not elegant, but this should work:
=IF(SUMPRODUCT(--(Sheet2!$A$1:$A$200=Sheet1!A1),--(Sheet2!$B$1:$B$200="No"))0,"No",IF(SUMPRODUCT(--(Sheet2!$A$1:$A$200=Sheet1!A1),--(Sheet2!$B$1:$B$200="Yes"))0,"Yes","Not found"))

Adjust ranges as needed. In Excel 2003 you can't use whole columns with
SUMPRODUCT.

BTW, your sample data has at least one NO for each number, so the results
should be No, No, and No.

Hope this helps,

Hutch

"Nadine" wrote:

Using Excel 2003:
One row is a set of numbers. I need to match that to another worksheet and
find certain results in it. Here's the trick. This second worksheet will
have these numbers over and over again with either Yes or No in the column I
want returned. Example, number in cell one is shown 10 times in the second
worksheet sometimes with yes and sometimes with no in the column I want back.


The result need to find the number in the 1st worksheet and return a No if
any of the matching in the 2nd worksheet contain a No in the column I want
returned even if sometimes it has a Yes for this number.

Example:
Worksheet 2:
# Yes/No
123 Yes
456 No
789 No
789 No
789 Yes
123 No
456 No
456 No
123 Yes

Results should be:
123 Yes
456 No
789 Yes

Thanks.

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
concatenate within an Index/Match formula, or is another approach needed? Harold Good Excel Worksheet Functions 3 February 16th 09 07:16 PM
Index/ Match enhancement needed charles Excel Discussion (Misc queries) 3 September 15th 06 07:11 AM
Index Match Help Needed Badly [email protected] Excel Discussion (Misc queries) 4 May 8th 06 02:45 AM
Index and Match Help Needed carl Excel Worksheet Functions 3 September 26th 05 09:42 PM
Index and match functions help needed. Zak Excel Worksheet Functions 5 September 1st 05 02:08 PM


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