Create unique ID + if Blank leave Blank

mtr1213

New Member
Joined
Jul 25, 2014
Messages
6
Hello - I'm creating a log file to track issues from employees; I'm creating a unique ID for each issue and using this formula:

Column B2 i have =IF(ISBLANK(A2)," ",(MAX(1000)+1)) so the ID will be "Blank" until the name is added; the formula that start on B3 is (IF(ISBLANK(B17)," ")),IF(ISNA(MATCH(A18,$A$17:A17,0)),MAX($B$17:B17)+1,VLOOKUP(A18,$A$17:B100,2,FALSE)), which is causing the #Value! error...what am i doing wrong??

Employee NameIssue ID
#VALUE!
#VALUE!
<colgroup><col width="215" style="width: 161pt; mso-width-source: userset; mso-width-alt: 7862;"> <col width="96" style="width: 72pt; mso-width-source: userset; mso-width-alt: 3510;"> <tbody> </tbody>
 

Excel Facts

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)
nope that didn't work...I used what you suggested =IFERROR(IF(ISBLANK(A2)," ",1000+1)," ") and Issue ID is Blank; yes that is what I want it to do but when I add an employee Name I get the other Issue ID in the order accordingly.


This is before I add a name; so if I don't want the other IDs to appear until the next name I want the cell blank.
Employee NameIssue ID
1
2
<colgroup><col width="215" style="width: 161pt; mso-width-source: userset; mso-width-alt: 7862;"> <col width="96" style="width: 72pt; mso-width-source: userset; mso-width-alt: 3510;"> <tbody> </tbody>
 
Upvote 0
when the employee names get added the issue ids should be created automatically and if the same employee gets entered i want the same id so this part is working i just don't want the next ID to show up until the name is added...

Employee NameIssue ID
Mickey Mouse1001
Donald Duck1002
Mickey Mouse1001
Daffy Duck1003
Bugs Bunny1004
Mickey Mouse1001
1005
1006
1007
<colgroup><col width="215" style="width: 161pt; mso-width-source: userset; mso-width-alt: 7862;"> <col width="96" style="width: 72pt; mso-width-source: userset; mso-width-alt: 3510;"> <tbody> </tbody>
 
Upvote 0
If I follow, is this what you want?

B2, copied down:

Code:
=IF(A2="","",IF(ROWS(B$2:B2)=1,1001,IF(COUNTIF(A$2:A2,A2)>1,INDEX(B$1:B1,MATCH(A2,A$1:A1,0)),MAX(B$1:B1)+1)))

Matty
 
Upvote 0

Forum statistics

Threads
1,214,819
Messages
6,121,749
Members
449,050
Latest member
excelknuckles

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