Delivery Drop No.?

Northerner

Board Regular
Joined
Nov 13, 2002
Messages
149
I am currently developing a route check sheet for our drivers. Can someone assist in counting the unique entries by account Number?
My sheet will show Account No. in Col G starting from G4.
I have found =IF(G4<>G3,COUNTA($G$3:G4)&".","") but this has the fault in that if I have 3 deliveries to an address, the next delivery drop count is incremented by 3 and not by 1.
1. 1234 Fred
....1234 Fred
....1234 Fred
4. 5678 Barney
5. 9101 Wilma

Any assistance or pointing in the right direction greatfully recieved.
 

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)
1. 1234 Fred
....1234 Fred
....1234 Fred
2. 5678 Barney
3. 9101 Wilma

(Obviously the .... are just spacers :confused: )

Thanks Aladin
 
Upvote 0
Northerner said:
1. 1234 Fred
....1234 Fred
....1234 Fred
2. 5678 Barney
3. 9101 Wilma

(Obviously the .... are just spacers :confused: )

Thanks Aladin

Hmm. Three is the desired result, I guess.

=SUMPRODUCT((AccountRange<>"")/COUNTIF(AccountRange,AccountRange&""))
 
Upvote 0
Aladin,
Dooh!
Thanks for the response but I obviously didn't make my request clear :oops:

Drivers, being drivers, (Ours at least before anyone shoots me) need to know that Fred (1234) is going to be his first drop, Barney (5678) is going to be his second, and in turn Wilma will be his third.
Your formula counted the Unique account numbers while what I need is to have 1 against Fred (for first drop) 2 against Barney (for second) etc.
I could get my formula to put 1 against Fred but would count by rows until finding Barney and giving him 4(fourth drop) instead of 2(second drop).
Hope this clarifies my request. Thanks for your time
 
Upvote 0
If I understand correct paste this in F3 and drag down
=IF(G3<>G2,COUNTIF($F$2:F2,">0")+1,"")
 
Upvote 0
Unfortunatly not Fairwind, this copies thje same results as my original formula up the top, =IF(G4<>G3,COUNTA($G$3:G4)&".","").
Thanks for the attempt. :)
 
Upvote 0
Northerner said:
Aladin,
Dooh!
Thanks for the response but I obviously didn't make my request clear :oops:

Drivers, being drivers, (Ours at least before anyone shoots me) need to know that Fred (1234) is going to be his first drop, Barney (5678) is going to be his second, and in turn Wilma will be his third.
Your formula counted the Unique account numbers while what I need is to have 1 against Fred (for first drop) 2 against Barney (for second) etc.
I could get my formula to put 1 against Fred but would count by rows until finding Barney and giving him 4(fourth drop) instead of 2(second drop).
Hope this clarifies my request. Thanks for your time

Array-enter & copy down...

=IF(G3<>G2,COUNTDIFF(IF($G$3:$G$7=G3,$H$3:$H$7))-1,"")

This formula requires the morefunc add-in.

If this is also off the mark, I'd like see a sample and desired results along with the ranges of interest.
 
Upvote 0
If I've missed something, sorry, but the below seems to give what you require:-
Book2
ABCD
111234Fred
211234Fred
311234Fred
425678Barney
539101Wilma
Sheet1
 
Upvote 0
Maybe Im wrong :( but as it counts the numbers in F column and not entrys in G column I thougt i got the answer you wanted.
 
Upvote 0

Forum statistics

Threads
1,214,583
Messages
6,120,383
Members
448,955
Latest member
BatCoder

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top