+ Reply to Thread
Results 1 to 5 of 5

Formula for filling Alphanumeric string that contains 2 sets of numbers

  1. #1
    Registered User
    Join Date
    01-09-2012
    Location
    Clearwater, FLorida
    MS-Off Ver
    Excel 2007
    Posts
    2

    Formula for filling Alphanumeric string that contains 2 sets of numbers

    Hi,

    I have a string in a single cell "A1":

    "<string>Name[1],Value[1]</string>"

    How can I increment Name and Value using Fill command?

    I need to to go to Name[5000],Value[5000]

    For example below:

    "<string>Name[1],Value[1]</string>"
    "<string>Name[2],Value[2]</string>"
    "<string>Name[3],Value[3]</string>"
    .
    .
    .
    "<string>Name[5000],Value[5000]</string>"
    Last edited by sl99710; 01-10-2012 at 09:31 AM.

  2. #2
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Re: Formula for filling Alphanumeric string that contains 2 sets of numbers

    This formula in cell A1 will begin the list.
    Please Login or Register  to view this content.
    Copy that formula down as far as you need.

    Then, to "hardcode" the values...
    • Select the range of formulas
    • Copy....Home.Paste.Paste_values over themselves.

    Does that help?
    Ron
    Former Microsoft MVP - Excel (2006 - 2015)
    Click here to see the Forum Rules

  3. #3
    Registered User
    Join Date
    01-09-2012
    Location
    Clearwater, FLorida
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Formula for filling Alphanumeric string that contains 2 sets of numbers

    This works perfect except I need the double quotes at the beginning and the end of the string. I tried a few things but everytime I input something it broke the formula.

    Thank you very much!

    Regards,
    Sean

  4. #4
    Forum Guru
    Join Date
    05-24-2011
    Location
    India
    MS-Off Ver
    Office 2021
    Posts
    2,237

    Re: Formula for filling Alphanumeric string that contains 2 sets of numbers

    =CHAR(34)&"<string>Name["&ROWS(A$1:A1)&"],Value["&ROWS(A$1:A1)&"]</string>"&CHAR(34)
    Regards,
    Haseeb Avarakkan

    __________________________________
    "Feedback is the breakfast of champions"

  5. #5
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Re: Formula for filling Alphanumeric string that contains 2 sets of numbers

    OK...Try this:
    Please Login or Register  to view this content.
    Copy that down

+ 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