I have a table that calculates both grand totals and sub-totals, with one cell always showing the grand totals, and one cell that would show different sub-totals based on which filters are applied.

I am using the following formula to find the grand total:
{=SUM(IF(ISERROR(DL14:DL1541)," ",DL14:DL1541))}

I am attempting to use this (non-working) formula for the sub-total:
=SUBTOTAL(9,DL14:DL1541)

The problem is that I have a lot of cells with "#N/A" in them, and can't figure out how to get the sub-total formula to work. I've tried rewriting the sub-total formula in several different ways, but can't get it to work.

I’m trying to get my sheet so that at each change in month it creates a sum of the value but I want to sum to show up in the subtotal value column.....

I would like some code that would wrap if(iserror) around a formula, so that if the result is an error then no text is shown. It would be good if I could select a range and the formula would be adjusted for all cells with formula in. (Would be even better if cells with references in could have if(isblank) instead!) I am currently spending ages adjusting all my formulas manually and haven't got time to try and work out how to do this with vba.(I'm not very experienced with it!)

e.g. =INDEX('Characs Single'!$B$1:$C$100,MATCH('1Report'!$B12,'Characs Single'!$B$1:$B$19,0),2)

I'm going wrong with this formula: =if(iserror(J3-VLOOKUP (H3,$H$730:$J$1456,3,FALSE)," "(J3-VLOOKUP(H3,$H$730:$J$1456,3,FALSE)). I feel like I've used a variant of this formula before without encountering any problems.

I am trying to use an ISERROR function in an array formula, but it doesn't seem to be working. The formula I am using is as follows: ={IF(ISERROR(MMULT(Covar1,MMULT(MINVERSE(BC111:CX158),E161:E208))),0,MMULT(Covar1,MMULT(MINVERSE(BC111:CX158),E161:E208)))}

I am wondering if I have nested too many functions for this to work properly. In the case where one of the first two if statements are true (an error would be produced), I am receiving a "0" as specified. However, in the case where the statement VLOOKUP(C75&" - "&D75,'Sheet1'!$A$3:$I$5442,9,FALSE) results in an error then I should have the return of VLOOKUP(C75&" - "&G75,'Sheet1'!$B$3:$I$5442,9,FALSE), but am getting a #REF! error instead.

I am trying to fix the below formula =IF(OR(ISERROR((F26-E26)/F26),((F26-E26)/F26)=1),"",(F26-E26)/F26). If I get an error from the formula I want it to return a blank cell. If I get 1 as the answer to the formula I'd like it to return a blank cell. This formula only works if the result is 1 but won't return a blank cell if the answer is an error.

My problem is when i get a product that isnt in the reference sheets (ie. in cell I19), so when that happens i get "#N/A". I know i can add in ISERROR into my formula, but every time i've tried this it hasn't worked so im missing something...

For FormulaRemake = 2 To 2000 Worksheets("Data"). Range("D" & FormulaRemake).Formula = ""=If(ISERROR(Data!W"" & FormulaRemake - 1 & "")"" & ""=True,"",Data!W"" & FormulaRemake - 1 & "")"" Next Application.ScreenUpdating = True

I'm having troubles with the syntax for the .Formula part. I read that when you do this you're supposed to double quote everything, except if you need a "" in it...? Should look like this when done right: =IF(ISERROR(Data!W1)=TRUE,"",Data!W1) Also is there anything besides ScreenUpdating that will make this code run faster?

way to do this but i have a sheet that is into 5 - 6 thous rows, in one of the columns (names) i sort it by names and then order it by subtotal for certain values.

What i need to know, is there anyway i can take just the subtotal values out and put onto another spreadsheet without copying and pasting it all as there are lots of subtotals and this would help alot as the other info is not nec. just the subtotal'd info. either that or is there anyway i can highlight the subtotal'd row info in yellow/bold text anything like that that would make it stand out without having to do it manually?

The Formula in C1 is =IF(B1=TRUE,SUBTOTAL(9,C2:C3),A1)

This formula is then copied down to C2 and C3. I want this formula to subtotal the next two numbers if the cell to the left is true. Right now it is giving me 0, but it should be giving me 8.

