Return value from table using match and in-between criteria

keelaboosa

New Member
Joined
Apr 3, 2018
Messages
35
EmployeeRateEffective Date
Brandon$15.001/1/17
Anthony$12.501/1/17
James$17.001/1/17
Josh$16.501/1/17
Brandon$16.503/15/17
Brandon$17.505/1/17
James$16.506/10/17

<tbody>
</tbody>

I've built the table above to record pay rates and effective dates for a pool of employees. I'm looking for a formula to return the correct pay rate when I enter an employee name and date. For instance, if I enter Brandon and 2/1/17, I should get $15.00. If I enter Brandon and 3/16/17, I should get $16.50.

This one's got my head spinning!
 

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.
Try

<b15,1))))[ code]
=INDEX($B$2:$B$8,MATCH(1,IF($A$2:$A$8=A15,IF($C$2:$C$8 < B15,1))))

A15 & B15 are the Name & Date to search for

Enter formula as an Array, Ctrl Shift & Enter

Code:
[TABLE="width: 322"]
<tbody>[TR]
[TD="class: xl66, width: 87"]Employee[/TD]
[TD="class: xl66, width: 87"]Rate[/TD]
[TD="class: xl66, width: 148"]Effective Date[/TD]
[/TR]
[TR]
[TD="class: xl63"]Brandon[/TD]
[TD="class: xl63"]$15.00[/TD]
[TD="class: xl64, align: right"]01/01/2017[/TD]
[/TR]
[TR]
[TD="class: xl63"]Anthony[/TD]
[TD="class: xl63"]$12.50[/TD]
[TD="class: xl64, align: right"]01/01/2017[/TD]
[/TR]
[TR]
[TD="class: xl63"]James[/TD]
[TD="class: xl63"]$17.00[/TD]
[TD="class: xl64, align: right"]01/01/2017[/TD]
[/TR]
[TR]
[TD="class: xl63"]Josh[/TD]
[TD="class: xl63"]$16.50[/TD]
[TD="class: xl64, align: right"]01/01/2017[/TD]
[/TR]
[TR]
[TD="class: xl63"]Brandon[/TD]
[TD="class: xl63"]$16.50[/TD]
[TD="class: xl64, align: right"]15/03/2017[/TD]
[/TR]
[TR]
[TD="class: xl63"]Brandon[/TD]
[TD="class: xl63"]$17.50[/TD]
[TD="class: xl64, align: right"]01/05/2017[/TD]
[/TR]
[TR]
[TD="class: xl63"]James[/TD]
[TD="class: xl63"]$16.50[/TD]
[TD="class: xl64, align: right"]10/06/2017[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Brandon[/TD]
[TD="class: xl65, align: right"]16/03/2017[/TD]
[TD="class: xl67, align: right"]$16.50[/TD]
[/TR]
[TR]
[TD]Brandon[/TD]
[TD="class: xl65, align: right"]01/02/2017[/TD]
[TD="class: xl67, align: right"]$15.00[/TD]
[/TR]
</tbody>[/TABLE]
</b15,1))))[>
 
Upvote 0

Forum statistics

Threads
1,216,073
Messages
6,128,637
Members
449,461
Latest member
kokoanutt

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