+ Reply to Thread
Results 1 to 3 of 3

Excel VBA: CONCATENATE + IF/LOOKUP

  1. #1
    Registered User
    Join Date
    08-28-2012
    Location
    Sweden
    MS-Off Ver
    Excel 2010
    Posts
    16

    Excel VBA: CONCATENATE + IF/LOOKUP

    Hi there,

    not having found a suitable set of excel formulas solving my issue ad-hoc, I went ahead looking into Macros. This is what I want to do:

    - CONCATENATE a set of fields in one column
    - IF the field in the colum left of my text-field matches a certain criteria

    Basically replicating the checking functionality of SUMIF, just with concatenate.

    I have found relevant VBA-snippets that I have tried to combine. However, I am lacking the criteria-checking functionality. Here is what I got:

    Please Login or Register  to view this content.
    This naturally does't work, as I am not checking the correct cCell value (second IF-Check).

    Hence my question: How can I get the correct cCell to check against in the game here?

    Thank you for your help!

    Best regards,
    Andreas
    Last edited by amq; 08-28-2012 at 09:22 AM.

  2. #2
    Registered User
    Join Date
    08-28-2012
    Location
    Sweden
    MS-Off Ver
    Excel 2010
    Posts
    16

    Re: Excel VBA: CONCATENATE + IF/LOOKUP

    Hi,

    helped myself.

    This works:

    Please Login or Register  to view this content.
    It also eradicates duplicates. However, if there was a line-break (alt+return) in the textfield before it disappears in the result. Is there anything I can do to keep potential linebreaks?

    Thank you.

    Best regards,
    Andreas

  3. #3
    Registered User
    Join Date
    02-15-2022
    Location
    india
    MS-Off Ver
    2013
    Posts
    2

    Post Re: Excel VBA: CONCATENATE + IF/LOOKUP

    This is just a littile try to join text on coditional basis in excel

    HTML Code: 
    Last edited by Sanjubhk; 02-15-2022 at 10:24 AM.

+ 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