Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Count equal numbers as unique numbers

how can I count equal numbers in colum A as unique ones? for example:

Regardless there are 3 (6452301) i need to count them as one Sales Order and
not as three, as so on:

6452302
6452301
6452301
6452301
6452303
6452303
6452303


  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 211
Default Count equal numbers as unique numbers

One way is to get the list of unique entries.
Go to Data| Filter| Advanced filter.
Select: Copy to another location
Select the range you want to get its unique entries
Tick the Unique records only box in the bottom.
This will give you the unique entries.

--
R. Khoshravan
Please click "Yes" if it is helpful.


"auyantepui" wrote:

how can I count equal numbers in colum A as unique ones? for example:

Regardless there are 3 (6452301) i need to count them as one Sales Order and
not as three, as so on:

6452302
6452301
6452301
6452301
6452303
6452303
6452303


  #3   Report Post  
Posted to microsoft.public.excel.misc
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Count equal numbers as unique numbers

One way
In say, B1:
=SUMPRODUCT((A1:A10<"")/COUNTIF(A1:A10,A1:A10&""))
High-five? Click YES button below.
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:23,500 Files:370 Subscribers:66
xdemechanik
---
"auyantepui" wrote:
how can I count equal numbers in colum A as unique ones? for example:

Regardless there are 3 (6452301) i need to count them as one Sales Order and
not as three, as so on:

6452302
6452301
6452301
6452301
6452303
6452303
6452303


  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 161
Default Count equal numbers as unique numbers

If ur area does not contain blank cells, the following should work:
=SUM(1/COUNTIF(A1:A10,A1:A10)) press ctrl+shift+enter as this is array formula

HTH


"auyantepui" wrote:

how can I count equal numbers in colum A as unique ones? for example:

Regardless there are 3 (6452301) i need to count them as one Sales Order and
not as three, as so on:

6452302
6452301
6452301
6452301
6452303
6452303
6452303


  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 73
Default Count equal numbers as unique numbers

Based on your posted sample data being numeric:

=SUM(--(FREQUENCY(A1:A20,A1:A20)0))


--
Biff
Microsoft Excel MVP


"auyantepui" wrote:

how can I count equal numbers in colum A as unique ones? for example:

Regardless there are 3 (6452301) i need to count them as one Sales Order and
not as three, as so on:

6452302
6452301
6452301
6452301
6452303
6452303
6452303




  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 161
Default Count equal numbers as unique numbers

Biff, very smart, thx.

"T. Valko" wrote:

Based on your posted sample data being numeric:

=SUM(--(FREQUENCY(A1:A20,A1:A20)0))


--
Biff
Microsoft Excel MVP


"auyantepui" wrote:

how can I count equal numbers in colum A as unique ones? for example:

Regardless there are 3 (6452301) i need to count them as one Sales Order and
not as three, as so on:

6452302
6452301
6452301
6452301
6452303
6452303
6452303


  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 73
Default Count equal numbers as unique numbers

Thanks!

--
Biff
Microsoft Excel MVP


"Alojz" wrote:

Biff, very smart, thx.

"T. Valko" wrote:

Based on your posted sample data being numeric:

=SUM(--(FREQUENCY(A1:A20,A1:A20)0))


--
Biff
Microsoft Excel MVP


"auyantepui" wrote:

how can I count equal numbers in colum A as unique ones? for example:

Regardless there are 3 (6452301) i need to count them as one Sales Order and
not as three, as so on:

6452302
6452301
6452301
6452301
6452303
6452303
6452303


  #8   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 857
Default Count equal numbers as unique numbers

Hi,

You can also avoid the array by using

=SUMPRODUCT(1/COUNTIF(A1:A10,A1:A10))

We can't tell if your sales order numbers are text or numbers, if they are
text the FREQUENCY function needs to be modified:

=SUM(--(FREQUENCY(--B1:B7,--B1:B20)0))

This will return an incorrect result if any cells are blank so you would
need to modify it to

=SUM(--(FREQUENCY(--B1:B20,--B1:B20)0),-1)

But now this would return an incorrect result if no cells were blank, so

=SUM(--(FREQUENCY(--B1:B20,--B1:B20)0),-(COUNTBLANK(B1:B20)0))

works in both cases. The key message here is that FREQUENCY works only with
numerical data while COUNTIF works with any kind of data.

--
If this helps, please click the Yes button.

Cheers,
Shane Devenshire


"auyantepui" wrote:

how can I count equal numbers in colum A as unique ones? for example:

Regardless there are 3 (6452301) i need to count them as one Sales Order and
not as three, as so on:

6452302
6452301
6452301
6452301
6452303
6452303
6452303


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
For each change in Col. C, Count Unique Numbers in Col. G ryguy7272 Excel Worksheet Functions 2 November 6th 08 04:04 PM
Count unique numbers markmcd Excel Discussion (Misc queries) 8 October 1st 08 03:11 AM
Count unique numbers Stilin Excel Worksheet Functions 2 September 19th 07 12:04 PM
Count Unique Numbers Averitt Engineer Excel Worksheet Functions 6 February 14th 07 09:26 PM
summary count of unique numbers Dave Edge Excel Discussion (Misc queries) 5 November 12th 05 12:06 AM


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