+ Reply to Thread
Results 1 to 6 of 6

IF error

  1. #1
    Forum Contributor
    Join Date
    12-13-2009
    Location
    Ontario, Canada
    MS-Off Ver
    Excel 2007
    Posts
    149

    IF error

    I am using 2007 but everyone i am creating my spreadsheet for is back in the dark ages on 2003. I am using iferror to eliminate a divide #n/a error but it is monkeying with the sheet when they go to use it on an older version. Is there another fix?

    this is my formula as it stands now. I need the square footage box to show nothing if nothing entered
    thanks in advance

    =IFERROR(IF(OR(D6>VLOOKUP(B6,min_max_size!$A$2:$C$18,2,0),E6>VLOOKUP(B6,min_max_size!$A$2:$C$18,3,0)),"2 Big",IF(OR(D6<VLOOKUP(B6,min_max_size!$E$2:$G$18,2,0),E6<VLOOKUP(B6,min_max_size!$E$2:$G$18,3,0)),"2 Small",(D6*E6)/144)),"")
    Southwest Granite & Glass
    Quality, It's what we do
    http://www.swgg.ca

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: IF error

    Perhaps

    =IF(COUNT(D6:E6)<2, "",
    IF(OR(D6 > VLOOKUP(B6, $A$2:$C$18, 2), E6 > VLOOKUP(B6, $A$2:$C$18, 3)), "Too Big",
    IF(OR(D6 < VLOOKUP(B6, $E$2:$G$18, 2), E6 < VLOOKUP(B6, $E$2:$G$18, 3))," Too Small",
    D6*E6/144)))


    You need to put the sheet references back. The VLOOKUPs should not require an exact match.
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Forum Contributor
    Join Date
    12-13-2009
    Location
    Ontario, Canada
    MS-Off Ver
    Excel 2007
    Posts
    149

    Re: IF error

    keeps returning too small?
    =IF(COUNT(D6:E6)<2, "",
    IF(OR(D6 > VLOOKUP(B6,min_max_size!$A$2:$C$18, 2), E6 > VLOOKUP(B6,min_max_size!$A$2:$C$18, 3) ),"Too Big",
    IF(OR(D6 < VLOOKUP(B6,min_max_size!$E$2:$G$18, 2), E6 < VLOOKUP(B6,min_max_size!$E$2:$G$18, 3))," Too Small",
    D6*E6/144)))

  4. #4
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: IF error

    Is the data in min_max_size!A2:A18 and E2:E18 is ascending order?

  5. #5
    Forum Contributor
    Join Date
    12-13-2009
    Location
    Ontario, Canada
    MS-Off Ver
    Excel 2007
    Posts
    149

    Re: IF error

    i have attached but i dont see how i can do ascending with these sizes the way they are?
    Attached Files Attached Files

  6. #6
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: IF error

    All you need to do is sort by size.

    Having two tables is redundant.

    Please Login or Register  to view this content.
    The formula in D20 and copied down is

    =IF(ISNA(MATCH(A20, A1:A17, 0)), "Invalid Size",
    IF(COUNT(B20:C20)<2, "",
    IF(OR(B20 < LOOKUP(A20, $A$2:$B$17), C20 < LOOKUP(A20, $A$2:$D$17)), "Too Small",
    IF(OR(B20 > LOOKUP(A20, $A$2:$C$17), C20 > LOOKUP(A20, $A$2:$E$17))," Too Big",
    B20*C20/144))))

+ 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