Lookup and Match Formula

CarlW1179

New Member
Joined
Jan 4, 2024
Messages
11
Office Version
  1. 2019
Platform
  1. Windows
Hi

I'm looking to find formula to return a value in sheet 2 after searching for a specific product code and month in sheet 1 and matched to the date in sheet 1


for example find the price paid for an ingredient in October 24

Thanks in advance

1730292456287.png




1730292401157.png
 

Excel Facts

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)
Hi

I'm looking to find formula to return a value in sheet 2 after searching for a specific product code and month in sheet 1 and matched to the date in sheet 1


for example find the price paid for an ingredient in October 24

Thanks in advance

View attachment 118720



View attachment 118719
Are the values in the range F1:J1 actual dates and if so what date within the month?

The first of the month is often used for this type of application.

Same question about the E1 date?
 
Upvote 0
Are the values in the range F1:J1 actual dates and if so what date within the month?

The first of the month is often used for this type of application.

Same question about the E1 date?
Hi

No the values are the what I am trying to pull through to the other sheet.

using the date in F1 so effectively what i would do is change the month in the blue cell on the first sheet and it would pull thought the values for the RJL Codes A2:A12

Cheers
 
Upvote 0
Place this in cell E2 on Sheet 2 and see if this works for you. If so, drag it down to fill the rest of the E column. You'll just need to adjust the first range "Sheet1!$F$2:$J$10" to encompass your full data set.
=IFERROR(INDEX(Sheet1!$F$2:$J$10, MATCH($A2, Sheet1!$D:$D, 0), MATCH(E$1, Sheet1!$A:$A, 0)), "Not Found")
 
Upvote 0
Solution
Place this in cell E2 on Sheet 2 and see if this works for you. If so, drag it down to fill the rest of the E column. You'll just need to adjust the first range "Sheet1!$F$2:$J$10" to encompass your full data set.
=IFERROR(INDEX(Sheet1!$F$2:$J$10, MATCH($A2, Sheet1!$D:$D, 0), MATCH(E$1, Sheet1!$A:$A, 0)), "Not Found")
That looks like its worked.

Thanks you for that really appreciate it.
 
Upvote 0

Forum statistics

Threads
1,223,236
Messages
6,170,917
Members
452,366
Latest member
TePunaBloke

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