Assigning Order Number

Status
Not open for further replies.

tbollo

New Member
Joined
Apr 16, 2018
Messages
19
Hello,

I have a table containing customer order information.

Column A is their unique customer ID, Column B is their order date and column C is the product they purchased:

CUSTOMER IDORDER DATEPRODUCT
B006-0596330-Jan-19PRODUCT A
B006-0596330-Jan-19PRODUCT B
B006-0596328-Feb-19PRODUCT A
B006-0846310-May-18PRODUCT A
B006-0846310-May-18PRODUCT A
B010-0050231-May-19PRODUCT B
B010-0050231-May-19PRODUCT B
B013-023861-Dec-19PRODUCT C
B013-023862-Dec-19PRODUCT D
B013-023862-Dec-19PRODUCT D
B013-0238612-Dec-19PRODUCT A
B013-0238612-Dec-19PRODUCT D
B013-023863-Jan-20PRODUCT E
B013-023863-Jan-20PRODUCT A
B013-023863-Jan-20PRODUCT C

I would like to populate column D with a number that shows whether the product was bought on the same day (using the date field in Column B) for each unique customer. So the finshed data looks like this:

CUSTOMER IDORDER DATEPRODUCTORDER
B006-0596330-Jan-19PRODUCT A1
B006-0596330-Jan-19PRODUCT B1
B006-0596328-Feb-19PRODUCT A2
B006-0846310-May-18PRODUCT A1
B006-0846310-May-18PRODUCT A1
B010-0050231-May-19PRODUCT B1
B010-0050231-May-19PRODUCT B1
B013-023861-Dec-19PRODUCT C1
B013-023862-Dec-19PRODUCT D2
B013-023862-Dec-19PRODUCT D2
B013-0238612-Dec-19PRODUCT A3
B013-0238612-Dec-19PRODUCT D3
B013-023863-Jan-20PRODUCT E4
B013-023863-Jan-20PRODUCT A4
B013-023863-Jan-20PRODUCT C4


Can anyone help?

Thanks,
Tim
 

Excel Facts

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.
Duplicate Outputting Product + Order Reference

Please do not post the same question multiple times. All clarifications, follow-ups, and bumps should be posted back to the original thread.
Per forum rules, posts of a duplicate nature will be locked or deleted (rule 12 here: Forum Rules).
 
Upvote 0
Status
Not open for further replies.

Forum statistics

Threads
1,215,004
Messages
6,122,659
Members
449,091
Latest member
peppernaut

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