+ Reply to Thread
Results 1 to 6 of 6

Search multiple rows for cell color, return date from same column

  1. #1
    Registered User
    Join Date
    03-26-2013
    Location
    Vancouver, Canada
    MS-Off Ver
    Excel 2007
    Posts
    3

    Search multiple rows for cell color, return date from same column

    Hi there, I'm hoping to get some guidance...

    Management at my workplace have a Gantt-style spreadsheet for scheduling production. The top row has dates and the left column lists job numbers. Most job numbers repeat on 3 to 5 rows. Departments are identified by cell color. (The values in the colored cells are units of time.)

    Based on a list of job numbers and cell colors, I need formulas that would look up the left-most and right-most values for each cell color (department) from all the rows with that job number, and return the dates from the top row in the same columns as those values.

    I have a module for the ColorIndex UDF, but I'm not sure how to use it in combination with the other functions needed. Any advice?
    Attached Files Attached Files

  2. #2
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: Search multiple rows for cell color, return date from same column

    =SUMPRODUCT(--(ColorIndex(B$4:B$15)=ColorIndex($A17)),B$4:B$15)
    Try this and copy across
    Change Calculation Option from Manual to Automatic
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  3. #3
    Registered User
    Join Date
    03-26-2013
    Location
    Vancouver, Canada
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Search multiple rows for cell color, return date from same column

    Thanks for the quick reply and the reminder about Calculation!

    Actually, I was looking for the dates, not the totals... sorry for the confusion. I need the dates to be job-specific. For example, C35 would return January 6 from C3, because that's when the Machining department would finish for job #456. But C36 would return January 7, because that's when Machining would finish for job #789. Does that help?

  4. #4
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: Search multiple rows for cell color, return date from same column

    see the attached file
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    03-26-2013
    Location
    Vancouver, Canada
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Search multiple rows for cell color, return date from same column

    That did it! Thank you so much!!!

  6. #6
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: Search multiple rows for cell color, return date from same column

    You are welcome

+ 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. Replies: 3
    Last Post: 01-21-2014, 05:15 PM
  2. [SOLVED] Search for Value and Return a date from another cell in same column
    By RPM509 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 09-11-2013, 02:24 PM
  3. Search a column across multiple workbooks and return the value of a different cell.
    By MrSpiffdifilous in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-11-2013, 10:42 AM
  4. Search Multiple Columns and Rows and Return Row
    By rplute in forum Excel General
    Replies: 4
    Last Post: 02-21-2011, 10:58 PM
  5. search multiple sheets for specific date, return data in cell to r
    By NonIllegitimiCarborundum in forum Excel General
    Replies: 0
    Last Post: 04-28-2006, 04:10 PM

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