Returning one value based on 2 criteria's and 2 data sets

JWSafe

New Member
Joined
Dec 13, 2023
Messages
10
Office Version
  1. 365
Platform
  1. MacOS
Screenshot 2023-12-14 at 1.12.37 pm.png


I've admitted defeat with this one....
I'm trying to return the value from the E Column from the right hand side spreadsheet - to column J on the left hand side.
But column G (left) needs to find column B (right) and column E (left) to column A (right) and then return the value in E (right) to column J(left).

thats my attempt formula.

Cheers
 

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.
The logic in that formula isn't correct for what you want to do. (Just for the record, your VLOOKUP is invalid, but it's not even reaching it. You are using range B:E with a column number of 5, but there are only 4 columns in that range.)
I'm not going to retype everything from a picture but use the full file name here:
Excel Formula:
=IFERROR(INDEX([R.csv]Sheet6!$E:$E,MATCH(E2 & G2,[R.csv]Sheet6!$A:$A & [R.csv]Sheet6!$B:$B,0)),"na")
I didn't set up two files to test this but I have used it before. It is an array formula. You won't have to do anything special in 365 to enter it.
 
Upvote 0
Try This

its like lookup by 2 Criteria

Excel Formula:
=INDEX([Rountines_Level_Project.csv]Sheet6!E:E,MATCH(1,(G2=[Rountines_Level_Project.csv]Sheet6!B:B)*(E2=[Rountines_Level_Project.csv]Sheet6!A:A),0))
 
Upvote 0
Try This

its like lookup by 2 Criteria

Excel Formula:
=INDEX([Rountines_Level_Project.csv]Sheet6!E:E,MATCH(1,(G2=[Rountines_Level_Project.csv]Sheet6!B:B)*(E2=[Rountines_Level_Project.csv]Sheet6!A:A),0))
worked perfectly thank you
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,323
Members
452,635
Latest member
laura12345

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