+ Reply to Thread
Results 1 to 5 of 5

Value based on Font colour

  1. #1
    Forum Contributor
    Join Date
    11-20-2009
    Location
    Melbourne
    MS-Off Ver
    Excel 365
    Posts
    288

    Value based on Font colour

    Hi,

    I have a list of numbers in a worksheet that are either Blue, Red or Magenta.
    In the cell next to each number I need to place a 1, 2 or 3 based on the Font colour. Can I write an IF statement that will display a 1 for example if the Font in the adjacent cell is Blue? I am using Excel 2007. I am grateful for any help offered. Thank-you.

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Value based on Font colour

    what's the logic that makes you choose a particular font colour?
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  3. #3
    Forum Contributor
    Join Date
    11-20-2009
    Location
    Melbourne
    MS-Off Ver
    Excel 365
    Posts
    288

    Re: Value based on Font colour

    The numbers are Ladder positions of football teams over many years. The teams have played in Division 1, 2 or 3. As the years have passed I have filled in the position next to each team, and have used the 3 different colours to show the division they have played in.

  4. #4
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Value based on Font colour

    perhaps do it the other way around,
    conditionally format the cell font based on the position instead?

  5. #5
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.92 (24120731))
    Posts
    9,118

    Re: Value based on Font colour

    you will need a macro something like this

    Please Login or Register  to view this content.
    If the font colour is black - it changes the value to 101
    if the font colour is red - it changes value to 22

+ 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