I'd like to point a cell to a subtotal on another sheet but that sheet will periodically have the subtotals removed, more data added, then sorted and subtotalled again. Is there a way to have my other cell find the subtotal that matches a certain criterion (in this case, cost center)?

Just to give you a quick overview (i cannot attach workbook due to data protection for our customer), I have a workbook with two tabs on it, an invoice summary tab and a rentals tab.

This is an extract of the table from my invoice summary tab:

Tab Net (Zero Vat) Net (Standard Vat)

Initial Rentals Rentals 0

[Code] .....

The invoice data is on the rentals tab. Column "C" on the rentals tab details what type of rental it is, as per column A in the table above. the amount to sum on my rentals tab is in column "S".

Now the problem i have is i have an autofilter on the rentals tab which will be filtered by different accounts, I need the formula on the invoice summary tab to only show the visible amounts (as per the filter) and not the whole column. I was thinking of a subtotal formula but can't use a sumif and subtotal together (i dont think).

I am trying to combine a subtotal formula in sumproduct formula but end in error. Appreciate if someone can assist me with the right formula. I would like to combine subtotal in the following sumproduct formula:

I want to know how many emails are in my list. There is dash sign where the emal id is not available. The subtotal formula gives me the total entries in range but I want to know only email count numbers.

In my range there are 6 entries and only 4 email ids. Now I'm getting output 6 but I want it 4 ignoring 2 dash signs.

I'm looking for a formula that acts the same way as the subtotal formula (revises if rows are hidden and only adds visible rows). Is there anyway to get this removal of hidden rows but for subtraction?

I have a data set of students results and I have been using countif to pickup similar grades eg, C1, C2 and C3 all as C. However I need to subtotal filter against teachers and the sumproduct won't let me use C* as a wildcard to pick up the three types of C. How I can subtoal countif multiple criteria.

I'm looking for a SUBTOTAl IF function (if there's any) that would sum all the distinct values in a column for a given criteria based on another column. My data is listed below:

I'm looking for a formula to sum the DISTINCT Revenue values for Q1 2008, Q2 2008, and Q3 2008 based on the autofiltered list. The formula result should change dynamically based on the autofilter selection.

This formula extrapolates information perfectly for me if I do not filter columns in the separate sheet with all of the information.

I know that SUBTOTAL functions can be used in a way to exclude hidden cells. Can I combine the SUBTOTAL function into my SUMIF function above to produce results that exclude filtered cells?

I currently use the following formula using IF and ISERROR i.e.

=IF(ISERROR(IF(O12-(O12/100*80)<S12,"",IF(O12="","","Warning 20% or less Cover Remains!")))," ",(IF(O12-(O12/100*80)<S12,"",IF(O12="","","Warning 20% or less Cover Remains!"))))

What I’m after is to add an addition condition e.g. using “IF(O12-(O12/100*80)<S12” and “IF(O12-(O12/100*90)<S12” which would display either Warning 20% or less Cover Remains! or Warning 10% or less Cover Remains! incorporating ISERROR to avoid #N/A

Anyone have a way to create a macro that will convert a formula that returns an error into and IF(ISERROR) formula?

I have inherited a financial model in which the programmer did not consider that hundreds of the formula results would be #DIV/0 unless there are entries in the source cells. I would like to create a custom macro that would convert the formula to an IF statement, so that if the formula in that cell is currently creating an error, return 0, if not run the formula.

I require a worksheet formula, something along these lines:

=IF(ISERROR(SEARCH("Cat",OR(A1,A2))),"No","Yes")

The formula is in A3 and I need it to test both cells A1 and A2 for the existence of the word Cat. The word may be in either, both or neither of the cells.

I'm having trouble with a formula. What I want to do is create a conditional formatting so if a cell contains certain keywords, it will highlight that cell.

What I want is if a cell contains the word BOX or PO or P.O. to highlight that cell or show either a true or false.

What I have is =IF(OR(ISERROR(SEARCH("BOX",A1,1),SEARCH("PO",A1,1),SEARCH("P.O.",A1,1))),1,0)

It works if I do it separately but when combined it just stays 1 all the time despite the cell not containing those words. Am I organizing the OR and ISERROR right?