+ Reply to Thread
Results 1 to 11 of 11

ISBLANK formula that goes off of IFERROR formula

  1. #1
    Registered User
    Join Date
    10-20-2015
    Location
    Philadelphia,PA
    MS-Off Ver
    2013
    Posts
    31

    ISBLANK formula that goes off of IFERROR formula

    I currently have a very long formula that ultimately is a using IFERROR. I would like to have a formula that says, if the outcome of the IFERROR is blank, use this other very long formula that also is an IFERROR formula. I then want the formula to say, if this second IFERROR formula results in a blank, use a third IFERROR formula and so forth around 7-8 times. Is this doable, is this understandable? I will include the IFERROR formula that I am currently using and one of the other IFERROR formulas that I want to be used if this first IFERROR statement results in a blank.

    Formula 1
    =IFERROR(INDEX('Sheet1'!$D$11:$D$242,SMALL(IF('Sheet1'!$I$11:$I$241>0,ROW('Sheet1'!$A$11:$A$241)-ROW('Sheet1'!$A$11)+1,""),ROWS('Sheet1'!$A$11:A11))),"")

    Formula 2
    =IFERROR(INDEX('Sheet2'!$E$11:$E$147,SMALL(IF('Sheet2'!$C$11:$C$147>0,ROW('Sheet2'!$A$11:$A$147)-ROW('Sheet2'!$A$11)+1,""),ROWS('Sheet2'!$A$11:F11))),"")

    I was thinking that the combination of these formulas could result in a formula as follows:

    =IF(ISBLANK(IFERROR(INDEX('Sheet1'!$D$11:$D$242,SMALL(IF('Sheet1'!$I$11:$I$241>0,ROW('Sheet1'!$A$11:$A$241)-ROW('Sheet1'!$A$11)+1,""),ROWS('Sheet1'!$A$11:A11))),""),"FALSE",IFERROR(INDEX('Sheet1'!$D$11:$D$242,SMALL(IF('Sheet1'!$I$11:$I$241>0,ROW('Sheet1'!$A$11:$A$241)-ROW('Sheet1'!$A$11)+1,""),ROWS('Sheet1'!$A$11:A11))),""),IF(ISBLANK(IFERROR(INDEX('Sheet2'!$E$11:$E$147,SMALL(IF('Sheet2'!$C$11:$C$147>0,ROW('Sheet2'!$A$11:$A$147)-ROW('Sheet2'!$A$11)+1,""),ROWS('Sheet2'!$A$11:F11))),""),"FALSE","")

  2. #2
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: ISBLANK formula that goes off of IFERROR formula

    Instead of actually putting "" as the result of the iferror, just put the next iferror there.

    =IFERROR(INDEX('Sheet1'!$D$11:$D$242,SMALL(IF('Sheet1'!$I$11:$I$241>0,ROW('Sheet1'!$A$11:$A$241)-ROW('Sheet1'!$A$11)+1,""),ROWS('Sheet1'!$A$11:A11))),"")

    =IFERROR(INDEX('Sheet1'!$D$11:$D$242,SMALL(IF('Sheet1'!$I$11:$I$241>0,ROW('Sheet1'!$A$11:$A$241)-ROW('Sheet1'!$A$11)+1,""),ROWS('Sheet1'!$A$11:A11))),nextiferrorgoeshere)

  3. #3
    Registered User
    Join Date
    10-20-2015
    Location
    Philadelphia,PA
    MS-Off Ver
    2013
    Posts
    31

    Re: ISBLANK formula that goes off of IFERROR formula

    Would I then continue to place more IFERROR statements in the "" at the end of each IFERROR?

  4. #4
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: ISBLANK formula that goes off of IFERROR formula

    Yes, in theory.
    But that's going to get very long winded and you may end up exceeding the maximum length that a formula can be.

    There may be a much easier way, but it's difficult to tell just by looking at a formula.
    This was just a straight up answer to the specific question posted.

    Can you attach a sample workbook, and describe in words what the formula is actually meant to do?
    Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic

  5. #5
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: ISBLANK formula that goes off of IFERROR formula

    I would be more inclined to keep the 7-8 iferror functions in their own separate cells.
    Then use another formula to test those 7-8 cells for the result you're looking for.

  6. #6
    Registered User
    Join Date
    10-20-2015
    Location
    Philadelphia,PA
    MS-Off Ver
    2013
    Posts
    31

    Re: ISBLANK formula that goes off of IFERROR formula

    Desensitizing the info would require me creating an entire new workbook to test what I am working on, so that will take some time. The reason I am trying to combine the formulas into 1 formula is so that I can conserve on cell space as I am required to be within an area of space. I can explain what I am trying to do though in words at the least.

    I am trying to create a formula that will copy data from a different sheet if a value is true. If a value is true, it will grab the value and then move onto the next value that is true and copy the data so forth until all true data is copied over, then it will create blanks for as many cells as I have the formula copied into. I have a formula like this for 7 or so different sheets in my workbook. I am trying to combine the formulas for each sheet into a single formula. I will attempt to recreate what I am trying to do shortly.

  7. #7
    Registered User
    Join Date
    10-20-2015
    Location
    Philadelphia,PA
    MS-Off Ver
    2013
    Posts
    31

    Re: ISBLANK formula that goes off of IFERROR formula

    I am trying to automate a workbook to pull the Part #, Description, and Price of any parts that are being ordered(They have a quantity). I have a seperate formula for each of the individual sheets in the workbook. I would like to combine the formulas to make a single formula that will encompass every data pull from each sheet into a single formula. Please see the attached sample workbook for an example of the state I am currently in and the formulas I have been using to automate this so far. Feel free to play around with the values in the workbook as everything included is mock.

    Mock Data Pull.xlsx
    Last edited by BoundToExcel; 01-06-2016 at 03:41 PM.

  8. #8
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: ISBLANK formula that goes off of IFERROR formula

    Sometimes it's easier to just manually manipulate data by hand.
    That's just going to be a monstrous formula.

    I would 'by hand' combine the data from all 4 sheets into 1 sheet, then delete the blanks from the quantity column.
    Done. Just a minute or two's worth of work.


    I could make a macro that would do it, are you ok with a VBA solution?

  9. #9
    Registered User
    Join Date
    10-20-2015
    Location
    Philadelphia,PA
    MS-Off Ver
    2013
    Posts
    31

    Re: ISBLANK formula that goes off of IFERROR formula

    The actual workbook I am using has hundreds of lines worth of data that I would need to 'by hand' go through in order to create a single sheet with deleted blanks. Also, the sheets would still need to exist with all of their information in its entirety as anybody using the sheet that would like to add or remove ordered items would want to see the other items that can be ordered. I'm not sure I fully follow what you are stating is an option?

  10. #10
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: ISBLANK formula that goes off of IFERROR formula

    Sorry, I don't see any way to do all of that with 1 formula.

    It's Hard enough to look through multiple sheets.
    But each sheet isn't even structured the same (according to original formulas in your first post)
    First formula is indexing column D, testing column I for >0
    Second formula is indexing column E, testing column C for >0

    And nesting the iferrors as I originally suggested won't work either.
    I didn't really even look at what the formula was actually doing at the time, I was just going by Instead of "", do another iferror.
    But that won't really work here, because if the first iferror finds a value for the first row, then the first iferror in the 2nd row does not find a match, then the 2nd iferror will be returning the 2nd value from the 2nd sheet.


    I can only envision as I said before, manually consolidating all the data into 1 sheet.
    But that proves even more difficult, again because each sheet is not structured the same way.
    So you'd end up pasting Part #s from the 2nd sheet into the column where you put the Price from the 1st sheet.


    Or, stick with the way you have it. 1 table for each sheet on your Master Tab.

  11. #11
    Registered User
    Join Date
    10-20-2015
    Location
    Philadelphia,PA
    MS-Off Ver
    2013
    Posts
    31

    Re: ISBLANK formula that goes off of IFERROR formula

    Yeah I figured the IFERROR of the 2nd formula would return the 2nd IFERROR value and I am currently attempting to fix that but not having much luck yet. The structure of every single sheet is the same EXCEPT for the very first sheet which is structured differently and I cannot actually change the structure of that sheet. 1 table for each sheet in my Master Tab is the simplest working option, but not the best looking so ill keep poking around different formulas to determine if I would be capable of doing this.

    Thanks.

+ 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. Using IF formula with ISBLANK
    By banker123 in forum Excel General
    Replies: 4
    Last Post: 04-09-2014, 11:48 AM
  2. [SOLVED] Better way, IsBlank and Vlookup & Iferror
    By jtmeunier in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 11-27-2013, 06:51 PM
  3. ISBLANK formula
    By johnny_p in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-30-2013, 11:44 AM
  4. [SOLVED] IFERROR / ISBLANK formula query
    By zhb12810 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-04-2012, 04:05 AM
  5. Excel 2007 : Help with a IF/IsBlank Formula
    By Chips Reynolds in forum Excel General
    Replies: 4
    Last Post: 04-06-2012, 09:22 AM
  6. Help with ISBLANK function referring to a cell with another ISBLANK formula
    By camdameron in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 03-23-2011, 12:45 PM
  7. Using IsBlank In Formula
    By scotfitz in forum Excel General
    Replies: 2
    Last Post: 09-07-2008, 05:55 PM

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