+ Reply to Thread
Results 1 to 4 of 4

Can an IF statement is based on font color ?

Hybrid View

  1. #1
    Registered User
    Join Date
    07-31-2022
    Location
    Hong Kong
    MS-Off Ver
    Office 365
    Posts
    25

    Can an IF statement is based on font color ?

    We are using RED color on a date to represent it's a "holiday" or "sunday", while using BLACK color to represent a normal working day.

    Just wonder, can I write an IF statement, which is based on the cells' FONT color ?

    I quickly made an IF/OR statement but no time to correct it, as i need to go out for a long meeting.


    See if anyone can help, thanks in advance.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    09-30-2019
    Location
    Chiangmai, Thailand
    MS-Off Ver
    Office 2016, Excel 2019
    Posts
    1,234

    Re: Can an IF statement is based on font color ?

    Normally, all Excel function can do nothing with font or cells attribute (except cell width).
    so IF function can do nothing with font or background color.

    Regards.

  3. #3
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,422

    Re: Can an IF statement is based on font color ?

    Try

    =IF(AND(COUNTIF(Holidays!B:B,C7)=0,WEEKDAY(C7,1)>1),"normal","holiday duty")
    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

  4. #4
    Registered User
    Join Date
    07-31-2022
    Location
    Hong Kong
    MS-Off Ver
    Office 365
    Posts
    25

    Re: Can an IF statement is based on font color ?

    thank you for the formula, this save me a bit of time

+ 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. Replies: 1
    Last Post: 07-31-2021, 03:23 PM
  2. font color as condition in if statement
    By franlauwers in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-05-2015, 12:26 PM
  3. Change Font Color Based On Adjacent Cell Color
    By Zorro9758 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-11-2013, 02:47 PM
  4. Change font color of specific text as a result of an if statement
    By Triscia in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-07-2013, 11:47 AM
  5. Change font color based on font color of another cell
    By Ibyers in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2012, 09:36 AM
  6. Change font/color for entire row using OR statement
    By BuffaloSS in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-25-2011, 06:35 PM
  7. [SOLVED] If statement to test font color
    By Gary in forum Excel General
    Replies: 5
    Last Post: 05-24-2006, 04:15 PM

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