+ Reply to Thread
Results 1 to 4 of 4

Insert rows, serial number and sub serial number

  1. #1
    Registered User
    Join Date
    10-03-2016
    Location
    gurgaon
    MS-Off Ver
    2010
    Posts
    43

    Insert rows, serial number and sub serial number

    Hi VBA Champs,
    Hope you all are doing well. I need your help/suggestion in automating the following scenarios:

    I need to insert 'n' rows below basis the value in #of Switches column and depending on number of rows insert, serial numbers also need to be updated. Example - If two rows are inserted, below serial number '1', the two new rows will have serial number 1a and 1b. Attaching a screenshot of input and expected outcome.


    Input Table
    Screenshot 2020-10-10 at 7.57.52 PM.png

    Expected Outcome
    Screenshot 2020-10-10 at 7.59.01 PM.png

    I am completely stuck and not able to move forward . Appreciate any help on this.

    Thank you
    Varun
    Attached Files Attached Files
    Last edited by bavarunbansal; 10-10-2020 at 10:37 AM. Reason: uploading attachment

  2. #2
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Insert rows, serial number and sub serial number

    You will need a macro.

    The Macro will need to work from bottom to top

    to inset the rows and then the formula to renumber the first column.

    This will take me 5 minutes to create. So check back in 5 minutes.


    Please Login or Register  to view this content.
    Last edited by mehmetcik; 10-10-2020 at 11:27 AM.
    My General Rules if you want my help. Not aimed at any person in particular:

    1. Please Make Requests not demands, none of us get paid here.

    2. Check back on your post regularly. I will not return to a post after 4 days.
    If it is not important to you then it definitely is not important to me.

  3. #3
    Registered User
    Join Date
    10-03-2016
    Location
    gurgaon
    MS-Off Ver
    2010
    Posts
    43

    Re: Insert rows, serial number and sub serial number

    HTML Code: 
    I will wait for your inputs. And thank you very much! You are a saviour!

  4. #4
    Registered User
    Join Date
    10-03-2016
    Location
    gurgaon
    MS-Off Ver
    2010
    Posts
    43

    Re: Insert rows, serial number and sub serial number

    I take a bow!!! this is awesome....
    thank you thank you thank you thank you very much!!!!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Vba to insert serial number
    By saravanan1981 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-16-2016, 03:59 AM
  2. Insert Serial number column wise automatically
    By Manish_Gupta in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-30-2013, 11:26 PM
  3. [SOLVED] Serial Number in column leaving rows which has 0 amount
    By Farida in forum Excel General
    Replies: 3
    Last Post: 06-05-2012, 01:10 PM
  4. Replies: 10
    Last Post: 09-24-2010, 06:20 AM
  5. Finding a serial number in a list of serial numbers
    By zocoloco in forum Excel General
    Replies: 2
    Last Post: 02-04-2009, 05:20 AM
  6. Serial number down the rows
    By KH_GS in forum Excel General
    Replies: 4
    Last Post: 05-23-2006, 10:47 PM
  7. [SOLVED] Insert auto serial number in Excel template
    By Van Gel in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-18-2005, 10:06 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1