HELP.. can't get my index & match formula to work

DawnLaGood

New Member
Joined
May 22, 2023
Messages
2
Office Version
  1. 365
Platform
  1. Windows
I have two tables. In the first table are the rates by resource (columnA) and the MonthYear (ColumnB-Y)
In another table, table 2, where I have the resource (columnA) date MMDDYYY (columnB).
I need for table 2 to look up and match both the resource and date from table 1 and return the rate where they intersect.

Table 1
1684811432909.png

Table 2
1684811578718.png


I've tried everything I can think of but I keep breaking on the date lookup/match. Table 1 only uses month year where table two uses the full date.

Anyone have any suggestions?
 

Excel Facts

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.
See if one of these examples helps.
Example 1 assumed your dates in Table 1 are actual dates formatted as mmm-yy
Example 2 assumes your dares in Table 1 are text.

Book3
ABCDEF
1Example 1
2If dates in Table 1 are actual dates formated as MMM-YY.
3ResJan-22Feb-22Mar-22
4Doe, John55.1755.1755.17
5Doe, Jane25.9025.9025.90
6
7Table2
8ResDaterate
9Doe, John2/7/202255.17
10Doe, Jane3/3/202225.9
11
12Example 2
13If dates in Table 1 are text
14ResJan-22Feb-22Mar-22
15Doe, John55.1755.1755.17
16Doe, Jane25.9025.9025.90
17
18
19ResDaterate
20Doe, John2/7/202255.17
21Doe, Jane3/3/202225.90
Sheet1
Cell Formulas
RangeFormula
D9:D10D9=INDEX($B$4:$D$5,MATCH($A9,$A$4:$A$5,0),MATCH(MONTH($B9)&YEAR($B9),MONTH($B$3:$D$3)&YEAR($B$3:$D$3),0))
D20:D21D20=INDEX($B$4:$D$5,MATCH($A20,$A$4:$A$5,0),MATCH(TEXT(B20,"mmm-yy"),$B$14:$D$14,0))
 
Upvote 0
Solution
See if one of these examples helps.
Example 1 assumed your dates in Table 1 are actual dates formatted as mmm-yy
Example 2 assumes your dares in Table 1 are text.

Book3
ABCDEF
1Example 1
2If dates in Table 1 are actual dates formated as MMM-YY.
3ResJan-22Feb-22Mar-22
4Doe, John55.1755.1755.17
5Doe, Jane25.9025.9025.90
6
7Table2
8ResDaterate
9Doe, John2/7/202255.17
10Doe, Jane3/3/202225.9
11
12Example 2
13If dates in Table 1 are text
14ResJan-22Feb-22Mar-22
15Doe, John55.1755.1755.17
16Doe, Jane25.9025.9025.90
17
18
19ResDaterate
20Doe, John2/7/202255.17
21Doe, Jane3/3/202225.90
Sheet1
Cell Formulas
RangeFormula
D9:D10D9=INDEX($B$4:$D$5,MATCH($A9,$A$4:$A$5,0),MATCH(MONTH($B9)&YEAR($B9),MONTH($B$3:$D$3)&YEAR($B$3:$D$3),0))
D20:D21D20=INDEX($B$4:$D$5,MATCH($A20,$A$4:$A$5,0),MATCH(TEXT(B20,"mmm-yy"),$B$14:$D$14,0))
omg thank you very much that worked perfect!!!
 
Upvote 0
thank you very much that worked perfect!!!
The marked solution has been changed accordingly. In your future questions, please mark the post as the solution that actually answered your question, instead of your feedback message as it will help future readers. No further action is required for this thread.
 
Upvote 0

Forum statistics

Threads
1,215,104
Messages
6,123,113
Members
449,096
Latest member
provoking

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