+ Reply to Thread
Results 1 to 4 of 4

Combining data on list containing blank lines

  1. #1
    Registered User
    Join Date
    12-12-2011
    Location
    Utah, USA
    MS-Off Ver
    Excel 2010
    Posts
    2

    Combining data on list containing blank lines

    I work at a wound care clinic and have been asked to create a form.

    Clinicians will click Option Buttons to choose the wound care supplies they used for a treatment (one button for one particular treatment supply). These are in descending order. So a list might look like (each supply on an individual excel row):

    Allevyn Foam
    Aquacel AG

    Hydrogel Sheet


    Regranex


    The blank lines represent supplies that were not selected. Is there a way I can list these chosen items sequentially (somewhere else on the worksheet) without the blank rows so it looks like:

    Allevyn Foam
    Aquacel AG
    Hydrogel Sheet
    Regranex


    Any help would be appreciated!

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Combining data on list containing blank lines

    Yes, this is possible, with reference formulas or with VBA. Which do you prefer?

    Click GO ADVANCED and use the paperclip icon to post up a copy of your workbook. Make sure you have manually mocked up your desired results based on sample selections.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Registered User
    Join Date
    12-12-2011
    Location
    Utah, USA
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Combining data on list containing blank lines

    Thanks,
    I've attached (hopefully!) a copy of what I am referring to.

    Thanks for any help.
    Attached Files Attached Files

  4. #4
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Combining data on list containing blank lines

    In D2: =IF(C2=TRUE, B2, "")

    In D3, then copied down: =IF(C3=TRUE, IF(D2<>"", D2&","&B3, B3), IF(D2<>"", D2, ""))

    In A13: =D11

+ 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