Hi everyone
This is probably an easy problem, but I've been trying to get this thing to work for a few hours now and I'm getting frustrated.
Suppose you have a list of several percentage changes:
4%
1%
-3%
-5%
What kind of command can you use while in conditional formatting so that it'll highlight 1% as the smallest % change? Min and small commands don't seem to work since they both return -5% as the smallest change (but instead it's actually the biggest).
Any suggestions? Thanks!
Hi Koolaid,
Let's say your list is in A1:A4. Select that range and then:
To highlight the largest change set conditional formatting formula to:
=OR(A1=MAX(ABS($A$1:$A$4)),-A1=MAX(ABS($A$1:$A$4)))
To highlight the smallest change, use:
=OR(A1=MIN(ABS($A$1:$A$4)),-A1=MIN(ABS($A$1:$A$4)))
Or =ABS(A1)=MIN(ABS($A$1:$A$4))
Microsoft MVP - Excel
Entia non sunt multiplicanda sine necessitate
Awesome! Both works great, thanks Paul and shg!
Can I also tell it to not return 0s as the smallest value? i.e. the next smallest?
I tried using
=ABS(A1)=SMALL(ABS($A$1:$A$4),2)
but that didn't seem to work.
You could use
=ABS($A1)=MIN(IF($A$1:$A$4<>0,$A$1:$A$4))
which would avoid issues with blanks (should they exist)
Last edited by DonkeyOte; 03-12-2010 at 08:02 AM.
My Recommended Reading:
Volatility
Sumproduct & Arrays
Pivot Intro
Email from XL - VBA & Outlook VBA
Function Dictionary & Function Translations
Dynamic Named Ranges
Thx DonkeyOte, that did the trick!![]()
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks