#1
|
|||
|
|||
I would like a function to add sequential numbers to a class number/name
Hi all
I need some help please. I have a formula to input the information from one cell to another if there is something in the originating cell. =IF('Class Info'!A5=0,"",'Class Info'!$C$1). Happy with that. However, I now need to add sequential numbers to this I have ABCD1234 entered in cell C1 (a cell in the 'class info' sheet) and I would like this class number in another sheet ('Format sheet' GF5) that will add a hyphen and sequential numbering, resulting in: ABCD1234-1 ABCD1234-2 ABCD1234-3 Etc I have also posted a similar post in Word but it is probably best done in excel and then the field added to the document and populated when merged. Hope this makes sense. G |
#2
|
|||
|
|||
As you have not posted a sample sheet. If those ABCD1234 in A1:A3, in B1 use:
"=A1&"-"&ROW()" & copy down. |
#3
|
||||
|
||||
You also asked about this in another thread: https://www.msofficeforums.com/mail-...as-merged.html
Please don't ask what is essentially the same question in multiple threads.
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#4
|
|||
|
|||
Quote:
Thank you very much Kevin, greatly appreciated. In addition - Is there a way to adapt the formula so that the cells in column B will remain blank until there is something (ABCD1234) in column A If the formula was already in place? Regards G |
#5
|
|||
|
|||
Hi G
=IF($A2="","",A2&"-"&ROW()) |
#6
|
|||
|
|||
Fantastic Kevin. Thank you very much, you're a star.
Regards G |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
wildcard search and add (not replace) sequential numbers in front | equalizer88 | Word VBA | 4 | 05-07-2016 08:04 PM |
Excel simplify formula - array of sequential numbers | Wries | Excel Programming | 1 | 05-12-2014 08:32 AM |
Creating a TOC with sequential letters instead of page numbers at the right margin | shansen | Word | 1 | 03-11-2014 12:43 PM |
Sequential Numbering on Tickets Multiple number Sequences | skitchen | Word | 2 | 10-01-2013 06:41 AM |
Labeling sequential forms with a unique number | krau0231 | Word | 1 | 10-18-2012 03:33 PM |