+ Reply to Thread
Results 1 to 11 of 11

text concatinate with number

  1. #1
    Registered User
    Join Date
    10-03-2012
    Location
    England
    MS-Off Ver
    Excel 2007
    Posts
    25

    text concatinate with number

    In Y2 I have the number 342

    in Y3 I have the text 'word'
    I wish Y3 to have word342
    Y4 to have word343
    Y5 to have word344
    Y6 to have word345

    and so on ...

    Thanks

  2. #2
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: text concatinate with number

    hi j9070749, so is Y3 having just the text "word" or replaced by "word342"? you can try this in Y3

    ="word"&341+ROW(A1)

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  3. #3
    Registered User
    Join Date
    10-03-2012
    Location
    England
    MS-Off Ver
    Excel 2007
    Posts
    25

    Re: text concatinate with number

    Hi, thanks for the reply, this works for the first one, but doesn't increment when dragging the box down.

  4. #4
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,446

    Re: text concatinate with number

    Supposing you have 342 in Y1 and "word" in Y2 in Y3 enter
    Please Login or Register  to view this content.
    Pull down as needed

  5. #5
    Forum Expert Kevin UK's Avatar
    Join Date
    12-07-2010
    Location
    Radstock, Somerset
    MS-Off Ver
    365
    Posts
    1,922

    Re: text concatinate with number

    Hi j9070749

    benishiryo formula should copy down. you have'nt locked A1!

  6. #6
    Registered User
    Join Date
    10-03-2012
    Location
    England
    MS-Off Ver
    Excel 2007
    Posts
    25

    Re: text concatinate with number

    Thankyou, this is working great.
    The formula is now
    =LEFT($A$2,5)&($Y$2+ROW()-3)

    If possible, I want to moddify the forumla further.
    If B:B changes (from A to B) I wish to add 20 the the number on the end (what I am concatinating A2 with).

    I will try to give an example to make it more clear.

    B Y
    A text1
    A text2
    A text3
    B text23
    B text24

  7. #7
    Forum Expert Kevin UK's Avatar
    Join Date
    12-07-2010
    Location
    Radstock, Somerset
    MS-Off Ver
    365
    Posts
    1,922

    Re: text concatinate with number

    How come cell A2 is now mentioned! And the LEFT function has appeared, I thought the text was "word"

  8. #8
    Registered User
    Join Date
    10-03-2012
    Location
    England
    MS-Off Ver
    Excel 2007
    Posts
    25

    Re: text concatinate with number

    Hi, I got this sorted. The formula I used was:

    =IF(A4="","",IF(D3<>D4,LEFT($A$2,5)&(RIGHT(Z3,4)+20),LEFT($A$2,5)&($Z$2+ROW()-3)))

  9. #9
    Forum Expert Kevin UK's Avatar
    Join Date
    12-07-2010
    Location
    Radstock, Somerset
    MS-Off Ver
    365
    Posts
    1,922

    Re: text concatinate with number

    Absolutely nothing to do with your first post then!

  10. #10
    Registered User
    Join Date
    10-03-2012
    Location
    England
    MS-Off Ver
    Excel 2007
    Posts
    25

    Re: text concatinate with number

    I just needed the concept, then I could adapt for my spreadsheet.

  11. #11
    Valued Forum Contributor
    Join Date
    02-08-2012
    Location
    wales
    MS-Off Ver
    Excel 2007
    Posts
    964

    Re: text concatinate with number

    glad you solved this remember to mark solved. (although im not sure how much use the end result would be without some kind of reference sheet lol)

    btw the formula seems over complex i may be incorrect but its possible that there could be a different more efficient way to deal with your problem (if you uploaded a book maybe someone could help)
    The Importance of INDEX - A GUIDE TO INDEX'S OTHER USES
    <--- If a post helps hit the star

+ 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