+ Reply to Thread
Results 1 to 10 of 10

formula to calculate no of days from lastest dates

  1. #1
    Forum Contributor
    Join Date
    07-21-2011
    Location
    Bangalore,India
    MS-Off Ver
    Excel 2007,2010,2016
    Posts
    695

    formula to calculate no of days from lastest dates

    Dear experts

    help me on this i have two dates i want calculate the no of days till today date from latest date of either A or B


    if A 5/1/2013 B 7/1/2013 formula should calculate from B till today()
    if A 7/1/2013 B 5/23/2013 formula should calculate from A till Today()

    if A is blank B have Date 7/1/2013 Formula should calculate from B
    if A have Date B is blank Formula should calculate from A

    if both column are blank formula result "NO DATE"

    please find the attachment i have enclosed example sheet

    thanks to all
    Attached Files Attached Files

  2. #2
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: formula to calculate no of days from lastest dates

    In C2

    =IF(COUNT(A2:B2),TODAY()-MAX(A2:B2),"No Date")

    Copy down
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  3. #3
    Forum Contributor
    Join Date
    08-23-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    163

    Re: formula to calculate no of days from lastest dates

    Hi,

    I think below formula will do.

    Put this in C2 and drag to the end. Format cells as number.

    =IF(AND(A2=0,B2=0),"NO DATE ",TODAY()-MAX(A2:B2)).
    Please mark the thread as [SOLVED] when answered.
    If you're happy with an answer given, please click the * under the person's name to boost their reputation.

  4. #4
    Forum Contributor
    Join Date
    07-02-2013
    Location
    Stockholm, Sweden
    MS-Off Ver
    Excel 2003 and 2007
    Posts
    197

    Re: formula to calculate no of days from lastest dates

    Like this?
    Attached Files Attached Files

  5. #5
    Forum Contributor
    Join Date
    07-02-2013
    Location
    Stockholm, Sweden
    MS-Off Ver
    Excel 2003 and 2007
    Posts
    197

    Re: formula to calculate no of days from lastest dates

    Quote Originally Posted by nested.if1@gmail.com View Post
    Hi,

    I think below formula will do.

    Put this in C2 and drag to the end. Format cells as number.

    =IF(AND(A2=0,B2=0),"NO DATE ",TODAY()-MAX(A2:B2)).
    Apologize to nested.if1, as you already proposed the right solution

  6. #6
    Forum Contributor
    Join Date
    07-21-2011
    Location
    Bangalore,India
    MS-Off Ver
    Excel 2007,2010,2016
    Posts
    695

    Re: formula to calculate no of days from lastest dates

    Dude if column extend to up to d in between b,c data and date is there then how max value work

  7. #7
    Forum Contributor
    Join Date
    07-21-2011
    Location
    Bangalore,India
    MS-Off Ver
    Excel 2007,2010,2016
    Posts
    695

    Red face Re: formula to calculate no of days from lastest dates

    Now i want calculate a and d cell values in between alphanumberic values there

    check this attachment
    Attached Files Attached Files

  8. #8
    Forum Contributor
    Join Date
    07-02-2013
    Location
    Stockholm, Sweden
    MS-Off Ver
    Excel 2003 and 2007
    Posts
    197

    Re: formula to calculate no of days from lastest dates

    Why not insert the new columns before column A or after column C?

  9. #9
    Forum Contributor
    Join Date
    08-23-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    163

    Re: formula to calculate no of days from lastest dates

    Hi,

    May be something like this....

    =IF(AND(A2=0,D2=0),"NO DATE ",TODAY()-IF(D2>A2,D2,A2))
    Last edited by nested.if1@gmail.com; 07-04-2013 at 08:43 AM.

  10. #10
    Forum Contributor
    Join Date
    07-02-2013
    Location
    Stockholm, Sweden
    MS-Off Ver
    Excel 2003 and 2007
    Posts
    197

    Re: formula to calculate no of days from lastest dates

    Quote Originally Posted by Rambo4711 View Post
    Why not insert the new columns before column A or after column C?
    But if you want the new column inserted between column A and B here is the solution.
    Attached Files Attached Files

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

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