+ Reply to Thread
Results 1 to 4 of 4

Iferror formula

  1. #1
    Registered User
    Join Date
    04-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    9

    Iferror formula

    My formula is designed to pull entire rows of data from spreadsheet #1 onto spreadsheet #2 if the data in column D is greater than or equal to 1. This is my formula:

    =IFERROR(INDEX('Bar Inventory'!C$98:C$102,SMALL(IF('Bar Inventory'!$D$98:$D$102>='Bar Order'!$A$2,ROW('Bar Inventory'!C$98:C$102)-ROW('Bar Inventory'!C$98)+1),ROWS('Bar Inventory'!C$98:'Bar Inventory'!C99))),"")

    The formula was working great until I added a formula to the cells in column D on spreadheet #1. I wanted it to determine what number should be in column D rather than having to hand jam the number. My formula is:

    =IF(ISBLANK(C98)=TRUE,"",IF(C98>=1,"0","1"))

    Unfortunately, now rather than only pulling onto spreadsheet #2 the rows where column D is greater than or equal to 1, it is now pulling all the rows, even if D is a zero.

    Either I am doing something wrong or my original formula is looking at the actual formula in column D to find a number greater than or equal to 1 rather than the result of the formula in column D.

    I need help! TeriBar inventory & Order - Test File.xlsx

  2. #2
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Iferror formula

    Remove the quotes from around the numbers:

    =IF(ISBLANK(C98)=TRUE,"",IF(C98>=1,0,1))

    When you quote numbers Excel evaluates them as TEXT. "1" is not the same as 1.

    Also, you can remove the =TRUE.

    =IF(ISBLANK(C98),"",IF(C98>=1,0,1))

    You can probably reword the test for blank like this:

    =IF(C98="","",IF(C98>=1,0,1))
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  3. #3
    Registered User
    Join Date
    04-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    9

    Re: Iferror formula

    Thanks for the help. Unfortunately now the problem has changed. The formula adjustment results in all lines from spreadsheet #1 showing on spreadsheet #2 until data is entered in Column D. Once Data is entered in column D the ones showing less than 1 will disappear. Leaving me with just the ones showing 1 or more. Which in the long run is what I want.

    However, the problem with this new version is that I have to have enough lines available on sheet #2 to accomodate everything on Sheet #1 and then when the data is entered in column D, I end up with a lot of blank lines on sheet #2. That just leaves a bunch of blank space on the report when I print out sheet #2.

    Any additional insight?

  4. #4
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Iferror formula

    I downloaded your file but I can't find any of these formulas:

    =IF(ISBLANK(C98)=TRUE,"",IF(C98>=1,"0","1"))


+ 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. [SOLVED] IFERROR and IF together in same formula
    By Christopher135 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-01-2013, 09:45 PM
  2. xlfn.IFERROR or IFERROR don't work in Excel 98-2003
    By dj_danu01 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-26-2013, 02:53 AM
  3. IFERROR Formula HELP PLEASE
    By jonnykhan in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-13-2013, 09:52 AM
  4. [SOLVED] IFERROR Formula
    By Bear01 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 10-19-2012, 02:15 PM
  5. [SOLVED] #DIV/0 IFERROR formula
    By rlkerr in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-03-2012, 10:33 AM

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