View Single Post
  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
T. Valko T. Valko is offline
external usenet poster
 
Posts: 15,768
Default Nested functions inc. dynamic range

You're welcome. Thanks for the feedback!

--
Biff
Microsoft Excel MVP


"Graham" wrote in message
...
Thank you very much, I learn something new every time I come on here!

"T. Valko" wrote:

Excel doesn't "see" decimals that terminate with 0.

73.00

In order to display the 0s you'd normally have to format as NUMBER 2
decimal
places. But 73.00 is only the *displayed* value. The true underlying
value
is 73.

So, the formula will work for numbers like:

73.09
10.02
0.05

But will not work for numbers like:

73.00
10.00

To count only numbers that terminate with 0:

=SUMPRODUCT(--(MOD(range,1)=0))

--
Biff
Microsoft Excel MVP


"Graham" wrote in message
...
Many thanks to you both for your help. Toppers, your solution seems a
much
easier way of creating a dynamic range ? However it is stilll returning
a
value of '0' for ".0", whereas it is correct for the digits .1 - .9 ?

"Toppers" wrote:

try:

=SUMPRODUCT(--(ISNUMBER(SEARCH(".2",INDIRECT("$B$39:B"&A2)))))

"Graham" wrote:

HI
I have a Column (B) of 4 figure numbers to 2 decimal places. I want
to
extract the frequency of each digit (0-9) in the First decimal place
only.
Thanks to previous help I can get this to work over a fixed range
e.g.
B39:B74, but as the column is added to on a daily basis, I would
like
to
calculate this over a dynamic range, indexed from the Row value in
A2.
The following formula works ( for .2) over a static range :

=SUMPRODUCT(--(ISNUMBER(SEARCH(".2",$B$39:B74))))

but in trying to adapt it to a dynamic range, I simply get a value
returned
of "0" ?

=SUMPRODUCT(--(ISNUMBER(SEARCH(OFFSET(B39,0,0,$A$2-ROW(B39)+1,1),".2"))))
Can anyone see where I'm going wrong ?
Many Thanks