Formula Help !

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi, I have the following formula that works fine but I need to change it..

=IF(AND(YEAR(TODAY())-F123>=1,YEAR(TODAY())-F123<=19),23,28

The values I need to be calculated are as follows: 1 - 14 = 20, 15 - 19 = 22 & 20 and up = 25. I have been unsuccessful in changing this current formula to fit the values I now need

I greatly apprecieate someones help
Thank you
Jen
 
Hi

Try this version:

=IF(YEAR(TODAY())-F123<=14,20,IF(YEAR(TODAY())-F123<=19,22,25))

--
Andy.


Jenn said:
Hi, I have the following formula that works fine but I need to change it...

=IF(AND(YEAR(TODAY())-F123>=1,YEAR(TODAY())-F123<=19),23,28)

The values I need to be calculated are as follows: 1 - 14 = 20, 15 - 19
= 22 & 20 and up = 25. I have been unsuccessful in changing this current
formula to fit the values I now need.
 
PS
I've assumed (maybe wrongly) that YEAR(TODAY())-F123 will not result in a
negative value.
 
One way

=IF(AND(YEAR(TODAY())-F123>=1,YEAR(TODAY())-F123<15),20,IF(AND(YEAR(TODAY())
-F123>=15,YEAR(TODAY())-F123<=19),22,28))

--

Regards,

Peo Sjoblom


Jenn said:
Hi, I have the following formula that works fine but I need to change it...

=IF(AND(YEAR(TODAY())-F123>=1,YEAR(TODAY())-F123<=19),23,28)

The values I need to be calculated are as follows: 1 - 14 = 20, 15 - 19
= 22 & 20 and up = 25. I have been unsuccessful in changing this current
formula to fit the values I now need.
 
Jenn said:
Hi, I have the following formula that works fine but I need to change it...

=IF(AND(YEAR(TODAY())-F123>=1,YEAR(TODAY())-F123<=19),23,28)

The values I need to be calculated are as follows: 1 - 14 = 20, 15 - 19
= 22 & 20 and up = 25. I have been unsuccessful in changing this current
formula to fit the values I now need.
I greatly apprecieate someones help !
Thank you,
Jenn

You can also try with:

=CHOOSE(MATCH(YEAR(TODAY())-F123,{1;15;20}),20,22,25)

Regards
Barbara
 
Back
Top