Countif Use

L

larryf666

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
 
D

daddylonglegs

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&""))
 
L

larryf666

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

THANX

Larryf666
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top