Excel Formula - Counting Multiple Lines & Duplicates
Discussion
Having a problem in excel where I’m failing to find a formula to count duplicate values as 1 order.
I want to count the order numbers in Column A, so that the quantity in Column B displays the value as 1. For example; Row 2 is a 1 line order so should show as a Quantity of 1, Row 3-5 is a 3 line order (same order number) so I only want to count the first line (Row 3) as one and count the duplicates (Row 4 & 5) as zero. I’ve manually added a value to show how this should look in Column B. Is there any way to do this? I can’t seem to get the IF FREQUENCY to work, it’s counting overall orders which is correct for the sample at 6 (Column C) but this isn’t what I want. Other than working through manually I can’t get this quickly. I can get the same through a pivot but there is data behind which I need to relate to global regions and split hence I need each order count to be unique and can’t look at overall, then I will be able to pivot based on this.

Any help appreciated!
I want to count the order numbers in Column A, so that the quantity in Column B displays the value as 1. For example; Row 2 is a 1 line order so should show as a Quantity of 1, Row 3-5 is a 3 line order (same order number) so I only want to count the first line (Row 3) as one and count the duplicates (Row 4 & 5) as zero. I’ve manually added a value to show how this should look in Column B. Is there any way to do this? I can’t seem to get the IF FREQUENCY to work, it’s counting overall orders which is correct for the sample at 6 (Column C) but this isn’t what I want. Other than working through manually I can’t get this quickly. I can get the same through a pivot but there is data behind which I need to relate to global regions and split hence I need each order count to be unique and can’t look at overall, then I will be able to pivot based on this.
Any help appreciated!
Edited by PD9 on Monday 1st October 11:27
Gassing Station | Business | Top of Page | What's New | My Stuff


