#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default Countif Use

I have a line of 500 order numbers & need to break it down into how many line
refer to the different order numbers, i.e o/n 100002 = 2 lines 100003 = 3
lines 100004 = 2 lines = 7 lines on the orders total. Is there any way that
I can sort the column so it counts each individual order number as 1 without
taking into account how many lines are actually in the order, i.e o/n 100002
= 2 lines 100003 = 3 lines 100004 = 2 lines = 3 order numbers total. I hope
I have explained this well enough for some one to assist.
Regards Larry
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Countif Use

Assuming order numbers in A1 down,
In B1: =COUNTIF(A:A,A1)
Copy down
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"larryf666" wrote:
I have a line of 500 order numbers & need to break it down into how many line
refer to the different order numbers, i.e o/n 100002 = 2 lines 100003 = 3
lines 100004 = 2 lines = 7 lines on the orders total. Is there any way that
I can sort the column so it counts each individual order number as 1 without
taking into account how many lines are actually in the order, i.e o/n 100002
= 2 lines 100003 = 3 lines 100004 = 2 lines = 3 order numbers total. I hope
I have explained this well enough for some one to assist.
Regards Larry

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 174
Default Countif Use

Are you trying to get a count of unique order numbers? Assuming the order
numbers are in A1:A500 try

=SUMPRODUCT((A1:A500<"")/COUNTIF(A1:A500,A1:A500&""))

"larryf666" wrote:

I have a line of 500 order numbers & need to break it down into how many line
refer to the different order numbers, i.e o/n 100002 = 2 lines 100003 = 3
lines 100004 = 2 lines = 7 lines on the orders total. Is there any way that
I can sort the column so it counts each individual order number as 1 without
taking into account how many lines are actually in the order, i.e o/n 100002
= 2 lines 100003 = 3 lines 100004 = 2 lines = 3 order numbers total. I hope
I have explained this well enough for some one to assist.
Regards Larry

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 694
Default Countif Use


Try a pivot table with the count variable.
--
Hope this helps
Martin Fishlock


"larryf666" wrote:

I have a line of 500 order numbers & need to break it down into how many line
refer to the different order numbers, i.e o/n 100002 = 2 lines 100003 = 3
lines 100004 = 2 lines = 7 lines on the orders total. Is there any way that
I can sort the column so it counts each individual order number as 1 without
taking into account how many lines are actually in the order, i.e o/n 100002
= 2 lines 100003 = 3 lines 100004 = 2 lines = 3 order numbers total. I hope
I have explained this well enough for some one to assist.
Regards Larry

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default Countif Use

Spot on this worked a treat, it gave me all the information I required.

THANX

Larryf666

"daddylonglegs" wrote:

Are you trying to get a count of unique order numbers? Assuming the order
numbers are in A1:A500 try

=SUMPRODUCT((A1:A500<"")/COUNTIF(A1:A500,A1:A500&""))

"larryf666" wrote:

I have a line of 500 order numbers & need to break it down into how many line
refer to the different order numbers, i.e o/n 100002 = 2 lines 100003 = 3
lines 100004 = 2 lines = 7 lines on the orders total. Is there any way that
I can sort the column so it counts each individual order number as 1 without
taking into account how many lines are actually in the order, i.e o/n 100002
= 2 lines 100003 = 3 lines 100004 = 2 lines = 3 order numbers total. I hope
I have explained this well enough for some one to assist.
Regards Larry

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
sumproduct vs. countif Coal Miner Excel Discussion (Misc queries) 1 June 15th 06 09:34 PM
Countif Formula /Sort Bug??? orcfodder Excel Discussion (Misc queries) 2 January 12th 06 10:04 AM
COUNTIF or not to COUNTIF on a range in another sheet Ellie Excel Worksheet Functions 4 September 15th 05 10:06 PM
Combining IF and COUNTIF based on two columns maxtrixx Excel Discussion (Misc queries) 5 March 31st 05 06:21 PM
Countif - Countif maswinney Excel Worksheet Functions 3 November 15th 04 11:06 PM


All times are GMT +1. The time now is 10:15 AM.

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"