Create Unique ID number which refreshes on new day

paulieCou

New Member
Joined
Oct 23, 2022
Messages
3
Office Version
  1. 365
Hi

Im trying to input a function so that a unique ID is generated for each new day entry, where i have specified day as a number not a date.
When it changes to day 2 it does not restart a sequential count from 1
i have tried multiple work arounds but cant figure it

I have 14 days that i will be collecting data over and so that is my value limit of days

=CONCATENATE((C4),"-",COUNTIF(C$4:C4,1))

This is the current formula and i appreciate that this only works for the number 1 and i cant figure it out for others without either returning higher numbers, it falling or error

Thanks
P

Screenshot 2022-10-23 at 17.32.25.png
 

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.
Hi & welcome to MrExcel.
How about
Excel Formula:
=CONCATENATE(C4,"-",COUNTIF(C$4:C4,C4))
 
Upvote 0
Fluff

Thanks for welcoming me, im not excel trained and so copying and pasting formulas with trial and error has been painfully slow but fun

you hero, it worked! literally one bracket, so annoying haha.

Now, do you know how to add into the formula to show nothing if no day has been allocated?
At present it just returns a -1 otherwise
No issue if not

Cheers
 
Upvote 0
How about
Excel Formula:
=IF(C4="","",CONCATENATE(C4,"-",COUNTIF(C$4:C4,C4)))
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,184
Members
453,020
Latest member
Mohamed Magdi Tawfiq Emam

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