Multiple If Then Formula

jgharbawi

New Member
Joined
May 17, 2024
Messages
2
Office Version
  1. 2016
Platform
  1. Windows
I'm trying to figure out a smile formula to calculate the accrual rate "Column D" for an employee based on the years of service. I would like it to either search the table (last 3 columns) or enter multiple if then statements to get the correct accrual rate for the years of service from "Column C". I entered the following formula to get the .0732 in Column D. =IF((C3>=7)*(C3<8),"0.0732") Is there a way to string multiples of this formula to get the correct value for Column C?

=(IF((C3>0)*(C3<1),"0.0462"))
=(IF((C3>1)*(C3<2),"0.05"))
=(IF((C3>2)*(C3<3),"0.0539"))
=(IF((C3>3)*(C3<4),"0.0577"))
=(IF((C3>4)*(C3<5),"0.0618"))
=(IF((C3>5)*(C3<6)," 0.0655"))
=(IF((C3>6)*(C3<7)," 0.0693"))
=(IF((C3>7)*(C3<8)," 0.0732"))
=(IF((C3>8)*(C3<9),". 0.077"))
=(IF((C3>9)*(C3<10)," 0.0809"))
=(IF((C3>10)*(C3<11," 0.0847"))
=(IF((C3>11)*(C3<12),"0.0885"))
=(IF((C3>12)*(C3<13),"0.0924"))
=(IF((C3>13)*(C3<14),"0.0962"))
=(IF((C3>14)*(C3<15),"0.1"))

=(IF((C3>15)*(C3<16),"0.1039"))

=(IF((C3>16),"0.1077"))


ABCDEFG
VAC
BAL
VAC
RPT THIS
PAY
PERIOD
YRS
OF
SRVC
VAC
ACCRUAL
RATE
PER/HR
HRS
WRKD
THIS
PAY
PERIOD
VAC
ACCRUED
NEW
VAC
BAL
YRS BeginYRS
End
Accrual Rate
(per hour)
87.48007.507.4740.0732755.4900
85.4700​
00.990.0462
247.94003.007.3973750.0000
244.9400​
11.990.05
5.74000.000.3014750.0000
5.7400​
22.990.0539
5.52001.001.4521750.0000
4.5200​
33.990.0577
11.57006.000.4959600.0000
5.5700​
44.990.0616
45.99000.002.2219750.0000
45.9900​
55.990.0655
32.23000.000.9233750.0000
32.2300​
66.990.0693
10.27000.000.3425750.0000
10.2700​
77.990.0732
2.28000.000.5726750.0000
2.2800​
88.990.077
31.85007.502.2219750.0000
24.3500​
99.990.0809
60.69002.502.6055750.0000
58.1900​
1010.990.0847
7.12003.500.9096750.0000
3.6200​
1111.990.0885
19.60004.008.0274750.0000
15.6000​
1212.990.0924
2.93000.002.2959750.0000
2.9300​
1313.990.0962
102.47000.004.6329750.0000
102.4700​
1414.990.1
105.72000.006.5315750.0000
105.7200​
1515.990.1039
50.67000.006.8767750.0000
50.6700​
160.1077
 

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.
Hi & welcome to MrExcel.
How about
Excel Formula:
=INDEX($K$2:$K$18,MATCH(C2,$I$2:$I$18,1))
 
Upvote 0
Solution
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,216,736
Messages
6,132,426
Members
449,727
Latest member
Aby2024

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