+ Reply to Thread
Results 1 to 12 of 12

Input Date calculate in Condition format

  1. #1
    Forum Contributor
    Join Date
    05-09-2015
    Location
    Thailand
    MS-Off Ver
    MS365
    Posts
    303

    Input Date calculate in Condition format

    Dear Sir,
    I would like to put the color in pivot table with condition format for which date which more than 90 day from today such as if use 30/07/2021- in date column in excel and more than 90 day and then put the color. Please kindly suggest how to put the formula.

    thanks.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    5,943

    Re: Input Date calculate in Condition format

    Select the cells and use CF, choosing the formula option, with a formula like

    =B3<(TODAY()-90)

    Write the formula for the first cell that you selected, and choose the fill color that you want.
    Bernie Deitrick
    Excel MVP 2000-2010

  3. #3
    Forum Contributor
    Join Date
    05-09-2015
    Location
    Thailand
    MS-Off Ver
    MS365
    Posts
    303

    Re: Input Date calculate in Condition format

    Hi,Sir
    this is work ka but will show color for another cell to contain text and blank cell as well. Can use any formula to solve this?
    and also show earlier than 01/05/2021 and show color? can I use any formula?
    thanks.

  4. #4
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    5,943

    Re: Input Date calculate in Condition format

    To ignore blanks and text, use

    =AND(ISNUMBER(B3),B3<(TODAY()-90))

    To show earlier than 1/5/21 - May 1 - use a second CF with a similar formula replacing

    (TODAY()-90)

    with

    DATE(2021,5,1)

  5. #5
    Forum Contributor
    Join Date
    05-09-2015
    Location
    Thailand
    MS-Off Ver
    MS365
    Posts
    303

    Re: Input Date calculate in Condition format

    Hi,Sir
    when i use your formular with isnumber, it 's not show color at all.
    pls suggest.
    thanks.

  6. #6
    Forum Expert
    Join Date
    01-05-2013
    Location
    Singapore
    MS-Off Ver
    H&B2016 & H&B2021
    Posts
    3,057

    Re: Input Date calculate in Condition format

    First formula:=AND(B3 <> "",--B3 < (TODAY()-90),--B3 >= DATE(2021,5,1))
    Second formula: =AND(B3 <> "",--B3 < DATE(2021,5,1))

  7. #7
    Forum Contributor
    Join Date
    05-09-2015
    Location
    Thailand
    MS-Off Ver
    MS365
    Posts
    303

    Re: Input Date calculate in Condition format

    Hi, Josephteh
    This fomular still not work.The color still show incorrect place.
    please suggest more?
    thanks.

  8. #8
    Forum Expert
    Join Date
    01-05-2013
    Location
    Singapore
    MS-Off Ver
    H&B2016 & H&B2021
    Posts
    3,057

    Re: Input Date calculate in Condition format

    First formula "more than 90 days from today" should be: =AND(B3 <> "",--B3 > (TODAY()+90))
    Attached Files Attached Files

  9. #9
    Forum Contributor
    Join Date
    05-09-2015
    Location
    Thailand
    MS-Off Ver
    MS365
    Posts
    303

    Re: Input Date calculate in Condition format

    Dear Joseph
    Still not correct to show. Please see attach file for Result table, I need to highlight only date
    which less than 01 May 2021 in case that company have several date and then to detect last date of that company
    if last date show less than 01 May 2021 and then show color.
    if in case that company have only one date and less than 01 May 2021 and to show color as well.
    a bit changing.
    Please kindly help?
    thanks a lot for support ka.
    Attached Files Attached Files

  10. #10
    Forum Expert
    Join Date
    01-05-2013
    Location
    Singapore
    MS-Off Ver
    H&B2016 & H&B2021
    Posts
    3,057

    Re: Input Date calculate in Condition format

    Conditional formatting formula: =AND(B3 <> "",--B3=AGGREGATE(14,3,$B$3:$B$21/($A$3:$A$21=A3),1),--B3 < DATE(2021,5,1))

    I have to turn on "Repeat item labels" for the "NAME" field > right-click cell A2 > Field Settings > Layout & Print > tick "Repeat item labels" > OK.

    You can hide the repeat labels by doing conditional formatting.
    Attached Files Attached Files

  11. #11
    Forum Contributor
    Join Date
    05-09-2015
    Location
    Thailand
    MS-Off Ver
    MS365
    Posts
    303

    Re: Input Date calculate in Condition format

    Hi
    still not work in my original file.

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

    Re: Input Date calculate in Condition format

    I feel that the reason there is a problem is that the dates in the source data on Sheet2 are text and not actual dates.
    To see that the cells in column B are filled with text, expand the width of column B. Notice that the values all stay to the left of the column, whereas actual dates would stay to the right.
    To change the cells from text to dates > select the Data tab > Text to Columns > Next > Next > Select Date and then select the correct formatting from the drop down.
    It appears the values are entered DMY, although you may have wanted some to be MDY so as to have some dates prior to 1/5/2021.
    Note that once you have changed the cells in column B to dates you'll need to refresh the pivot table.
    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] validating date and seeking to input date in correct date format
    By Roshan.Shakya in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-30-2019, 12:04 PM
  2. [SOLVED] Calculate Oldest date using Min & IF condition
    By Dnyan in forum Excel General
    Replies: 8
    Last Post: 11-21-2017, 03:31 PM
  3. [SOLVED] To Calculate Date Different in Table with certain condition
    By ajimieta in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-20-2017, 12:17 PM
  4. Replies: 3
    Last Post: 06-23-2015, 09:56 AM
  5. [SOLVED] Plotting Year wise maximum value & occurance date - the input date is in text format.
    By thilag in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 07-08-2014, 06:34 AM
  6. calculate average of counters with a condition (date)
    By Marouenetrab in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-29-2012, 12:44 PM
  7. multi condition format? lookup and date condition valid for.
    By D_Rennie in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 08-13-2009, 11:37 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