Auto Generate unique number in serial if some condition match

Vishaal

Well-known Member
Joined
Mar 16, 2019
Messages
533
Office Version
  1. 2010
  2. 2007
Platform
  1. Windows
  2. Web
we have the following sheet:-

New Microsoft Excel Worksheet.xlsx
ABCDE
1Unique NoSelectNameUnique CodeBook Status
2Call WorkSevian
3Work Recd.
4Call WorkJohn
5Work Recd.
6Review
7Call WorkRoz
8Work Recd.
9Recd/Started!!SQ360#Partial
10Recd/Started!!SQ360#Partial
Sheet1


now we want to auto generate a unique number (which will be in serial) in sheet 2 column A if in column B we find "Call Work", check the following sheet

New Microsoft Excel Worksheet.xlsx
ABCDE
1Unique NoSelectNameUnique CodeBook Status
2!!SQ350#Call WorkSevian
3Work Recd.
4!!SQ351#Call WorkJohn
5Work Recd.
6Review
7!!SQ352#Call WorkRoz
8Work Recd.
9Recd/Started!!SQ352#Partial
10Recd/Started!!SQ352#Partial
11work pending!!SQ352#Partial
Sheet2



Kindly help please
 

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.
Something like this?

23 05 01.xlsm
AB
1Unique NoSelect
2!!SQ350#Call Work
3 Work Recd.
4!!SQ351#Call Work
5 Work Recd.
6 Review
7!!SQ352#Call Work
8 Work Recd.
9 Recd/Started
10 Recd/Started
Unique No.
Cell Formulas
RangeFormula
A2:A10A2=IF(B2="Call Work","!!SQ"&(349+COUNTIF(B$2:B2,"Call work"))&"#","")
 
Upvote 0
Solution
Something like this?

23 05 01.xlsm
AB
1Unique NoSelect
2!!SQ350#Call Work
3 Work Recd.
4!!SQ351#Call Work
5 Work Recd.
6 Review
7!!SQ352#Call Work
8 Work Recd.
9 Recd/Started
10 Recd/Started
Unique No.
Cell Formulas
RangeFormula
A2:A10A2=IF(B2="Call Work","!!SQ"&(349+COUNTIF(B$2:B2,"Call work"))&"#","")

Thank you very much Peter_SSs,​


can we make arrayformula for this
=IF(B2="Call Work","!!SQ"&(349+COUNTIF(B$2:B2,"Call work"))&"#","")
 
Upvote 0

Forum statistics

Threads
1,215,333
Messages
6,124,317
Members
449,153
Latest member
JazzSingerNL

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