Assign each day a number

jmcdonald22

New Member
Joined
Jun 16, 2017
Messages
7
I have a list of invoice dates between two periods for a total of 260 business days. I need to find a way to assign a number between 1-260 to each invoice date. I have other fields being pulled in that is duplicating my invoice date preventing me from sorting and numbering 1-260. I hope my explanation makes sense and thank you for the help.
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
Squire,

Does your data set include invoice numbers? If so, sort on invoice date then on invoice number. Once that is complete you could easily assign your own numbers/codes as needed.
 
Upvote 0
I don't have invoice numbers but the fields I do have allowed me to sort and number. I just wasn't able to see it first go around. Thanks for the help!
 
Upvote 0
On second thought, I think I misread your question.

You could copy/paste the invoice date column into another worksheet, then remove all duplicates so you are left with only a single line item for each date. Then sort the dates, and assign numbers 1-260.

After that, you can vlookup or index/match the assigned numbers to the dates in your primary data set.
 
Upvote 0

Forum statistics

Threads
1,214,653
Messages
6,120,748
Members
448,989
Latest member
mariah3

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