Hi Guys
Please see attached spreadsheet
testme.xlsx
I have blank cells in col G and what I'd like is a macro code to assign a unique number for each blank cell in this column , for ex: 1,2,3 etc
Thanks
Mohammed
Hi Guys
Please see attached spreadsheet
testme.xlsx
I have blank cells in col G and what I'd like is a macro code to assign a unique number for each blank cell in this column , for ex: 1,2,3 etc
Thanks
Mohammed
![]()
Please Login or Register to view this content.
You could use this macro:
Regards,![]()
Please Login or Register to view this content.
Antonio
Thanks AB33 & Antonio. This now works perfectly
You may not need a macro.
Thanks to your question and my resulting experimentation I just discovered a nice feature in Excel.
Using your posted workbook...
• Select Col_G
• Press F5...shortcut for Home.Find&Select.Go_to
...Click: Special
...Check: Blanks
...Click: OK
(Now all of the blank cells in Col_G are selected...with G2 as the active cell)
• Type: 1 and press ENTER
• Shift + ENTER...to return to G2 without unselecting the other blank cells
• Home.Fill....Check: Series
...Check: Series in Columns
...Click: OK
Excel will sequentially number each of the subsequent blank cells
Another:
![]()
Please Login or Register to view this content.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks