+ Reply to Thread
Results 1 to 6 of 6

Conditional Formatting - IF Function?

  1. #1
    Registered User
    Join Date
    04-29-2009
    Location
    Scotland, UK
    MS-Off Ver
    Excel 2003
    Posts
    6

    Unhappy Conditional Formatting - IF Function?

    I am trying to colour a whole row of data (in columns A through to AA) based on the numeric entry in column AB. The numeric entry is either 1, 2 or 3. I reckoned I needed to use the IF function, but as writing formula is not my strong point I am struggling to enter the correct data! The first row of data I wish to use is 3. I have tried the following but to no avail: =IF($AB3,1). =IF($AB3=1). =IF($AB3="1"). Please tell me what I should be using
    Last edited by Jings; 06-08-2009 at 10:24 AM. Reason: Issue Solved - Thank you.

  2. #2
    Valued Forum Contributor squiggler47's Avatar
    Join Date
    02-17-2009
    Location
    Littleborough, UK
    MS-Off Ver
    Excel 3.0 to 2007+2010! (couldnt get 2.1 working)
    Posts
    1,013

    Re: Conditional Formatting - IF Function?

    setting the conditional formatting to :

    formula is :

    =($ab3=1)

    highlight a3-Ab100 to set conditional format

    (note adjust the 100 to the range of your data!)

    see attached sheet
    Attached Files Attached Files
    Last edited by squiggler47; 06-08-2009 at 04:36 AM. Reason: Added attachment
    Regards
    Darren

    Update 12-Nov-2010 Still job hunting!

    If you are happy with the results, please add to our reputation by clicking the blue scales icon in the blue bar of the post.

    Learn something new each day, Embrace change do not fear it, evolve and do not become extinct!


  3. #3
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Conditional Formatting - IF Function?

    Highlight the data from A3:AA1000
    Open the conditional formatting window

    Condition1: Formula Is:
    =$AB3=1
    Format...pattern...select color

    Add>>
    Condition2: Formula Is:
    =$AB3=2
    Format...pattern...select color

    Add>>
    Condition3: Formula Is:
    =$AB3=3
    Format...pattern...select color
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  4. #4
    Registered User
    Join Date
    04-29-2009
    Location
    Scotland, UK
    MS-Off Ver
    Excel 2003
    Posts
    6

    Thumbs up Re: Conditional Formatting - IF Function?

    Many thanks to both of you for your help. I guess I tried to overcomplicate things!

  5. #5
    Registered User
    Join Date
    06-08-2009
    Location
    Cleveland
    MS-Off Ver
    Excel 2007
    Posts
    11

    Re: Conditional Formatting - IF Function?

    This is not working for me because the Cell with the value that determines the highlighting is derived from a formula and not just a number. Is there a way to make this work for me as well?

  6. #6
    Registered User
    Join Date
    06-08-2009
    Location
    Cleveland
    MS-Off Ver
    Excel 2007
    Posts
    11

    Re: Conditional Formatting - IF Function?

    If figured it out

    Just put your value in parentheses.. Duh

+ 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