+ Reply to Thread
Results 1 to 7 of 7

How do I automatically fill in naming convention from one cell?

  1. #1
    Registered User
    Join Date
    10-22-2012
    Location
    Cincinnati, OH
    MS-Off Ver
    Excel 2010
    Posts
    4

    How do I automatically fill in naming convention from one cell?

    Basically I am creating spreadsheets to handle migrations of VM pools, and I need to be able to fill in the naming convention for the new computer names automatically on the second sheet, from a cell on the first sheet that has the naming convention, combined with another cell on the first sheet that has the number of computers.

    So, on D4 on a sheet called "main", I put in the naming convention for the pool of computers I will be creating (ex: "newworkstation-").

    On B7 on sheet main, is the number of machines to be in this pool (ex: 15).

    On sheet VMs, I need to autopopulate the machine names in column B down, starting at B2.

    Example output on sheet VMs, column B, starting at B2, using the example pool name of "newworkstation-", and pool size of 15:

    B2 newworkstation-1
    B3 newworkstation-2
    B4 newworkstation-3
    B5 newworkstation-4
    B6 newworkstation-5
    B7 newworkstation-6
    B8 newworkstation-7
    B9 newworkstation-8
    B10 newworkstation-9
    B11 newworkstation-10
    B12 newworkstation-11
    B13 newworkstation-12
    B14 newworkstation-13
    B15 newworkstation-14
    B16 newworkstation-15

    I have used in my examples the actual cell numbers and sheet names. I'm more interested in a simple solution than a complex one. I'm new to doing complex things with excel and I have not anything with VBA. I am familiar with making drop down lists using data verification and vlookup.
    Last edited by zilla1126; 10-22-2012 at 10:42 AM.

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,705

    Re: How do I automatically fill in naming convention from one cell?

    Put this in B2:

    =IF(ROW(B2)-1>main!$B$7,"",main!$C$5 & ROW(B2)-1)

    then copy down as far as you like.

    Hope this helps.

    Pete
    Last edited by Pete_UK; 10-22-2012 at 10:39 AM. Reason: Amended formula

  3. #3
    Registered User
    Join Date
    10-22-2012
    Location
    Cincinnati, OH
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: How do I automatically fill in naming convention from one cell?

    Thanks for the help. When I paste this in to B2, it gives me the correct computer name: newworkstation-1. Is there a way for excel to take the number of machines I need from B7 (form the sheet named "main") to populate the proper number of machines on the VMs sheet?

    It will be a different number of machines for each pool I need to work with.

    Thanks again.

  4. #4
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,705

    Re: How do I automatically fill in naming convention from one cell?

    Copy the formula down to, say, B25 and see what happens.

    Pete

    EDIT: Then change the number in main!B7 to 20 and see what happens.
    Last edited by Pete_UK; 10-22-2012 at 11:42 AM.

  5. #5
    Registered User
    Join Date
    10-22-2012
    Location
    Cincinnati, OH
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: How do I automatically fill in naming convention from one cell?

    My forgot to note something in my previous reply, when I put this formula in B2 on the VMs sheet, I get this:

    b2 newworkstation-2

    If I paste it into b3, I get:

    b3 newworkstation-2


    >> Copy the formula down to, say, B25 and see what happens.

    I know I can change the formula for each cell, but that is what I'm trying to avoid.

    When I try that, I get the same output in each column:

    b2 newworkstation-2
    b3 newworkstation-2
    b4 newworkstation-2
    b5 newworkstation-2
    b6 newworkstation-2
    b7 newworkstation-2

    Will I need to take a different approach altogether? If there is not a way for the formula

  6. #6
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,705

    Re: How do I automatically fill in naming convention from one cell?

    I don't know what you are doing wrong - see attached mock-up of your problem.

    Hope this helps.

    Pete
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    10-22-2012
    Location
    Cincinnati, OH
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: How do I automatically fill in naming convention from one cell?

    That did it. Thanks for your help, I appreciate it.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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