Thread: Countif Use
View Single Post
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
daddylonglegs daddylonglegs is offline
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