+ Reply to Thread
Results 1 to 5 of 5

Combining rows where some cells have null values

Hybrid View

  1. #1
    Registered User
    Join Date
    06-22-2013
    Location
    San Diego
    MS-Off Ver
    Excel 2010
    Posts
    2

    Combining rows where some cells have null values

    Hi everyone. I am brand new to this forum. I searched through the threads, and have not found this issue addressed, so I'm not sure if it's even possible to do what I want to do.

    I have combined three different excel spreadsheets into one, from three different reports run from my institution's databases.

    Here are the column headings:

    Last Name; First Name; Preferred Email; Status

    Each employee has two rows, one that includes last name, first name, and preferred email; and another one which includes last name, first name, and status.

    I would like one row for each employee with all four columns populated. Attached is a spreadsheet with samples. The top part is what the raw data looks like, and the bottom is what I need it to look like.

    Is this even possible? I would like to avoid visual basic if possible.

    Thank you!

    Denise
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Combining rows where some cells have null values

    with index / match

    see the green cells in the attached file.
    Attached Files Attached Files
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  3. #3
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.92 (24120731))
    Posts
    9,118

    Re: Combining rows where some cells have null values

    as this is a one off exercise

    can you sort - so that all the rows with data in row 4 are together
    then you can use an array match lookup

    in your example
    you can use this formula
    and enter as an array using contol + shift +enter to get {} around the formula
    =INDEX(D7:D11,MATCH(A2&B2,A7:A11&B7:B11,0))
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    06-22-2013
    Location
    San Diego
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Combining rows where some cells have null values

    Thanks etaf and oeldere. I tried both formulas, but received value errors for both.

    It might help to explain what I need. I have two Excel spreadsheets that I merged (via copy and paste) into one. One report contains lastname, firstname, and preferredemail; the other contains lastname, firstname, and status. What I need is a spreadsheet that contains all four elements, as I wish to create to email contact lists, one for PT (part-time employees) and one for FT (full-time employees).

    Thanks again for any assistance that can be provided.

    Denise

  5. #5
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.92 (24120731))
    Posts
    9,118

    Re: Combining rows where some cells have null values

    do you want to attach a sample of both sheets -and show the errors

    where the names do not match or have spaces may be the issue
    Wayne
    if my assistance has helped, and only if you wish to , there is an "* Add Reputation" on the left hand side - you can add to my reputation here

    If you have a solution to your thread - Please mark your thread solved do the following: >
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

+ 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