+ Reply to Thread
Results 1 to 3 of 3

Return value based on background color

  1. #1
    Registered User
    Join Date
    04-18-2013
    Location
    Leeds
    MS-Off Ver
    Excel 2003
    Posts
    2

    Return value based on background color

    Hi All

    I've got a problem to write macro.
    I need users to color code background (manual not conditional formatting) depending of progress in projects.
    Then range L6:N10 will automatically return value (from range E5:I5) based on background color.

    Users got very basic excel skills and their work will limit to manual background change.

    I need something like INDEX MATCH based on colorindex.

    Thank you for your help.
    Regards
    Daniel
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: Return value based on background color

    I would suggest using 1, 2 and 3 instead of colours as the user input, use conditional formatting if neccessary to make it look like you wish.

    This is also quicker for the user than changing background colours.

    However, you could use a user-defined-function like:
    Please Login or Register  to view this content.
    To do what you want, you would need:
    =colour_find($E6:$I6,$G$16) in L6
    =colour_find($E6:$I6,$G$15) in M6
    and
    =colour_find($E6:$I6,$G$17) in N6

    then copy down as neccessary.

  3. #3
    Registered User
    Join Date
    04-18-2013
    Location
    Leeds
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: Return value based on background color

    thank you ragulduy, but your function returns "X". I need it to return correct date from range E5:I5 depending of background. Will you be able to help please?

+ 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: 4
    Last Post: 09-15-2012, 02:46 PM
  2. return result based on background color and value
    By emina002 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 10-05-2011, 01:09 AM
  3. Return a cell value as well as its background color
    By ysouljah in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 12-06-2010, 09:27 PM
  4. Return a cell value as well as it's background color
    By ysouljah in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 12-02-2010, 12:32 AM
  5. return a value based on cell background color
    By mccardled in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-18-2007, 03:55 AM

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