简体   繁体   中英

Excel Index Match and return “Yes” or “No” If value is present in adjacent column

I think I'm over complicating this, but I can't find a solution for this issue.

In Table1, I have a list of job names and if they were processed as Color or B&W. Jobs could be both B&W and Color, just B&W, or just Color. In a Table2, I need to reference the job name from Table1 and determine if that job was processed in color.

Is there a formula that can match the job name from the Table2 to the job name in Table1 tell me if that job was processed in color? Every formula I've tried results in recognizing only the first value for "Type".

I can't post images, but click here for a simplified Table1:

表格1

And here for Table2. I need to populate the results in cells B2:B4 in Table2.

表2

Thank you in advance for your time and expertise!

Try this in Column B of Table 2 :
=COUNTIFS(Sheet1!$A2:$A11,$A2,Sheet1!$B2:$B11,"Color")>=1

You should then be able to drag the formula down to check the remaining cells.

NOTE: the $A2 reference won't need a sheet reference, but it's referring to $A2 on the sheet where Table 2 lives.

You'll need to update Sheet1!$A2:$A11 with your actual sheet name where Table 1 lives and the full column that the data covers (same goes for Sheet1!$B2:$B11 ), but this should work for you.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM