Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 440
Default Conditional formatting to ignore zeros

Hi,
How do I get this:
=COUNTIF($D4,(MIN($D$4:$D$15)))
to ignore zero's?

--
Traa Dy Liooar

Jock
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default Conditional formatting to ignore zeros

Select your range
conditional formatting

Formula is: =A1<0

format any colors you like


"Jock" wrote:

Hi,
How do I get this:
=COUNTIF($D4,(MIN($D$4:$D$15)))
to ignore zero's?

--
Traa Dy Liooar

Jock

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 440
Default Conditional formatting to ignore zeros

Thanks Mama,
In theory, ignoring zeros, there will be a minimum value in the column
(D4:D15) somewhere. This is what I need to make obvious by conditional
formatting.
So, every month will have a running total. At the beginning of June for
instance, one of the previous five months will have the max value of all 5
months and similarly, one will have the min value.
The MAX bit is sorted, but I am having trouble showing the MIN because of
these bloomin' zeros!
Cheers
--
Traa Dy Liooar

Jock


"Teethless mama" wrote:

Select your range
conditional formatting

Formula is: =A1<0

format any colors you like


"Jock" wrote:

Hi,
How do I get this:
=COUNTIF($D4,(MIN($D$4:$D$15)))
to ignore zero's?

--
Traa Dy Liooar

Jock

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,268
Default Conditional formatting to ignore zeros

Assuming that you don't have any negative values

=$D4=SMALL($D$4:$D$15,COUNTIF($D$4:$D$15,0)+1)


--


Regards,


Peo Sjoblom



"Jock" wrote in message
...
Hi,
How do I get this:
=COUNTIF($D4,(MIN($D$4:$D$15)))
to ignore zero's?

--
Traa Dy Liooar

Jock



  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,651
Default Conditional formatting to ignore zeros

Your syntax looks wrong (though it is legal). The first parameter for
COUNTIF is the range, and the second is the criterion. [Look it up in Excel
help.]

You have asked it to count how many cells in the specfiied range meet the
criterion. The range you have specified is the one cell $D4, and the
criterion is that the value in the cell be equal to the minimum of the range
$D$4 to $D$15. You'd therefore get an answer of 0 or 1 from your count.
You'd get the same answer from
=IF($D4=MIN($D$4:$D$15),1,0) or from =--($D4=MIN($D$4:$D$15))

What are you really trying to calculate, where do you want zeros ignored,
and do you realise that conditional Formatting (which you mention in the
subject line) affects only the display, not the underlying value in the
cell?
--
David Biddulph

"Jock" wrote in message
...
Hi,
How do I get this:
=COUNTIF($D4,(MIN($D$4:$D$15)))
to ignore zero's?
--
Traa Dy Liooar

Jock





  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 440
Default Conditional formatting to ignore zeros

That's got it exactly. Although the zeros are displayed, they're ignored.
Thank you
--
Traa Dy Liooar

Jock


"Peo Sjoblom" wrote:

Assuming that you don't have any negative values

=$D4=SMALL($D$4:$D$15,COUNTIF($D$4:$D$15,0)+1)


--


Regards,


Peo Sjoblom



"Jock" wrote in message
...
Hi,
How do I get this:
=COUNTIF($D4,(MIN($D$4:$D$15)))
to ignore zero's?

--
Traa Dy Liooar

Jock




Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Conditional Formats to ignore blank cells mnwankpah Excel Worksheet Functions 4 March 28th 07 02:50 AM
Conditional Formats to ignore blank cells mnwankpah Excel Worksheet Functions 1 March 28th 07 12:11 AM
Median calculation and ignore zeros coastal Excel Discussion (Misc queries) 5 February 12th 07 11:27 PM
Formula/formatting to omit trailing zeros Robin Excel Worksheet Functions 5 March 22nd 06 06:29 AM
save text field w/ leading zeros in .csv format & not lose zeros? Ques Excel Discussion (Misc queries) 1 May 4th 05 06:21 PM


All times are GMT +1. The time now is 12:35 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"