krunal123

Board Regular
Joined
Jun 26, 2020
Messages
169
Office Version
  1. 365
  2. 2019
  3. 2016
Platform
  1. Windows
123.jpg


# 1st Condition : MATCH Data 1st "SHEET 1 WITH '"SHEET 2"

# 2nd Condition : "SHEET 2" MATCH DATA with other Workbook "SHEET 1" like this

BOTH CONDITION MATCH AFTER SHOW ME STATUS " YES / NO " in Worksheet 2 > SHEET 1
 

Excel Facts

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.
I am not 100% clear on what you are trying to achieve but as it was described I don't see how the order of checking Sheet 1 to Sheet 2 first really matters.
The way I am reading it, if any of the matches fails you want to return a NO in the Status column.

The file path and file name will be invalid on your system so the below will give you NO and try and find a file, you will need to put in the file path and workbook name you need.
There are simpler functions than XLookup for the 3rd check put I have worked on the assumption you need a function that works on a closed workbook.


20210330 Xlookup Closed workbook etc.xlsx
ABCDE
1
2NoProductsQtyAmtStatus
31Coconut OilNO
4500 ML x 48 BTL 
52Mustard OilNO
6750 ML x 96 BTL 
73RICENO
850 KG x 6 BAG 
Sheet1
Cell Formulas
RangeFormula
E3:E8E3=IF(ISNUMBER(A3), IF(OR( ISNA(MATCH(B3,'C:\Test\[Worksheet 1.xlsx]Sheet1'!$A$2:$A$6,0)), ISNA(MATCH(B4,'C:\Test\[Worksheet 1.xlsx]Sheet1'!$C$2:$C$7,0)), ISNA(XLOOKUP(1,('C:\Test\[Worksheet 1.xlsx]Sheet2'!$A$3:$A$5=B3)*('C:\Test\[Worksheet 1.xlsx]Sheet2'!$B$3:$B$5=B4),'C:\Test\[Worksheet 1.xlsx]Sheet2'!$A$3:$A$5,#N/A,0)) ), "NO","YES"),"")
 
Upvote 0

Forum statistics

Threads
1,215,214
Messages
6,123,660
Members
449,114
Latest member
aides

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