IF or IFS for a between number formula

Breadnjam18

New Member
Joined
May 6, 2021
Messages
2
Office Version
  1. 2019
Platform
  1. Windows
Ok so Im trying to create a formula to calculate between some dates in excel

Start DateYears ServiceStd Holiday EntitlementResult
28/08/2018​
2​
20​
20

So have most of it but not quite all.

Basically what i need is if the years service is grater than 5 but less than 10 then add 1 (or result in 21) and if greater than 10 add two. I have half of the formula sorted as if its greater than 10 its adds two, but i cant figure out the between 5-10 part. here is what i have

=IFS(D6<=5, "20",D6>5<10,"21", D6>10,"22")
 

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)
Hi & welcome to MrExcel.
How about
Excel Formula:
=IF(D6<=5,20,IF(D6<=10,21,22))
 
Upvote 0
Solution
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,215,016
Messages
6,122,700
Members
449,092
Latest member
snoom82

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