+ Reply to Thread
Results 1 to 2 of 2

Cell Format Colour in Formula Result

  1. #1
    Registered User
    Join Date
    12-11-2006
    Posts
    1

    Cell Format Colour in Formula Result

    Hi I could do with some help with a formual result.

    I have a formula that checks for a value in a range of cells and when it finds it writes the valiue.

    The cells in the lookup range ihave a pattern colour. The formula correctly returns the text value but does not return the format colour.

    Any help would be appreciated.
    Thanks

    Formula
    =IF(K4=2,$O$4,IF(K4=1,$O$5,IF(K4=0,$O$6,IF(K4=-1,$O$7,IF(K4=-2,$O$8,IF(K4=-3,$O$8,ERROR))))))

    The Range o4 - onn has values and is has Pattern colour

  2. #2
    Valued Forum Contributor Richard Schollar's Avatar
    Join Date
    05-23-2006
    Location
    Hampshire UK
    MS-Off Ver
    Excel 2002
    Posts
    1,264
    Hi

    You can do this if the colors in the lookup range are a result of consitional formatting - in which case you simply need to apply the same CF to the formula cells.

    If not, then you won't be able to do this via formula alone - you would need to write a VBA script to achieve the formula cells being the same color as the lookup value in the lookup range.

    Richard

+ 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