+ Reply to Thread
Results 1 to 4 of 4

Simple If Function

  1. #1
    Registered User
    Join Date
    09-20-2006
    Posts
    47

    Simple If Function

    Hi all,

    I have tried to write a If function which will look in cell A3 and if it i highlighted then i want it to say "Yellow" and if not then i want it to say "clear".

    I have written:

    Please Login or Register  to view this content.
    And this comes up with #NAME?.

    Any Suggestions would be much appreciated.

    Test1986

  2. #2
    pinmaster
    Guest
    Hi

    You would need to install an add-in that can recognize a cell's backgound color, not sure there is one outhere tho. Can you explain why A3 is highlighted and how, maybe there is a better way.


    Jean-Guy

  3. #3
    Forum Expert Carim's Avatar
    Join Date
    04-07-2006
    Posts
    4,070
    Hi,

    It is a VBA solution (event macro or UDF) not just a formula ...

    http://www.cpearson.com/excel/colors.htm

    Carim

  4. #4
    Forum Contributor
    Join Date
    03-13-2005
    Posts
    6,195
    Quote Originally Posted by test1986
    Hi all,

    I have tried to write a If function which will look in cell A3 and if it i highlighted then i want it to say "Yellow" and if not then i want it to say "clear".

    I have written:

    Please Login or Register  to view this content.
    And this comes up with #NAME?.

    Any Suggestions would be much appreciated.

    Test1986
    Hi,

    im the worksheet tab, rightmouse and 'View Code'
    copy this code there
    Please Login or Register  to view this content.
    then double-click a cell to see it's colour.

    hth
    ---
    Si fractum non sit, noli id reficere.

+ 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