Counting Digits formula !!

serge

Well-known Member
Joined
Oct 8, 2008
Messages
1,446
Office Version
  1. 2007
Platform
  1. Windows
Hi All,

I need help to count digits from 5 numbers, without counting duplicate.

A1 : 05
B1 : 07
C1 : 12
D1 : 29
E1 : 30

In G1 the formula should give me : 7 as result.

Thank you. Serge.
 

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce
try this
Excel Workbook
AB
105
207
312
429
545
6308
Sheet1
Excel 2003
#VALUE!
Entered with Ctrl+Shift+Enter. If entered correctly, Excel will surround with curly braces {}.
 
Upvote 0
Thank you sanrv1f,

It work fine the way you did it, but I tried to do it in row and it didn't work why ? I did change A1: A6 to A1:F1 with Ctrl+Shift+Enter

A1,B1,C1,D1,E1,F1. and it give me : 1 as result, using the same number.

Thank you.
 
Upvote 0
for columns you need to use

{1;2;3;4;5;6;7;8;9;0}
 
Upvote 0
No this one is a different formula, One what to count High and Low and this one is to count how many digits.

Thanks again mvptomlinson for your help.
 
Upvote 0
sanrv1f,

I have a small problem I did the change like you show me and with some combinations I get the good answer and for others not !!!

For example the combination : 02,09,12,18,21

With your formula :

=SUM(--(FREQUENCY(IF(ISNUMBER(SEARCH({1;2;3;4;5;6;7;8;9;0},A1:A1:E1)),{1;2;3;4;5;6;7;8;9;0}),{0;1;2;3;4;5;6;7;8;9})>0))

with Ctrl+Shift+Enter should give me : 5 but I get a : 4 ??

Unless I'm doing something wrong ?
 
Upvote 0
Any help would be really appreciated, Thanks.

=SUM(--(FREQUENCY(IF(ISNUMBER(SEARCH({1;2;3;4;5;6;7;8;9;0},A1:E1)),{1;2;3;4;5;6;7;8;9;0}),{0;1;2;3;4;5;6;7;8;9})>0))
 
Upvote 0
I got 5 for the same formula
Excel Workbook
ABCDEF
102091218215
Sheet1
Excel 2003
#VALUE!
Entered with Ctrl+Shift+Enter. If entered correctly, Excel will surround with curly braces {}.
 
Upvote 0
Thank you for responding sanrv1f,

But I think the problem with me is that the formula don't count the leading "0" on my side is because they might not be formated the right way ?

Can you tell me how to do it right ?

Thank you.
 
Upvote 0

Forum statistics

Threads
1,224,606
Messages
6,179,862
Members
452,948
Latest member
UsmanAli786

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top