Yes/No using criteria in two cells on second worksheet

theAphex

New Member
Joined
Sep 9, 2011
Messages
7
On the primary sheet I have a list of 10 names in Column A, followed by a list of 10 user ID's in Column B.

Ex:/
PHP:
  NAME       USER ID      YES/NO
  AAA         A12345
  BBB         B56789
  CCC         C56898
etc...
I need a formula in column C to look at data on a second sheet (which contains over 100 user ID's), find the row that matches the user ID and check in Columns D or E (on second sheet) to see if either is greater than 0. If the either is greater than 0, i want it to return a YES, if not, NO.

I figure i would need some combination of an If/Then with a Vlookup, but im getting stuck.

Any help would be greatly appreciated!!


EDIT: I'm actually starting to wonder if a 'Countif' function may be better suited for this problem.
 
Last edited:

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.
Assuming that there will be always number in column D & E:
=IF(OR(INDEX(Sheet2!$A$2:$E$4,MATCH(B2,Sheet2!$A$2:$A$4,0),4)>0,INDEX(Sheet2!$A$2:$E$4,MATCH(B2,Sheet2!$A$2:$A$4,0),5)>0),"YES","NO")
 
Upvote 0

Forum statistics

Threads
1,224,521
Messages
6,179,286
Members
452,902
Latest member
Knuddeluff

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top