+ Reply to Thread
Results 1 to 7 of 7

Concatenation

Hybrid View

  1. #1
    Registered User
    Join Date
    10-05-2005
    Posts
    6

    Concatenation

    Hi All,

    I need to concatenate values from two rows I tried But I couldn't
    able. I'll expalin my situation

    I have two columns A and B in which data was there I need result in the col C as described below.

    A B Result
    93 ---
    10 95 9310
    20 94 9320
    30 96 9330
    40 9340
    50 9350
    60 9360
    90 ---
    10 92 9010
    20 91 9020
    30 96 9030
    40 9040
    50 9050
    60 9060
    102 --
    10 61 10210
    20 10220
    30 10230
    40 10240

    My requirement is when a cell in the column A is empty then in column
    C I Need concatenation of corresponding Col B value with the column A
    values till it finds next empty cell in column A again the process
    should repeat once it finds the empty cell in column A.

    Could any one can tell me how to resolve this.

    Thanks in advace

    Regards

    Ramana

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    re: Concatenation

    Ramana your sample is very difficult to comprehend - ie better (always) to post a sample file.

    Perhaps based on your narrative... if row 1 is a header than

    C1: =IF($A2="","",LOOKUP(2,1/($A$1:$A1=""),$B$1:$B1)&$A2)
    copied down

  3. #3
    Registered User
    Join Date
    10-05-2005
    Posts
    6

    re: Concatenation

    Hi,

    for better understanding I'm Attaching one sample file.

    Regards

    Ramana
    Attached Files Attached Files

  4. #4
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    re: Concatenation

    In which case, adaptation of original suggestion

    C3:
    =IF($A3="","",LOOKUP(REPT("Z",255),CHOOSE({1,2},"",LOOKUP(2,1/($A$2:$A2=""),$B$2:$B2)&$A3)))
    copied down

  5. #5
    Registered User
    Join Date
    10-05-2005
    Posts
    6

    re: Concatenation

    Hi,

    Thanks for the immediate reply

    But Its not working When A3 is vacant then it should pickup the value from B3 and concatenate B3&A4, B3&A5, B3&A6 till it find a empty cell in the Col A.

    If A7 is empty then it should pick the value of B7 and concatenate B7&A8, B7&A9 in the column C

    Hope Now I have given a clear Idea about what I need.

    Regards

    Ramana

  6. #6
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Concatenation

    Hope Now I have given a clear Idea about what I need.
    Not at all I'm afraid.

    The formula provided generates the exact same results you specify in your file, if they're not correct I suggest a load a sample file which contains the correct desired output.

+ 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