+ Reply to Thread
Results 1 to 4 of 4

Two Formatting Questions:

  1. #1
    Registered User
    Join Date
    08-30-2013
    Location
    LLL
    MS-Off Ver
    Excel 2003
    Posts
    14

    Two Formatting Questions:

    Hi,

    I have two relatively simple formatting questuons:
    1. If i want cell A4 to be colored green, for example, when cells A1-A3 have a value of 10, do i use conditinal formatting, or an IF function. I tried conditional formatting but couldn’t get it right :/

    2. If i want cell B1 to be colored red if the date in cell B2 is past the date written on B3, how would i do that?

    Thx
    jiveman

  2. #2
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,014

    Re: Two Formatting Questions:

    .
    1. If i want cell A4 to be colored green, for example, when cells A1-A3 have a value of 10, do i use conditinal formatting, or an IF function. CONDITIONAL FORMATTING

    2. If i want cell B1 to be colored red if the date in cell B2 is past the date written on B3, how would i do that? CONDITIONAL FORMATTING

  3. #3
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: Two Formatting Questions:

    What do you mean by "when cells A1-A3 have a value of 10"?

    Do you mean that A1 = 10, A2 = 10 and A3 = 10?
    Or do you mean that at least one of cells A1:A3 = 10?
    Or do you mean the SUM of A1:A3 = 10?
    Or something else?
    let Source = #table({"Question","Thread", "User"},{{"Answered","Mark Solved", "Add Reputation"}}) in Source

    If I give you Power Query (Get & Transform Data) code, and you don't know what to do with it, then CLICK HERE

    Walking the tightrope between genius and eejit...

  4. #4
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,737

    Re: Two Formatting Questions:

    In both cases you would use conditional formatting.

    In the first case you should select cell A4 then click on Conditional formatting | New Rule | Use a formula... , then you can put this formula in the dialogue box:

    =SUM(A1:A3)=10

    then click on the Format button | Fill tab and select green, then OK your way out. Re-reading through your post, I'm not sure if you want the total of cells A1 to A3 to add up to 10 (which is what the formula above assumes), or if you want all three cells to contain 10. If the latter, then this formula should be used:

    =COUNTIF(A1:A3,10)=3

    In the second case you should select cell B1 and used the same procedure, with this formula:

    =AND(B3<>"",B2>B3)

    and apply a red fill.

    Hope this helps.

    Pete

+ 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. [SOLVED] Conditional formatting: two questions
    By terrypin in forum Excel General
    Replies: 14
    Last Post: 01-02-2018, 07:48 AM
  2. Formatting and Duplication Questions
    By senjoim in forum Excel General
    Replies: 0
    Last Post: 02-21-2015, 03:26 PM
  3. Two formatting Questions
    By tigerdel in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-28-2014, 06:57 AM
  4. Formatting questions
    By lannoe in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 11-06-2014, 02:57 AM
  5. Formatting Questions
    By fusionman in forum Excel General
    Replies: 0
    Last Post: 08-11-2008, 04:51 PM
  6. Conditional formatting questions.
    By lordfa9 in forum Excel General
    Replies: 11
    Last Post: 06-27-2007, 09:32 PM
  7. Two Formatting Questions
    By Tom K in forum Excel General
    Replies: 6
    Last Post: 02-21-2006, 11:45 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