Determine Sequence

spcalan

Well-known Member
Joined
Jun 4, 2008
Messages
1,247
I have a list of Invoices with a Date and Email Addresses from a sales database.

I have counted the number of invoices per email address...but now I need to mark each invoice as "First / Second/Third, Fourth, Fifth Order .. basically what sequence....

I am trying to calculate the number of days on average between a customer's first order and 2nd order...


How do I post a photo ?
 
Last edited:

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
[TABLE="width: 1352"]
<colgroup><col><col><col><col><col><col><col><col><col><col><col></colgroup><tbody>[TR]
[TD]Payment Date (MST)[/TD]
[TD]Processed by E-j (MST)[/TD]
[TD]Transaction ID[/TD]
[TD]Payment Processor[/TD]
[TD]E-j Internal Txn ID[/TD]
[TD]Payment Status[/TD]
[TD]First Name[/TD]
[TD]Last Name[/TD]
[TD]Order Sequence[/TD]
[TD]Count[/TD]
[TD]Payer E-mail[/TD]
[/TR]
[TR]
[TD="align: right"]12/26/2018[/TD]
[TD="align: right"]12/26/2018[/TD]
[TD]st-ch_1DlgUyBagK2TtORQOyu6JtFT[/TD]
[TD]Stripe[/TD]
[TD]XXXX[/TD]
[TD]Completed[/TD]
[TD]Mr.[/TD]
[TD]Smith[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]1[/TD]
[TD]AA@AOL.com[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]3/15/2019[/TD]
[TD="align: right"]3/15/2019[/TD]
[TD]st-ch_1EEOWpBagK2TtORQ9gNhsIT0[/TD]
[TD]Stripe[/TD]
[TD]XXXX[/TD]
[TD]Completed[/TD]
[TD]Mr.[/TD]
[TD]Smith[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]2[/TD]
[TD]AA1@AOL.com[/TD]
[/TR]
[TR]
[TD="align: right"]3/15/2019[/TD]
[TD="align: right"]3/15/2019[/TD]
[TD]st-ch_1EEOWpBagK2TtORQ9gNhsIT0[/TD]
[TD]Stripe[/TD]
[TD]XXXX[/TD]
[TD]Completed[/TD]
[TD]Mr.[/TD]
[TD]Smith[/TD]
[TD="align: right"]2[/TD]
[TD="align: right"]2[/TD]
[TD]AA1@AOL.com[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]4/12/2019[/TD]
[TD="align: right"]4/12/2019[/TD]
[TD]st-ch_1EOQgyBagK2TtORQnU9fOuSo[/TD]
[TD]Stripe[/TD]
[TD]XXXX[/TD]
[TD]Completed[/TD]
[TD]Mr.[/TD]
[TD]Smith[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]13[/TD]
[TD]AA2@AOL.com[/TD]
[/TR]
[TR]
[TD="align: right"]5/9/2019[/TD]
[TD="align: right"]5/9/2019[/TD]
[TD]st-ch_1EYByeBagK2TtORQ9CLQ3ojz[/TD]
[TD]Stripe[/TD]
[TD]XXXX[/TD]
[TD]Completed[/TD]
[TD]Mr.[/TD]
[TD]Smith[/TD]
[TD="align: right"]2[/TD]
[TD="align: right"]13[/TD]
[TD]AA2@AOL.com[/TD]
[/TR]
[TR]
[TD="align: right"]5/23/2019[/TD]
[TD="align: right"]5/23/2019[/TD]
[TD]st-ch_1EdFD2BagK2TtORQW0RyxKLB[/TD]
[TD]Stripe[/TD]
[TD]XXXX[/TD]
[TD]Completed[/TD]
[TD]Mr.[/TD]
[TD]Smith[/TD]
[TD="align: right"]3[/TD]
[TD="align: right"]13[/TD]
[TD]AA2@AOL.com[/TD]
[/TR]
[TR]
[TD="align: right"]5/30/2019[/TD]
[TD="align: right"]5/30/2019[/TD]
[TD]st-ch_1Eg2hdBagK2TtORQUlyskW3p[/TD]
[TD]Stripe[/TD]
[TD]XXXX[/TD]
[TD]Completed[/TD]
[TD]Mr.[/TD]
[TD]Smith[/TD]
[TD="align: right"]4[/TD]
[TD="align: right"]13[/TD]
[TD]AA2@AOL.com[/TD]
[/TR]
[TR]
[TD="align: right"]5/30/2019[/TD]
[TD="align: right"]5/30/2019[/TD]
[TD]st-ch_1Eg2lQBagK2TtORQpbl6p851[/TD]
[TD]Stripe[/TD]
[TD]XXXX[/TD]
[TD]Completed[/TD]
[TD]Mr.[/TD]
[TD]Smith[/TD]
[TD="align: right"]5[/TD]
[TD="align: right"]13[/TD]
[TD]AA2@AOL.com[/TD]
[/TR]
[TR]
[TD="align: right"]6/7/2019[/TD]
[TD="align: right"]6/7/2019[/TD]
[TD]st-ch_1EimYlBagK2TtORQVyQpaNFv[/TD]
[TD]Stripe[/TD]
[TD]XXXX[/TD]
[TD]Completed[/TD]
[TD]Mr.[/TD]
[TD]Smith[/TD]
[TD="align: right"]6[/TD]
[TD="align: right"]13[/TD]
[TD]AA2@AOL.com[/TD]
[/TR]
[TR]
[TD="align: right"]6/12/2019[/TD]
[TD="align: right"]6/12/2019[/TD]
[TD]st-ch_1EkdUXBagK2TtORQOyatoou8[/TD]
[TD]Stripe[/TD]
[TD]XXXX[/TD]
[TD]Completed[/TD]
[TD]Mr.[/TD]
[TD]Smith[/TD]
[TD="align: right"]7[/TD]
[TD="align: right"]13[/TD]
[TD]AA2@AOL.com[/TD]
[/TR]
[TR]
[TD="align: right"]6/14/2019[/TD]
[TD="align: right"]6/14/2019[/TD]
[TD]st-ch_1ElLm8BagK2TtORQfsAKqLZ0[/TD]
[TD]Stripe[/TD]
[TD]XXXX[/TD]
[TD]Completed[/TD]
[TD]Mr.[/TD]
[TD]Smith[/TD]
[TD="align: right"]8[/TD]
[TD="align: right"]13[/TD]
[TD]AA2@AOL.com[/TD]
[/TR]
[TR]
[TD="align: right"]6/17/2019[/TD]
[TD="align: right"]6/17/2019[/TD]
[TD]st-ch_1EmV6YBagK2TtORQjxY8e5bq[/TD]
[TD]Stripe[/TD]
[TD]XXXX[/TD]
[TD]Completed[/TD]
[TD]Mr.[/TD]
[TD]Smith[/TD]
[TD="align: right"]9[/TD]
[TD="align: right"]13[/TD]
[TD]AA2@AOL.com[/TD]
[/TR]
[TR]
[TD="align: right"]6/18/2019[/TD]
[TD="align: right"]6/18/2019[/TD]
[TD]st-ch_1EmkRlBagK2TtORQAJa0JiLp[/TD]
[TD]Stripe[/TD]
[TD]XXXX[/TD]
[TD]Completed[/TD]
[TD]Mr.[/TD]
[TD]Smith[/TD]
[TD="align: right"]10[/TD]
[TD="align: right"]13[/TD]
[TD]AA2@AOL.com[/TD]
[/TR]
[TR]
[TD="align: right"]6/19/2019[/TD]
[TD="align: right"]6/19/2019[/TD]
[TD]st-ch_1En8MnBagK2TtORQjcdjQ87u[/TD]
[TD]Stripe[/TD]
[TD]XXXX[/TD]
[TD]Completed[/TD]
[TD]Mr.[/TD]
[TD]Smith[/TD]
[TD="align: right"]11[/TD]
[TD="align: right"]13[/TD]
[TD]AA2@AOL.com[/TD]
[/TR]
[TR]
[TD="align: right"]6/22/2019[/TD]
[TD="align: right"]6/22/2019[/TD]
[TD]st-ch_1EoFM2BagK2TtORQypNH049G[/TD]
[TD]Stripe[/TD]
[TD]XXXX[/TD]
[TD]Completed[/TD]
[TD]Mr.[/TD]
[TD]Smith[/TD]
[TD="align: right"]12[/TD]
[TD="align: right"]13[/TD]
[TD]AA2@AOL.com[/TD]
[/TR]
[TR]
[TD="align: right"]6/22/2019[/TD]
[TD="align: right"]6/22/2019[/TD]
[TD]st-ch_1EoFPeBagK2TtORQYADvjYgS[/TD]
[TD]Stripe[/TD]
[TD]XXXX[/TD]
[TD]Completed[/TD]
[TD]Mr.[/TD]
[TD]Smith[/TD]
[TD="align: right"]13[/TD]
[TD="align: right"]13[/TD]
[TD]AA2@AOL.com[/TD]
[/TR]
</tbody>[/TABLE]
 
