+ Reply to Thread
Results 1 to 3 of 3

Filling color of a cell (not as easy as sounds)

  1. #1
    Registered User
    Join Date
    06-20-2019
    Location
    Los Angeles, USA
    MS-Off Ver
    2019
    Posts
    5

    Filling color of a cell (not as easy as sounds)

    Hello,

    Thanks to this forum, I was able to solve my previous issue with my excel file, and I am now stuck in the second and last task.

    Basically, what I want to achieve is this:
    If (Name) in Sheet 2 is Level (n) in Sheet 1, fill (Name) cell in Sheet 2 with corresponding color
    As soon as Person's name is set in Sheet 1, it will pop up in Sheet 2 at corresponding shift, and I want it to have its designated color based on its Level.

    A picture should save a thousand words...
    12.PNG
    13.PNG

    Also, please find the attachment for excel file!

    Thanks
    Attached Files Attached Files
    Last edited by ams3401; 06-23-2019 at 01:25 PM.

  2. #2
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: Filling color of a cell (not as easy as sounds)

    Please try at A7:U26 1 formula for the whole table

    =IFERROR(INDEX(Sheet1!$B:$B,AGGREGATE(15,6,ROW(Sheet1!$D$2:$H$51)/(LOOKUP("z",$A$3:A$3)&" "&LOOKUP("z",$A$4:A$4)=Sheet1!$D$2:$H$51)/(Sheet1!$I$2:$M$51=A$5),ROWS(A$7:A7))),"")

    Conditional formatting applies to A7:U26

    =IFERROR(INDEX(Sheet1!$C:$C,AGGREGATE(15,6,ROW(Sheet1!$D$2:$H$51)/(LOOKUP("z",$A$3:A$3)&" "&LOOKUP("z",$A$4:A$4)=Sheet1!$D$2:$H$51)/(Sheet1!$I$2:$M$51=A$5),ROWS(A$7:A7))),"")=1
    fill color for level 1

    =IFERROR(INDEX(Sheet1!$C:$C,AGGREGATE(15,6,ROW(Sheet1!$D$2:$H$51)/(LOOKUP("z",$A$3:A$3)&" "&LOOKUP("z",$A$4:A$4)=Sheet1!$D$2:$H$51)/(Sheet1!$I$2:$M$51=A$5),ROWS(A$7:A7))),"")=2
    fill color for levle 2 and so on
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    06-20-2019
    Location
    Los Angeles, USA
    MS-Off Ver
    2019
    Posts
    5

    Re: Filling color of a cell (not as easy as sounds)

    Quote Originally Posted by Bo_Ry View Post
    Please try at A7:U26 1 formula for the whole table

    =IFERROR(INDEX(Sheet1!$B:$B,AGGREGATE(15,6,ROW(Sheet1!$D$2:$H$51)/(LOOKUP("z",$A$3:A$3)&" "&LOOKUP("z",$A$4:A$4)=Sheet1!$D$2:$H$51)/(Sheet1!$I$2:$M$51=A$5),ROWS(A$7:A7))),"")

    Conditional formatting applies to A7:U26

    =IFERROR(INDEX(Sheet1!$C:$C,AGGREGATE(15,6,ROW(Sheet1!$D$2:$H$51)/(LOOKUP("z",$A$3:A$3)&" "&LOOKUP("z",$A$4:A$4)=Sheet1!$D$2:$H$51)/(Sheet1!$I$2:$M$51=A$5),ROWS(A$7:A7))),"")=1
    fill color for level 1

    =IFERROR(INDEX(Sheet1!$C:$C,AGGREGATE(15,6,ROW(Sheet1!$D$2:$H$51)/(LOOKUP("z",$A$3:A$3)&" "&LOOKUP("z",$A$4:A$4)=Sheet1!$D$2:$H$51)/(Sheet1!$I$2:$M$51=A$5),ROWS(A$7:A7))),"")=2
    fill color for levle 2 and so on
    Works like a charm, you're a genius!
    Thanks for simplifying the formula, too.

    <3

+ 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. Stuck ordering data! (not as easy as it sounds)
    By Gwhiz11 in forum Excel General
    Replies: 4
    Last Post: 05-01-2019, 07:45 AM
  2. Sounds easy but.... printable dots in empty parts of document
    By kofeincek in forum Word Formatting & General
    Replies: 2
    Last Post: 03-11-2019, 07:12 AM
  3. Data Validation Using Start and End Dates (Not as Easy as It Sounds!)
    By mrsdeapsleap in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-18-2017, 05:36 PM
  4. [SOLVED] Looking up data in a range (not as easy as it sounds)
    By uncle_pablo in forum Excel Formulas & Functions
    Replies: 19
    Last Post: 08-12-2016, 04:11 AM
  5. Replies: 10
    Last Post: 12-21-2014, 06:53 PM
  6. Replies: 6
    Last Post: 03-07-2014, 07:26 AM
  7. sounds extremely easy but its NOT!
    By aaaaaaaa in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-17-2010, 01:05 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