Digitelpersona
MIS
- Jul 23, 2002
- 26
Hi Everyone,
I'm very new to Excel and the formulas that can be created in it. By doing some reading and searching around, I've come up with this IF statement but it doesn't seem to be working right!
=IF(INT((H6-$B$8)/365.25)+1,<4,5.83,<10,8.75,<16,11.67,<17,12.25,<18,12.83,<19,13.42,<20,14,>20,14.58)
What I basically need to do is look at two dates and come up with a number: example if 7/1/1998 - 1/21/2005 = 7 then the formula should return 8.75.
The problem is that this needs to calculate for 12 month, for each person.
So for example:
John Smith started working with us on 2/4/2002, so the formula for January (1/1/2005-2/4/2002) would produce
3 and he’s accrual would be 5.83, however the next column for February (2/1/2005-2/4/2002) would produce 4 and he’s accrual would now be 8.75 and so on….
So my formula above is clearly wrong, what I need it to say is (if dateone-datetwo=# take that # and figure out if it's <4 then 5.83, <10 then 8.75, <16 then 11.67) etc.
Please let me know if anyone has any suggestions on how to solve this, or if you need more information from me to help me solve it.
Thanks for your time,
Joe
I'm very new to Excel and the formulas that can be created in it. By doing some reading and searching around, I've come up with this IF statement but it doesn't seem to be working right!
=IF(INT((H6-$B$8)/365.25)+1,<4,5.83,<10,8.75,<16,11.67,<17,12.25,<18,12.83,<19,13.42,<20,14,>20,14.58)
What I basically need to do is look at two dates and come up with a number: example if 7/1/1998 - 1/21/2005 = 7 then the formula should return 8.75.
The problem is that this needs to calculate for 12 month, for each person.
So for example:
John Smith started working with us on 2/4/2002, so the formula for January (1/1/2005-2/4/2002) would produce
3 and he’s accrual would be 5.83, however the next column for February (2/1/2005-2/4/2002) would produce 4 and he’s accrual would now be 8.75 and so on….
So my formula above is clearly wrong, what I need it to say is (if dateone-datetwo=# take that # and figure out if it's <4 then 5.83, <10 then 8.75, <16 then 11.67) etc.
Please let me know if anyone has any suggestions on how to solve this, or if you need more information from me to help me solve it.
Thanks for your time,
Joe