+ Reply to Thread
Results 1 to 4 of 4

Combine IF Function with Conditional Formatting (in Data Bar form)

  1. #1
    Registered User
    Join Date
    11-15-2019
    Location
    London, England
    MS-Off Ver
    2013
    Posts
    2

    Question Combine IF Function with Conditional Formatting (in Data Bar form)

    Dear all,

    I'm wondering if you can help:
    I'm trying to use conditional formatting (in Data bar form) to show the progress of a specific task between 2 dates (Date 1 and Date2 or Date 3):

    Date 1: Start date
    Date 2: Estimated Finish Date (on time)
    Date 3: Actual Finish Date (late assuming Date 3>Date 2)

    The progress is calculated based on the following formula:

    =IF(Date 3>Date 2,(today()-Date 1)/(Date 3-Date 1),(today()-Date 1)/(Date 2-Date 1))

    Depending on the final date used, i would like the data bar to be shown in:

    a) Red if Date 3>Date 2 is true.
    b) Green if Date 3>Date 2 is false.

    Is there any way this can be done without using VBA?

    Thank you very much for your help.
    Best regards,
    Last edited by Duarte Lousa; 11-15-2019 at 10:07 AM. Reason: Attachment included

  2. #2
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,462

    Re: Combine IF Function with Conditional Formatting (in Data Bar form)

    Hi
    as you can see in the yellow banner, posting a sheet makes things easier and faster for everybody.
    Thanks

  3. #3
    Registered User
    Join Date
    11-15-2019
    Location
    London, England
    MS-Off Ver
    2013
    Posts
    2

    Re: Combine IF Function with Conditional Formatting (in Data Bar form)

    Please see the example attached.

    Thank you very much.
    Best regards
    Last edited by Duarte Lousa; 11-15-2019 at 10:08 AM.

  4. #4
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,739

    Re: Combine IF Function with Conditional Formatting (in Data Bar form)

    Would putting the percentage and data bar in the cell adjacent to the finish date used be an option.
    If so then the formula for D5 could be: =IF(C5>=C6,(C7-C4)/(C5-C4),"")
    The formula for D6 could be: =IF(C6>C5,(C7-C4)/(C6-C4),"")
    D5 could be formatted for a green status bar and D6 could be formatted for a red status bar.
    Let us know if you have any questions.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

+ 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] Combine Conditional Formatting Rule
    By SBLR01 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-25-2016, 05:11 AM
  2. Replies: 56
    Last Post: 03-11-2014, 03:56 PM
  3. Replies: 0
    Last Post: 03-19-2013, 04:39 PM
  4. Conditional Formatting on Access Form
    By motherbored in forum Access Tables & Databases
    Replies: 0
    Last Post: 06-04-2012, 04:38 PM
  5. Combine data form 3 columns to one dynamic column
    By tkaran25 in forum Excel General
    Replies: 9
    Last Post: 05-09-2011, 06:39 AM
  6. Combine all conditional formatting
    By Dyefrog in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-25-2009, 10:22 AM
  7. [SOLVED] Conditional Formatting For A Cell Other Than The One With The Form
    By Jim J. in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-19-2006, 03: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