Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 69
Default How do you count this?

Hi,

Say you have in column A this:

Order No
24
24
24
24
123
123
123
123
123
75
75

and so on. It means that we have 3 orders (i.e., 24, 123, and 75). How
can caculate this? I mean what formula can be used to do so?

Thanks,
Jo

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 112
Default How do you count this?

Hi Jo
If only numeric values:
=SUM(N(FREQUENCY(A2:A12,A2:A12)0))

See Chip Pearson's http://www.cpearson.com/excel/Duplicates.aspx

HTH
Cordially
Pascal


"Jo" a écrit dans le message de news:
...
Hi,

Say you have in column A this:

Order No
24
24
24
24
123
123
123
123
123
75
75

and so on. It means that we have 3 orders (i.e., 24, 123, and 75). How
can caculate this? I mean what formula can be used to do so?

Thanks,
Jo



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 638
Default How do you count this?

Ctrl+Shift+Enter
=SUM(IF(A1:A30<"",1/COUNTIF(A1:A30,A1:A30)))
Jo wrote:
Hi,

Say you have in column A this:

Order No
24
24
24
24
123
123
123
123
123
75
75

and so on. It means that we have 3 orders (i.e., 24, 123, and 75). How
can caculate this? I mean what formula can be used to do so?

Thanks,
Jo


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 69
Default How do you count this?

On Oct 10, 9:54 am, "papou" wrote:
Hi Jo
If only numeric values:
=SUM(N(FREQUENCY(A2:A12,A2:A12)0))

See Chip Pearson'shttp://www.cpearson.com/excel/Duplicates.aspx

HTH
Cordially
Pascal

"Jo" a écrit dans le message de news:
m...



Hi,


Say you have in column A this:


Order No
24
24
24
24
123
123
123
123
123
75
75


and so on. It means that we have 3 orders (i.e., 24, 123, and 75). How
can caculate this? I mean what formula can be used to do so?


Thanks,
Jo- Hide quoted text -


- Show quoted text -


What if I hide an order using "hide", how do I make your formula take
care of that?

Thanks,
Jo

  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 69
Default How do you count this?

On Oct 10, 9:54 am, "papou" wrote:
Hi Jo
If only numeric values:
=SUM(N(FREQUENCY(A2:A12,A2:A12)0))

See Chip Pearson'shttp://www.cpearson.com/excel/Duplicates.aspx

HTH
Cordially
Pascal

"Jo" a écrit dans le message de news:
m...



Hi,


Say you have in column A this:


Order No
24
24
24
24
123
123
123
123
123
75
75


and so on. It means that we have 3 orders (i.e., 24, 123, and 75). How
can caculate this? I mean what formula can be used to do so?


Thanks,
Jo- Hide quoted text -


- Show quoted text -


Papou,

What if I "Hide" one order number, how do I make the frequency formula
working? Does SUBTOTAL take care of that? If so, what is the "function
number for that?

In the above example, if I hide order # 75, I want the answer to be 2
automatically and so on.

Thanks,
Jo

  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 69
Default How do you count this?

On Oct 10, 10:32 am, "papou"
wrote:
Jo
Try by yourself and see what happens!
HTH
Cordially
Pascal

"Jo" a écrit dans le message de news:
om...
On Oct 10, 9:54 am, "papou" wrote:





Hi Jo
If only numeric values:
=SUM(N(FREQUENCY(A2:A12,A2:A12)0))


See Chip Pearson'shttp://www.cpearson.com/excel/Duplicates.aspx


HTH
Cordially
Pascal


"Jo" a écrit dans le message de news:
m...


Hi,


Say you have in column A this:


Order No
24
24
24
24
123
123
123
123
123
75
75


and so on. It means that we have 3 orders (i.e., 24, 123, and 75). How
can caculate this? I mean what formula can be used to do so?


Thanks,
Jo- Hide quoted text -


- Show quoted text -


What if I hide an order using "hide", how do I make your formula take
care of that?

Thanks,
Jo- Hide quoted text -

- Show quoted text -


I tried it, the hidden ones still counted! I know SUBTOTAL take care
of that but not sure what is the function number for it?

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
Count Employee Work Time - Don't Double-count Overlapping Apts. J Excel Worksheet Functions 0 April 27th 07 05:52 AM
Excel 2000, count, sort a list & count totals? sunslight Excel Worksheet Functions 1 April 9th 07 05:46 PM
Excel Count characters in a textbox to display character count? [email protected] Excel Programming 1 February 8th 07 06:31 AM
Count Intervals of 2 Consecutive Values in same Row and Return Count across Row Sam via OfficeKB.com Excel Worksheet Functions 6 November 29th 05 03:27 PM
Count Intervals of Filtered TEXT values in Column and Return Count across a Row Sam via OfficeKB.com Excel Worksheet Functions 9 July 31st 05 03:37 AM


All times are GMT +1. The time now is 01:54 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"