Generating a unique process number

Sawdeeka01

New Member
Joined
Mar 31, 2020
Messages
37
Office Version
  1. 365
Hi,

I am working with a large data set and I have two (2) queries I am hoping you could assist me with please.

1): I need to create a unique process number comprised of various cells. I have created a formula based on one (1) cell but need additional identifiers and I keep getting the formula wrong :(

My current formula is: =CONCATENATE(LEFT(B3,5),"-",COUNTIF($B$2:B3,B3))

What I am hoping to build is a formula with the first 5 characters of cell: B and D and 8 characters from cell H.


1594939639851.png


2): All of the above fields have very long drop down lists. I am hoping that I can create a formula so that when someone selects a specific title from column B, the only options available in column C have a direct relationship to column B.

I really hope this makes sense to you!

Thank you in advance!

Sawdeeka01
 

Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.
For the first part, something like

=LEFT(B3,5)&LEFT(D3,5)&LEFT(H3,8)"-"COUNTIFS($B$2:B3,B3,$D$2:D3,D3,$H$2:H3,H3)

For the second part you will need to use the method detailed at the link below,
 
Upvote 0
For the first part, something like

=LEFT(B3,5)&LEFT(D3,5)&LEFT(H3,8)"-"COUNTIFS($B$2:B3,B3,$D$2:D3,D3,$H$2:H3,H3)

For the second part you will need to use the method detailed at the link below,

Thank you I did get there in the end!
 
Upvote 0
Following on from this I need to make some changes and am challenged all over again!

I built the below formula but now need to change it so that it only generates a unique process number if column Q is a Yes (drop down list of Yes or No), can anyone please help me?

=CONCATENATE(LEFT(B7,5)&LEFT(D7,5)&LEFT(H7,8),"-",COUNTIFS($B$6:B7,B7,$D$6:D7,D7,$H$6:H7,H7))
 
Upvote 0
Perhaps

=IF(Q7="Yes",LEFT(B7,5)&LEFT(D7,5)&LEFT(H7,8)&"-"&COUNTIFS(B$6:B7,B7,$D$6:D7,D7,$H$6:H7,H7,Q$6:Q7,"Yes"),"")
 
Upvote 0

Forum statistics

Threads
1,214,940
Messages
6,122,352
Members
449,080
Latest member
Armadillos

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