+ Reply to Thread
Results 1 to 5 of 5

find out the maximum date from all true values

Hybrid View

jsalotra find out the maximum date... 05-23-2017, 11:24 AM
AlKey Re: find out the maximum date... 05-23-2017, 11:45 AM
jsalotra Re: find out the maximum date... 05-23-2017, 12:07 PM
AlKey Re: find out the maximum date... 05-23-2017, 12:12 PM
jsalotra Re: find out the maximum date... 05-23-2017, 12:22 PM
  1. #1
    Registered User
    Join Date
    03-18-2014
    Location
    Brampton, ONTARIO
    MS-Off Ver
    Excel 365
    Posts
    78

    find out the maximum date from all true values

    Hi,

    I have to find out the maximum date from a series of dates if the condition is true for those dates.

    I have a spreadsheets for the all days of the month and every day I enter data for each day. The totals are based on format control box which is true of false. I use "sumif" formula or lookup formula based on all "true" days. However I have to manually change the date every day so that formulas work.

    Is there any formula which can pick up maximum date based on true conditions. So I don't need to change the date and by clicking the control box for true condition, the maximum date will be there.

    For Example :

    True and false are in row 1
    dates are in row 2

    Row 1 - True True True False False Total at
    Row 2- 1-May-17 2-May-17 3-May-17 4-May-17 5-May-17 3-May-17

    Thanks,
    Jai

  2. #2
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: find out the maximum date from all true values

    Try this
    Formula: copy to clipboard
    =LOOKUP(2,1/(A1:F1<>FALSE),A2:F2)

    Or
    Formula: copy to clipboard
    =LOOKUP(2,1/(A1:F1=TRUE),A2:F2)

    v A B C D E F
    1 TRUE TRUE TRUE FALSE FALSE FALSE
    2 1-May-17 2-May-17 3-May-17 4-May-17 5-May-17 3-May-17
    3
    4 3-May-17
    Format cell A4 as Date
    Last edited by AlKey; 05-23-2017 at 11:51 AM.
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  3. #3
    Registered User
    Join Date
    03-18-2014
    Location
    Brampton, ONTARIO
    MS-Off Ver
    Excel 365
    Posts
    78

    Re: find out the maximum date from all true values

    Hi,

    Thanks for the reply. It working for the left to right data range, however its not working if the date range order is from right to left.

    For example :



    FALSE FALSE TRUE TRUE TRUE TOTAL AT
    11-May-16 10-May-16 9-May-16 8-May-16 7-May-16 9-May-16


    Thanks a lot for your help!
    Jai

  4. #4
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: find out the maximum date from all true values

    See if this will work for you
    Formula: copy to clipboard
    =MAX(INDEX((A1:F1=TRUE)*(A2:F2),0))

  5. #5
    Registered User
    Join Date
    03-18-2014
    Location
    Brampton, ONTARIO
    MS-Off Ver
    Excel 365
    Posts
    78

    Re: find out the maximum date from all true values

    Thanks Alkey.. This formula work for both ranges.

    Regards,
    Jai

+ 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: 2
    Last Post: 03-10-2017, 05:38 AM
  2. Formula to find multiple maximum values in a column
    By Destroy in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-02-2015, 06:25 PM
  3. Replies: 7
    Last Post: 08-07-2013, 11:57 AM
  4. to compare among a set of values and to find the maximum among them
    By arya ravi in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-06-2013, 06:52 AM
  5. Find maximum and minimum value for each date
    By anna.gladkova in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-05-2012, 08:50 PM
  6. Find Maximum date
    By sgl in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-15-2006, 04:10 AM
  7. Replies: 5
    Last Post: 05-13-2005, 01:06 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