robvdbrand
New Member
Hi all,
I am working on a variance analysis file for my company comparing new versus old prices (2013 versus 2012). Using conditional formatting, I want to highlight variances larger than |50%|.
The formula I am using to calculate the variance is:
=IFERROR((E2-F2)/F2,"no data")
where E2 = new price & F2 = old price
I use the IFERROR formula and corresponding "no data" result to make the file look nicer when column E2 doesn't display a new price (this will happen as it's possible to use the file for only part of the product portfolio).
The conditional formatting rules I am using are:
Cell value > 50% --> format to red fill/white font
Cell value < -50% --> format to red fill/white font
This works fine, however whenever the cell contains "no data" instead of a value, it is also formatted to red fill/white font.
Which rule could I add so that "no data" is formatted in the same way as normal cells? Or should I use different rules altogether?
Thanks in advance for any help!
Rob
I am working on a variance analysis file for my company comparing new versus old prices (2013 versus 2012). Using conditional formatting, I want to highlight variances larger than |50%|.
The formula I am using to calculate the variance is:
=IFERROR((E2-F2)/F2,"no data")
where E2 = new price & F2 = old price
I use the IFERROR formula and corresponding "no data" result to make the file look nicer when column E2 doesn't display a new price (this will happen as it's possible to use the file for only part of the product portfolio).
The conditional formatting rules I am using are:
Cell value > 50% --> format to red fill/white font
Cell value < -50% --> format to red fill/white font
This works fine, however whenever the cell contains "no data" instead of a value, it is also formatted to red fill/white font.
Which rule could I add so that "no data" is formatted in the same way as normal cells? Or should I use different rules altogether?
Thanks in advance for any help!
Rob