Upvote 0
How about


Book1
ABCDEFGHIJK
1Payment Date (MST)Processed by E-j (MST)Transaction IDPayment ProcessorE-j Internal Txn IDPayment StatusFirst NameLast NameOrder SequenceCountPayer E-mail
212/26/201812/26/2018st-ch_1DlgUyBagK2TtORQOyu6JtFTStripeXXXXCompletedMr.Smith11AA@AOL.com
33/15/20193/15/2019st-ch_1EEOWpBagK2TtORQ9gNhsIT0StripeXXXXCompletedMr.Smith12AA1@AOL.com
43/15/20193/15/2019st-ch_1EEOWpBagK2TtORQ9gNhsIT0StripeXXXXCompletedMr.Smith22AA1@AOL.com
504/12/201904/12/2019st-ch_1EOQgyBagK2TtORQnU9fOuSoStripeXXXXCompletedMr.Smith113AA2@AOL.com
605/09/201905/09/2019st-ch_1EYByeBagK2TtORQ9CLQ3ojzStripeXXXXCompletedMr.Smith213AA2@AOL.com
75/23/20195/23/2019st-ch_1EdFD2BagK2TtORQW0RyxKLBStripeXXXXCompletedMr.Smith313AA2@AOL.com
85/30/20195/30/2019st-ch_1Eg2hdBagK2TtORQUlyskW3pStripeXXXXCompletedMr.Smith413AA2@AOL.com
95/30/20195/30/2019st-ch_1Eg2lQBagK2TtORQpbl6p851StripeXXXXCompletedMr.Smith513AA2@AOL.com
1006/07/201906/07/2019st-ch_1EimYlBagK2TtORQVyQpaNFvStripeXXXXCompletedMr.Smith613AA2@AOL.com
1106/12/201906/12/2019st-ch_1EkdUXBagK2TtORQOyatoou8StripeXXXXCompletedMr.Smith713AA2@AOL.com
126/14/20196/14/2019st-ch_1ElLm8BagK2TtORQfsAKqLZ0StripeXXXXCompletedMr.Smith813AA2@AOL.com
136/17/20196/17/2019st-ch_1EmV6YBagK2TtORQjxY8e5bqStripeXXXXCompletedMr.Smith913AA2@AOL.com
146/18/20196/18/2019st-ch_1EmkRlBagK2TtORQAJa0JiLpStripeXXXXCompletedMr.Smith1013AA2@AOL.com
156/19/20196/19/2019st-ch_1En8MnBagK2TtORQjcdjQ87uStripeXXXXCompletedMr.Smith1113AA2@AOL.com
166/22/20196/22/2019st-ch_1EoFM2BagK2TtORQypNH049GStripeXXXXCompletedMr.Smith1213AA2@AOL.com
176/22/20196/22/2019st-ch_1EoFPeBagK2TtORQYADvjYgSStripeXXXXCompletedMr.Smith1313AA2@AOL.com
Sheet4
Cell Formulas
RangeFormula
I2=COUNTIF(K$2:K2,K2)
 
Upvote 0

Forum statistics

Threads
1,223,888
Messages
6,175,203
Members
452,617
Latest member
Narendra Babu D

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