ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Formula for CF (https://www.excelbanter.com/excel-programming/435633-formula-cf.html)

Doug

Formula for CF
 
I am using this formula in CF to show a change in price +/- 2% between 2
columns.
Only problem is, it highlights all the blank cells as well. Any idea how to
fix it?
=(MAX($F3,$AB3)/MIN($F3,$AB3))<1.02
--


smartin

Formula for CF
 
Doug wrote:
I am using this formula in CF to show a change in price +/- 2% between 2
columns.
Only problem is, it highlights all the blank cells as well. Any idea how to
fix it?
=(MAX($F3,$AB3)/MIN($F3,$AB3))<1.02


Try this:

=AND(NOT(ISBLANK(F3)),(MAX($F3,$AB3)/MIN($F3,$AB3))<1.02)

Or maybe:

=AND(ISNUMBER(F3),(MAX($F3,$AB3)/MIN($F3,$AB3))<1.02)

(Highlight F3:AB3 with F3 active when you insert the CF formula.)

Doug

Formula for CF
 
Worked great thanks!!!
--
Thank you!


"smartin" wrote:

Doug wrote:
I am using this formula in CF to show a change in price +/- 2% between 2
columns.
Only problem is, it highlights all the blank cells as well. Any idea how to
fix it?
=(MAX($F3,$AB3)/MIN($F3,$AB3))<1.02


Try this:

=AND(NOT(ISBLANK(F3)),(MAX($F3,$AB3)/MIN($F3,$AB3))<1.02)

Or maybe:

=AND(ISNUMBER(F3),(MAX($F3,$AB3)/MIN($F3,$AB3))<1.02)

(Highlight F3:AB3 with F3 active when you insert the CF formula.)
.



All times are GMT +1. The time now is 03:32 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com