rohanmalhotra83
Registered User.
- Local time
- Today, 01:30
- Joined
- Jul 26, 2010
- Messages
- 16
Hi all
I am trying to use IF/ELSE statement in one of the reports I am building, however, not able to do it.
Basically, I want the statement to look at the Average of Score and then return a value accordingly. The breakdown is below :
Score is 30 - Platinum
Is between 25 & 29 - Gold
Is between 20 & 24 - Silver
Less than 20 - Bronze
The statement i have written is below :
=IIf(Avg([Total]=30),"Platinum",IIf(Avg([Total]<30) And (Avg([Total]>24)),"Gold",IIf(Avg([Total]<25) And (Avg([Total]>19)),"Silver","Bronze")))
Thank you in advance.
I am trying to use IF/ELSE statement in one of the reports I am building, however, not able to do it.
Basically, I want the statement to look at the Average of Score and then return a value accordingly. The breakdown is below :
Score is 30 - Platinum
Is between 25 & 29 - Gold
Is between 20 & 24 - Silver
Less than 20 - Bronze
The statement i have written is below :
=IIf(Avg([Total]=30),"Platinum",IIf(Avg([Total]<30) And (Avg([Total]>24)),"Gold",IIf(Avg([Total]<25) And (Avg([Total]>19)),"Silver","Bronze")))
Thank you in advance.