Choosing a column value based on a date

praveen23

Board Regular
Joined
Jun 24, 2004
Messages
121
Hi, I am trying to figure out an employee pay amount based on date of hire. If the employee has been here for less than 5 years, I want to use the value in one column for their pay. If the employee has been here for longer than 5 years but less than 7 years, I want to use a different column value, and greater than 7 years a third column value, similar to below. Is there a way to do this?

DATE Hire -- $ <5 -- $ 5-7 -- $ >7 -- $ to pay
1/2/2019 -- 10 -- 15 -- 20 -- ?
 

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).
Start Date
5/31/2021​
<5 yrs5-7 yrs>7 yrsStep Rate'
9/6/2011
9​
10​
15.0020.00
20​
6/25/2000
20​
10​
15.0020.00
20​
6/25/2000
20​
10​
15.0020.00
20​
6/25/2004
16​
10​
15.0020.00
20​
9/9/2019
1​
10​
15.0020.00
10​
11/7/2016
4​
10​
15.0020.00
10​
6/25/2004
16​
10​
15.0020.00
20​
6/25/2015
5​
10​
15.0020.00
15​
6/25/2012
8​
10​
15.0020.00
20​
8/13/2012
8​
10​
15.0020.00
20​
 
Upvote 0
Hi,

2 ways, I'm using your B column in the formulas:

Book3.xlsx
ABCDEFGHIJ
1Start Date5/31/2021<5 yrs5-7 yrs>7 yrsStep Rate'Lookup Table
29/6/201191015202020010
36/25/2000201015202020515
46/25/2000201015202020820
56/25/2004161015202020
69/9/201911015201010
711/7/201641015201010
86/25/2004161015202020
96/25/201551015201515
106/25/201281015202020
118/13/201281015202020
12
13^using tablew/o table
Sheet818
Cell Formulas
RangeFormula
F2:F11F2=LOOKUP(B2,I$2:I$4,J$2:J$4)
G2:G11G2=IF(B2<5,10,IF(B2<=7,15,20))
 
Upvote 0

Forum statistics

Threads
1,214,952
Messages
6,122,458
Members
449,085
Latest member
ExcelError

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