on 04-22-2014 5:09 PM
Hello Experts,
I need help on how to Build a macro to compare the percentage value, for ex, if my final forecast is greater than 50% of my last year sale then color the cell red, so all i need to know is how can i write this macro as a percentage,
please show me how to write this.
Hi Ganesh,
To color the cell, you have a function CELL_BG(X). In your case since you want Red color it should be 6, that leads to Row: Final Forecast = CELL_BG(6).
Now for your condition, if you have Yearly buckets, then it is very simple, just have a condition
IF
Row: Final Forecast (period)
>
(1/2) Row: LY Sales (period)
Row: Final Forecast = CELL_BG(6)
END IF
In case, if your buckets are in Monthly or lesser, you can use SUM Function for your last years sales (if you want to add up the entire year sales)
Regards
JB
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
9 | |
4 | |
3 | |
2 | |
2 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.