+ Reply to Thread
Results 1 to 3 of 3

Nested IF Statement to recognize #NUM!

  1. #1
    Registered User
    Join Date
    02-24-2011
    Location
    New Hampshire, USA
    MS-Off Ver
    Excel 2007
    Posts
    36

    Nested IF Statement to recognize #NUM!

    Hello,
    I’m thinking I need an ISERROR, IFERROR or Error.Type formula in front of my if statement, but I can’t seem to get it to work.

    In cell K10 I have an if statement going to P3 and P4, basically whichever date is greater Add it to cell Q1 (which is just a number say 45). If there is only one date entered within J8:J13 than cell P4 will come up as #NUM!, which is ok. I just need my IF statement to recognize if it is #NUM! then only add P3 to Q1.

    =IF(P3>P4,(P3+Q1),IF(P4>P3,(P4+Q1),P3+Q1))

    Any help would be appreciated
    Last edited by snikrs11; 10-03-2011 at 01:01 PM.

  2. #2
    Forum Expert Bob Phillips's Avatar
    Join Date
    09-03-2005
    Location
    Wessex
    MS-Off Ver
    Office 2003, 2010, 2013, 2016, 365
    Posts
    3,284

    Re: Nested IF Statement to recognize #NUM!

    Try

    =IF(ISERROR(P4),P3,MAX(P3,P4))+Q1

  3. #3
    Registered User
    Join Date
    02-24-2011
    Location
    New Hampshire, USA
    MS-Off Ver
    Excel 2007
    Posts
    36

    Re: Nested IF Statement to recognize #NUM!

    AMAZING! So simply, I made it so hard, thank you SOOOO 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