+ Reply to Thread
Results 1 to 6 of 6

Need to concatenate multiple cells if a condition is met

  1. #1
    Registered User
    Join Date
    09-24-2015
    Location
    PA
    MS-Off Ver
    2013
    Posts
    11

    Need to concatenate multiple cells if a condition is met

    Good Afternoon!

    First time posting so I apologize if I do anything wrong.

    I am looking to =concatenate($A$1,A2,B3,$C$1,C2,B3,$D$1,D2,B3) ETC. so it would look like this:

    <li><b>Weight:</b>155<br><li><b>Dimensions:</b>84" x 48" x 32" (HxWxD)<br><li><b>Warranty:</b>1 Year Parts and Labor<br><li><b>Electrical:</b>11v,NEMA 5-15P

    Here is the catch: Notice how this formula would completely skip concatenating E1,E2 and B3 because there is no value in E2. That's what I want this formula to do. Skip concatenating if there is no value in a certain cell. Another way to say it is only concatenate the 3 specified cells if there is a value in row 2.

    Perhaps there is a Way easier way to do this. Perhaps this is impossible I am hoping to get an answer either way. Thanks!

    Spreadsheet.jpg

  2. #2
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,623

    Re: Need to concatenate multiple cells if a condition is met

    in B4:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    and copy right.
    in G4 you will have final output.
    Best Regards,

    Kaper

  3. #3
    Registered User
    Join Date
    09-24-2015
    Location
    PA
    MS-Off Ver
    2013
    Posts
    11

    Re: Need to concatenate multiple cells if a condition is met

    Thanks Very much Kasper. I used the formula for each one of my titles and concatenated the results together into a final cell to get the string I wanted!

    Would you mind explaining the logic behind this formula? I am very interested to know how it worked!

  4. #4
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,623

    Re: Need to concatenate multiple cells if a condition is met

    A4 is empty. We start from B4
    Our formula can be written as:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    and If is:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    so for each column we concatenate the string collected so far with the part from cells above and B3
    or (if one or both cells above were empty) simply rewrite contents of left cell (concatenate it with empty string).

  5. #5
    Registered User
    Join Date
    09-24-2015
    Location
    PA
    MS-Off Ver
    2013
    Posts
    11

    Re: Need to concatenate multiple cells if a condition is met

    Thanks so Much Kaper!

    EDIT: Looking for the SOLVED button - but I don't see it!

  6. #6
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,623

    Re: Need to concatenate multiple cells if a condition is met

    Above first post you have Thread Tools.
    It's there (of course not on the picture below, because I can't mark your thread Solved )
    Attached Images Attached Images

+ 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. Condition formatting of multiple condition formatted cells
    By merrin84 in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 02-22-2015, 05:08 PM
  2. Concatenate the cells on condition
    By kumark in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-23-2014, 02:35 AM
  3. Concatenate cells in column range if condition is met
    By AlexVen in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-02-2013, 03:30 AM
  4. Replies: 1
    Last Post: 12-20-2012, 04:18 PM
  5. Concatenate Cells Based on a Condition in Next Row
    By brendanec in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 11-06-2012, 03:34 PM
  6. concatenate 3 cells based on condition
    By Pasha81 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-02-2009, 09:55 AM
  7. Concatenate Multiple Cells
    By Sonya795 in forum Excel General
    Replies: 4
    Last Post: 08-22-2005, 03:51 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