Need help with a formula

RLJ

Active Member
Joined
Mar 15, 2011
Messages
417
Office Version
  1. 365
Platform
  1. Windows
I need a formula for the below example. I have tried using an =IF(VLOOKUP... that comes up with #N/A when something is not on the second table.

I have 2 tables of information. The one in columns A:C and the second in columns E:G. The table in E:G will not always have the same items as the table from A:C. I need a formula for column C that will reference the ID from Columns A & E and if it is on the table E:G to look at Column G to see if there is a blank or not. If there is a blank then the value in column C needs to be Yes and if column G is not blank then the value in column C needs to be No.

In addition, if the corresponding value from Column A is NOT in Column E, then I want the Value in Column C to also be NO.

Book1
ABCDEFG
1Product IDDescriptionOutstandingProduct IDDate AssignedDate Completed
212341 DescNo12372/29/20243/8/2024
312352 DescNo12382/29/2024
412363 DescNo12393/1/20243/8/2024
512374 DescNo12403/3/2024
612385 DescYes
712396 DescNo
812407 DescYes
912418 DescNo
1012429 DescNo
11124310 DescNo
12124411 DescNo
13124512 DescNo
14124613 DescNo
Sheet1
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
How about
Excel Formula:
=IF(XLOOKUP(A2,$E$2:$E$5,$G$2:$G$5,"")=0,"Yes","No")
 
Upvote 0
Solution
Give this a try:
Book1
ABCDEFG
1Product IDDescriptionOutstandingProduct IDDate AssignedDate Completed
212341 DescNo12372/29/20243/8/2024
312352 DescNo12382/29/2024
412363 DescNo12393/1/20243/8/2024
512374 DescNo12403/3/2024
612385 DescYes
712396 DescNo
812407 DescYes
912418 DescNo
1012429 DescNo
11124310 DescNo
12124411 DescNo
13124512 DescNo
14124613 DescNo
Sheet3
Cell Formulas
RangeFormula
C2:C14C2=IFERROR(IF(XLOOKUP(A2,$E$2:$E$5,$G$2:$G$5)="","Yes","No"),"No")
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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