A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Count, Sum, Index,Match or other formula needed



 
 
Thread Tools Display Modes
  #1  
Old May 4th, 2010, 07:22 PM posted to microsoft.public.excel.worksheet.functions
nadine
external usenet poster
 
Posts: 303
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  
Old May 4th, 2010, 09:01 PM posted to microsoft.public.excel.worksheet.functions
Tom Hutchins
external usenet poster
 
Posts: 722
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.

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 02:30 PM.


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