+ Reply to Thread
Results 1 to 8 of 8

Condense rows based on alphabetic value, Display Max & Min values in other columns

  1. #1
    Registered User
    Join Date
    03-14-2011
    Location
    Austin,TX
    MS-Off Ver
    Excel 2003
    Posts
    7

    Condense rows based on alphabetic value, Display Max & Min values in other columns

    Hey Guys,

    I build a weekly schedule for about 300 staff each week in excel. Employees work on multiple projects, and every employee has a row for each project.

    As a result, each employee has multiple rows.

    I have attached a stripped down sample of what we use.

    What I need is to compress each person into a single row with their earliest start time and latest end time listed. The task they are working on is not important for this particular use.

    For instance, Alex's Tuesday schedule would show 3:00pm and 11:00pm in a single row.


    Is there a formula, filter, or macro that can rapidly convert a schedule of 300+ employees from multi-row entries into 1 row per employee with the data I need?

    Thanks in advance for any help you can offer,

    -Alex
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    10-10-2008
    Location
    Northeast Pennsylvania, USA
    MS-Off Ver
    Excel 2007
    Posts
    2,387

    Re: Condense rows based on alphabetic value, Display Max & Min values in other column

    FAHall,

    Is there a formula, filter, or macro that can rapidly convert a schedule of 300+ employees from multi-row entries into 1 row per employee with the data I need?
    Can you manually create what the results should look like on Sheet2 for the data shown on Sheet1?
    Have a great day,
    Stan

    Windows 10, Excel 2007, on a PC.

    If you are satisfied with the solution(s) provided, please mark your thread as Solved by clicking EDIT in your original post, click GO ADVANCED and set the PREFIX box to SOLVED.

  3. #3
    Registered User
    Join Date
    03-14-2011
    Location
    Austin,TX
    MS-Off Ver
    Excel 2003
    Posts
    7

    Re: Condense rows based on alphabetic value, Display Max & Min values in other column

    I attached what you asked for Stanley.


    I've also worked out another possible solution for this. It involves manually running an advanced filter, and then using formulas to pull the data.

    My formula is kind of clunky, but if you can add what I need, it will solve my problem. Here's what I've got:

    =MIN(IF('Labor Hours'!AT10:AT1217=B5,'Labor Hours'!H10:H1159))


    My problem with this formula is that I need it to only pull H10:H1159 if the cell value isn't blank.

    It's pulling blanks as 12:00AM, which doesn't work.

    How can I add a second criteria to my IF function to use only nonblank cells?
    Attached Files Attached Files

  4. #4
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: Condense rows based on alphabetic value, Display Max & Min values in other column

    Does this workbook do what you need?
    Attached Files Attached Files
    If you need any more information, please feel free to ask.

    However,If this takes care of your needs, please select Thread Tools from menu above and set this topic to SOLVED. It helps everybody! ....

    Also
    اس کی مدد کرتا ہے اگر
    شکریہ کہنے کے لئے سٹار کلک کریں
    If you are satisfied by any members response to your problem please consider using the small Star icon bottom left of their post to show your appreciation.

  5. #5
    Registered User
    Join Date
    03-14-2011
    Location
    Austin,TX
    MS-Off Ver
    Excel 2003
    Posts
    7

    Re: Condense rows based on alphabetic value, Display Max & Min values in other column

    Quote Originally Posted by Marcol View Post
    Does this workbook do what you need?
    Nope. Looks like that pulls earliest start and latest end time for the whole week. I need it for each day.

    Fancy formulas though.

    I'm trying to give the staff a schedule that is easier to read. Rather than breaking down each of their tasks, they just need to know what time they need to be in the building.

  6. #6
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: Condense rows based on alphabetic value, Display Max & Min values in other column

    Okay, try this.
    With Sheet2
    In A4
    Please Login or Register  to view this content.
    Drag/Fill Down as required.

    In B4 this array formula
    Please Login or Register  to view this content.
    Confirm with Ctrl+Shift+Enter not just Enter.
    Drag Across to Column V, then Down as required.

    Hope this helps.
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    03-14-2011
    Location
    Austin,TX
    MS-Off Ver
    Excel 2003
    Posts
    7

    Re: Condense rows based on alphabetic value, Display Max & Min values in other column

    AWESOME!!!!

    This fixed it perfectly. Thank you so much!

    -Alex

  8. #8
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: Condense rows based on alphabetic value, Display Max & Min values in other column

    Happy to have helped.

+ 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