+ Reply to Thread
Results 1 to 7 of 7

Text and number string based on the number i input

  1. #1
    Registered User
    Join Date
    02-28-2020
    Location
    Lexington, KY
    MS-Off Ver
    2016
    Posts
    3

    Text and number string based on the number i input

    I have well over 500 lines of data to convert into this string

    {25442~25442~Bates Security 37~Active~~~}

    25442 is the value in the cell, but I need all the other parts to go in as well. This will take me hours to do character by character. Any help is appreciated

  2. #2
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: Text and number string based on the number i input

    Hello & Welcome to the Forum,

    With 25442 in A1

    B1 ="{"&A1&"~"&A1&"~Bates Security 37~Active~~~}"
    HTH
    Regards, Jeff

  3. #3
    Registered User
    Join Date
    02-28-2020
    Location
    Lexington, KY
    MS-Off Ver
    2016
    Posts
    3

    Re: Text and number string based on the number i input

    Well that worked, but I didnt think about moving the column. This is CSV that will be imported back into the database of a piece of equipment.
    I can only have exact columns and info. So I did your string but if I copy and paste or try to replace the column it grabs the numbers from
    it changes my Cell info in that string. Any ideas to get around that

  4. #4
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: Text and number string based on the number i input

    Did you copy and paste "as values"?

  5. #5
    Registered User
    Join Date
    02-28-2020
    Location
    Lexington, KY
    MS-Off Ver
    2016
    Posts
    3

    Re: Text and number string based on the number i input

    Cancel that and thanks jeffreybrown. Paste Values only worked for me

  6. #6
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: Text and number string based on the number i input

    If you want a macro, you could try this on a copy of your workbook. Considers a header in A1

    Please Login or Register  to view this content.

  7. #7
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: Text and number string based on the number i input

    You are very welcome and thanks for the feedback.

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

+ 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. Return a text and number string based on multiple criteria
    By McKneezy in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 02-12-2019, 10:25 AM
  2. Replies: 2
    Last Post: 01-05-2018, 12:31 AM
  3. [SOLVED] Help with formula to return a number based on number string
    By maym in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 12-10-2017, 11:45 PM
  4. Replies: 2
    Last Post: 01-28-2015, 09:07 AM
  5. [SOLVED] Need to limit the number of decimal places of a number in a text string
    By Turbo Dog in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-11-2013, 07:47 PM
  6. Using text box input to lookup number and replace based on user input into new column
    By harl3y412 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-28-2011, 03:15 PM
  7. Replies: 6
    Last Post: 07-29-2008, 03:23 PM

Tags for this Thread

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