How to make a list of stores in the order they have been visited?

schappelljr

Board Regular
Joined
Feb 2, 2009
Messages
55
I am trying to make a list of stores in the order they have been visited. The data has the store name and time of when each transaction has taken place. Sometimes in the same day they will go back to the same store. I want to see what store they have been to and the order they visited in. I tried removing duplicates but it won’t work if they go back in the venue in the same day. I would like to use a pivot table if possible, but any suggestion on how to make this list?
Store nametime
Store 112:00 pm
Store 112:30 pm
Store 11:00 pm
Store 21:39 pm
Store 22:00 pm
Store 12:30 pm
Store 33:30 pm
Store 34:00 pm

<tbody>
</tbody>

Answer
Store 1
Store 2
Store 1
Store 3

<tbody>
</tbody>
 
Last edited:

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.
Perhaps this:-
Results in column "D"
Code:
[COLOR="Navy"]Sub[/COLOR] MG19Dec55
[COLOR="Navy"]Dim[/COLOR] Rng [COLOR="Navy"]As[/COLOR] Range, Dn [COLOR="Navy"]As[/COLOR] Range, c [COLOR="Navy"]As[/COLOR] [COLOR="Navy"]Long,[/COLOR] Temp [COLOR="Navy"]As[/COLOR] [COLOR="Navy"]String[/COLOR]
[COLOR="Navy"]Set[/COLOR] Rng = Range(Range("A2"), Range("A" & Rows.Count).End(xlUp))
[COLOR="Navy"]For[/COLOR] [COLOR="Navy"]Each[/COLOR] Dn [COLOR="Navy"]In[/COLOR] Rng
    [COLOR="Navy"]If[/COLOR] Not Dn.Value = Temp [COLOR="Navy"]Then[/COLOR]
        c = c + 1
        Cells(c, "D") = Dn.Value
    [COLOR="Navy"]End[/COLOR] If
    Temp = Dn.Value
[COLOR="Navy"]Next[/COLOR] Dn
[COLOR="Navy"]End[/COLOR] [COLOR="Navy"]Sub[/COLOR]
Regards Mick
 
Upvote 0
Thanks that works but after thinking about it how would I also add the time next to it?

Store 112:00pm
Store 21:30pm
Store 12:15 pm
Store 33:15 pm

<tbody>
</tbody>
 
Upvote 0

Forum statistics

Threads
1,214,972
Messages
6,122,530
Members
449,088
Latest member
RandomExceller01

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