Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]() 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
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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 |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
sumproduct vs. countif | Excel Discussion (Misc queries) | |||
Countif Formula /Sort Bug??? | Excel Discussion (Misc queries) | |||
COUNTIF or not to COUNTIF on a range in another sheet | Excel Worksheet Functions | |||
Combining IF and COUNTIF based on two columns | Excel Discussion (Misc queries) | |||
Countif - Countif | Excel Worksheet Functions |