+ Reply to Thread
Results 1 to 3 of 3

Excel 2007 : formula to return the next date after todays date in an array and not returning #VALUE!

  1. #1
    Registered User
    Join Date
    04-08-2012
    Location
    Queensland, Australia
    MS-Off Ver
    Excel 2007
    Posts
    2

    formula to return the next date after todays date in an array and not returning #VALUE!

    Hi Everyone

    I am having a little trouble with my formula.
    {=MIN(IF(N3:AP3>TODAY(),N3:AP3))}
    i have some dates in cell N3 going all the way up to AP3
    most of these dates are generated through formulas and some are entered manually - unless criteria are met some of these cells read as #VALUE!
    when i enter my formula it returns as #VALUE! - if i alter the formula to be N3 through to R3 which all have dates entered in them it works, but if i include cells that have #VALUE! in them the formula doesn't work.

    I need to be able to have it search the N3 to AP3 range and return the next date after todays date but not pick up on #VALUE!

    any help would be much appreciated

    Using excel 2007

    Thankyou

  2. #2
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: formula to return the next date after todays date in an array and not returning #VALUE

    Hi Dahdrael,

    Welcome to the forum.

    Try using below formula:-

    =MIN(IF(ISERROR(IF($N$3:$AP$3>TODAY(),$N$3:$AP$3,"")),"",IF($N$3:$AP$3>TODAY(),$N$3:$AP$3,"")))

    Regards,
    DILIPandey

    <click on below 'star' if this helps>
    DILIPandey, Excel rMVP
    +919810929744 (India), +971528225509 (Dubai), [email protected]

  3. #3
    Registered User
    Join Date
    04-08-2012
    Location
    Queensland, Australia
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: formula to return the next date after todays date in an array and not returning #VALUE

    Works perfectly, thank you very much

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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