Data lookup based on multiple conditions without using CSE

JHE1969

New Member
Joined
Apr 2, 2018
Messages
11
I have a data table of dates, first names, surnames and salary. I need to be able to lookup the salary on or before a given date. I need to do this multiple times so do not want to use the Control Shift Enter array construct. Any suggestions for a single line formula that can deal with the data conditionality. An example table is below:

[TABLE="width: 348"]
<colgroup><col width="87" span="4" style="width: 65pt;"></colgroup><tbody>[TR]
[TD="class: xl65, width: 87"]Date[/TD]
[TD="class: xl65, width: 87"]FirstName[/TD]
[TD="class: xl65, width: 87"]Surname[/TD]
[TD="class: xl65, width: 87"]Salary[/TD]
[/TR]
[TR]
[TD="class: xl66, align: right"]01/01/2018[/TD]
[TD="class: xl65"]John[/TD]
[TD="class: xl65"]Smith[/TD]
[TD="class: xl65, align: right"]102[/TD]
[/TR]
[TR]
[TD="class: xl66, align: right"]01/02/2018[/TD]
[TD="class: xl65"]Jack[/TD]
[TD="class: xl65"]Jones[/TD]
[TD="class: xl65, align: right"]98[/TD]
[/TR]
[TR]
[TD="class: xl66, align: right"]01/03/2018[/TD]
[TD="class: xl65"]Jill[/TD]
[TD="class: xl65"]Smith[/TD]
[TD="class: xl65, align: right"]52[/TD]
[/TR]
[TR]
[TD="class: xl66, align: right"]01/04/2018[/TD]
[TD="class: xl65"]Tom[/TD]
[TD="class: xl65"]Jones[/TD]
[TD="class: xl65, align: right"]69[/TD]
[/TR]
[TR]
[TD="class: xl66, align: right"]01/05/2018[/TD]
[TD="class: xl65"]Tom[/TD]
[TD="class: xl65"]Smith[/TD]
[TD="class: xl65, align: right"]12[/TD]
[/TR]
[TR]
[TD="class: xl66, align: right"]01/06/2018[/TD]
[TD="class: xl65"]John[/TD]
[TD="class: xl65"]Smith[/TD]
[TD="class: xl65, align: right"]103[/TD]
[/TR]
[TR]
[TD="class: xl66, align: right"]01/06/2018[/TD]
[TD="class: xl65"]Tony[/TD]
[TD="class: xl65"]Jones[/TD]
[TD="class: xl65, align: right"]54[/TD]
[/TR]
[TR]
[TD="class: xl66, align: right"]01/06/2018[/TD]
[TD="class: xl65"]Jill[/TD]
[TD="class: xl65"]Smith[/TD]
[TD="class: xl65, align: right"]270[/TD]
[/TR]
[TR]
[TD="class: xl66, align: right"]01/07/2018[/TD]
[TD="class: xl65"]Jill[/TD]
[TD="class: xl65"]Jones[/TD]
[TD="class: xl65, align: right"]103[/TD]
[/TR]
[TR]
[TD="class: xl66, align: right"]01/07/2018[/TD]
[TD="class: xl65"]Jack[/TD]
[TD="class: xl65"]Jones[/TD]
[TD="class: xl65, align: right"]120[/TD]
[/TR]
[TR]
[TD="class: xl66, align: right"]01/08/2018[/TD]
[TD="class: xl65"]Jill[/TD]
[TD="class: xl65"]Jones[/TD]
[TD="class: xl65, align: right"]78[/TD]
[/TR]
[TR]
[TD="class: xl66, align: right"]01/09/2018[/TD]
[TD="class: xl65"]Tony[/TD]
[TD="class: xl65"]Smith[/TD]
[TD="class: xl65, align: right"]83[/TD]
[/TR]
[TR]
[TD="class: xl66, align: right"]01/10/2018[/TD]
[TD="class: xl65"]Tom[/TD]
[TD="class: xl65"]Jones[/TD]
[TD="class: xl65, align: right"]47[/TD]
[/TR]
[TR]
[TD="class: xl65"][/TD]
[TD="class: xl65"][/TD]
[TD="class: xl65"][/TD]
[TD="class: xl65"][/TD]
[/TR]
[TR]
[TD="class: xl65"][/TD]
[TD="class: xl65"][/TD]
[TD="class: xl65"][/TD]
[TD="class: xl65"][/TD]
[/TR]
[TR]
[TD="class: xl65"]Date[/TD]
[TD="class: xl66, align: right"]01/09/2018[/TD]
[TD="class: xl65"][/TD]
[TD="class: xl65"][/TD]
[/TR]
[TR]
[TD="class: xl65"]FirstName[/TD]
[TD="class: xl65"]Tom[/TD]
[TD="class: xl65"][/TD]
[TD="class: xl65"][/TD]
[/TR]
[TR]
[TD="class: xl65"]Surname[/TD]
[TD="class: xl65"]Smith[/TD]
[TD="class: xl65"][/TD]
[TD="class: xl65"][/TD]
[/TR]
[TR]
[TD="class: xl67"]Salary[/TD]
[TD="class: xl67"][/TD]
[TD="class: xl67"][/TD]
[TD="class: xl67"][/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.

Forum statistics

Threads
1,225,754
Messages
6,186,826
Members
453,377
Latest member
JoyousOne

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