Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 155
Default Nested functions inc. dynamic range

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


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,355
Default Nested functions inc. dynamic range

At first blush I see that that you have the following

=SUMPRODUCT(--(ISNUMBER(SEARCH(".2",YourStaticRange))))

=SUMPRODUCT(--(ISNUMBER(SEARCH(YourDynamicRange,".2"))))

You may want to switch things around in the equation with the dynamic range.

HTH,
Barb Reinhardt

"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


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4,339
Default Nested functions inc. dynamic range

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


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 155
Default Nested functions inc. dynamic range

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


  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Nested functions inc. dynamic range

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






  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 155
Default Nested functions inc. dynamic range

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





  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
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







  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 155
Default Nested functions inc. dynamic range

Hi All, Having got it all to work, including **.00, I'd now like to do the
same with the occurence of digits in the second decimal place, independant of
the first. The following works fine for the digits 1-9, e.g. * *.*7:
=SUMPRODUCT(--(ISNUMBER(SEARCH(".?7",INDIRECT("$B$12:B"&A2)))))

where I have inserted a "?" instead of the first decimal place, as a
'wildcard'.
However I am still having difficulty with the Zero's. The following works
fine for **.00, as previously, but wont work for **.30

=SUMPRODUCT(--(MOD(INDIRECT("$B$12:B"&A2),1)=0))

Can anyone amend the above or make alternative suggestions to count the
number of Zero's in the second decimal place, where the first decimal place
is 1-9 ?
Regards
Graham

"T. Valko" wrote:

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








  #9   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Nested functions inc. dynamic range

Assuming all the numbers in the range are formatted as NUMBER 2 decimal
places:

=SUMPRODUCT(--(MOD(rng,1)0),--(RIGHT(TEXT(rng,"0.00"))="0"))

Based on this sample the result = 2

7.02
7.30
7.33
7.00
0.50

Those being counted are 7.30 and 0.50.

--
Biff
Microsoft Excel MVP


"Graham" wrote in message
...
Hi All, Having got it all to work, including **.00, I'd now like to do the
same with the occurence of digits in the second decimal place, independant
of
the first. The following works fine for the digits 1-9, e.g. * *.*7:
=SUMPRODUCT(--(ISNUMBER(SEARCH(".?7",INDIRECT("$B$12:B"&A2)))))

where I have inserted a "?" instead of the first decimal place, as a
'wildcard'.
However I am still having difficulty with the Zero's. The following works
fine for **.00, as previously, but wont work for **.30

=SUMPRODUCT(--(MOD(INDIRECT("$B$12:B"&A2),1)=0))

Can anyone amend the above or make alternative suggestions to count the
number of Zero's in the second decimal place, where the first decimal
place
is 1-9 ?
Regards
Graham

"T. Valko" wrote:

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










  #10   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 155
Default Nested functions inc. dynamic range

I dont know how, but it works a treat. Many Thanks again.

"T. Valko" wrote:

Assuming all the numbers in the range are formatted as NUMBER 2 decimal
places:

=SUMPRODUCT(--(MOD(rng,1)0),--(RIGHT(TEXT(rng,"0.00"))="0"))

Based on this sample the result = 2

7.02
7.30
7.33
7.00
0.50

Those being counted are 7.30 and 0.50.

--
Biff
Microsoft Excel MVP


"Graham" wrote in message
...
Hi All, Having got it all to work, including **.00, I'd now like to do the
same with the occurence of digits in the second decimal place, independant
of
the first. The following works fine for the digits 1-9, e.g. * *.*7:
=SUMPRODUCT(--(ISNUMBER(SEARCH(".?7",INDIRECT("$B$12:B"&A2)))))

where I have inserted a "?" instead of the first decimal place, as a
'wildcard'.
However I am still having difficulty with the Zero's. The following works
fine for **.00, as previously, but wont work for **.30

=SUMPRODUCT(--(MOD(INDIRECT("$B$12:B"&A2),1)=0))

Can anyone amend the above or make alternative suggestions to count the
number of Zero's in the second decimal place, where the first decimal
place
is 1-9 ?
Regards
Graham

"T. Valko" wrote:

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













  #11   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Nested functions inc. dynamic range

You're welcome!

--
Biff
Microsoft Excel MVP


"Graham" wrote in message
...
I dont know how, but it works a treat. Many Thanks again.

"T. Valko" wrote:

Assuming all the numbers in the range are formatted as NUMBER 2 decimal
places:

=SUMPRODUCT(--(MOD(rng,1)0),--(RIGHT(TEXT(rng,"0.00"))="0"))

Based on this sample the result = 2

7.02
7.30
7.33
7.00
0.50

Those being counted are 7.30 and 0.50.

--
Biff
Microsoft Excel MVP


"Graham" wrote in message
...
Hi All, Having got it all to work, including **.00, I'd now like to do
the
same with the occurence of digits in the second decimal place,
independant
of
the first. The following works fine for the digits 1-9, e.g. * *.*7:
=SUMPRODUCT(--(ISNUMBER(SEARCH(".?7",INDIRECT("$B$12:B"&A2)))))

where I have inserted a "?" instead of the first decimal place, as a
'wildcard'.
However I am still having difficulty with the Zero's. The following
works
fine for **.00, as previously, but wont work for **.30

=SUMPRODUCT(--(MOD(INDIRECT("$B$12:B"&A2),1)=0))

Can anyone amend the above or make alternative suggestions to count the
number of Zero's in the second decimal place, where the first decimal
place
is 1-9 ?
Regards
Graham

"T. Valko" wrote:

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













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
HLP - Dynamic Range for Nested IF dee Excel Worksheet Functions 1 May 18th 07 12:06 AM
Nested Functions Bryan Potter Excel Discussion (Misc queries) 7 February 22nd 07 09:11 PM
Dynamic cell range for functions Rob Hayles Excel Worksheet Functions 1 August 16th 06 10:32 AM
Dynamic Range with unused formula messing up x axis on dynamic graph [email protected] Charts and Charting in Excel 2 February 2nd 06 08:02 PM
nested if(and) functions Rohan Excel Discussion (Misc queries) 3 August 12th 05 01:30 AM


All times are GMT +1. The time now is 06:56 PM.

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

About Us

"It's about Microsoft Excel"