Adding an iferror correctly - excel-formula

Normally I can add an iferror to my formulas fairly easily. But this formula I am using I seem to be struggling:
Formula:
=SUM((X15-V15)+W15)/Q15
My Iferror:
=IFERROR(SUM((X15-V15)+W15)/Q15),"-")
what am I doing wrong? I have even tried to add extra brackets.
thanks

Sorry, should have posted as an answer...
It looks as if you are closing a bracket after Q15 that you shouldn't: try =IFERROR(SUM((X15-V15)+W15)/Q15,"-")

Related

Using OR with two VLOOKUP formulas

I am trying to use an OR formula as follows:
=OR(IFERROR(VLOOKUP(W1197,Nursery!A:F,6,0),"outofstock"), IFERROR(VLOOKUP(W1197,Annuals!A:G,7,0),"outofstock"))
It keeps returning a #VALUE error.
I'm pretty sure I am referencing the correct fields, and I have made this work correctly using only 1 vlookup forumula. What am I doing wrong with the OR statement?
Thanks for any help.
use:
=IFERROR(IFERROR(VLOOKUP(W1197,Nursery!A:F,6,0),VLOOKUP(W1197,Annuals!A:G,7,0)),"outofstock")

How to deal with double quotes in conditional formatting's formula

I was having a look at this question, and in order to help, I wrote a conditional formatting rule, based on this formula:
="ABS(B3-A3)>=1,5" // the double-quotes are automatically added by Excel
This, however, seems not to work, although the formula seems to be correct (in the cell at the right, I asked whether this was true and I got a positive result, as you can see (WAAR is Dutch for true)):
I'm not interested in the final solution, I just want to know how I can debug such a situation: apparantly the formula is true, but still the conditional formatting is not applied. This might mean that:
Something is wrong with the language settings.
Something is wrong with the dot/comma decimal separator.
Something else is wrong with the formula (absolute references, relative references, ...)
How can I, step by step, evaluate the formula, entered in a conditional formatting configuration, in order to see what might be wrong?
Thanks in advance
Select the whole range (for the example A2:B5)
Add in conditional formatting formula =ABS($B3-$A3)>=1.5
Result:
Remove the "" at the beginning and end of your formula. Should do the trick.
Sorry, guys, but the truth is really nerve-wrecking:
The answer of Error 1004 is correct. Thanks for the screenshot.
The answer of Jario is correct too.
So what's the deal?
Apparently there seems to be a problem with the decimal separator : when I enter a dot, using Excel regularly, it gets converted into a comma. When I enter a dot in a conditional formatting formula, this conversion is not done, resulting in a wrong formula, where Excel automatically adds double quotes. As the double quotes result in a wrong formula, the conditional formatting won't be applied.
So:
From the moment you see double quotes in a conditional formula, this is an indication that something's wrong, and that your conditional formatting won't work!

Excel, subtotals and count/sum ifs

If I have a simple COUNTIF formula in Excel such as
=COUNTIFS(E:E,"Dave Brown",N:N,"Complete")
How would I amend this into a Subtotal? So far I've got this for the first part...
=SUMPRODUCT((E:E="Dave Brown")*(SUBTOTAL(103,OFFSET(E1,ROW(E:E)-MIN(ROW(E:E)),0))))
First, I would suggest that you avoid whole column references. Otherwise you'll find the formula very inefficient. So try something like this...
=SUMPRODUCT(SUBTOTAL(103,OFFSET(E2:E100,ROW(E2:E100)-MIN(ROW(E2:E100)),0,1)),--(E2:E100="Dave Brown"),--(N2:N100="Complete"))
Hope this helps!

Excel Formula returning error:

I am trying to add two cells in excel but it gives an #Value! because I believe I am adding the space if error. Is there a way to add without using a 0 for example because I need to copy the formula down and if there is no value, I want it to be a blank not zero. Thanks!
=IFERROR(IF(ISBLANK(B4*J4),"",(B4*J4)),"")+IFERROR(IF(C4="","",VLOOKUP(C4,Sheet2!$R$1:$S$12,2,FALSE))*J4,"")
Try this: =IFERROR(IFERROR(IF(ISBLANK(B4*J4),"",(B4*J4)),"")+IFERROR(IF(C4="","",VLOOKUP(C4,Sheet2!$R$1:$S$12,2,FALSE))*J4,""),"")
Please consider the following solution:
=IF((B4*J4)+ IFERROR(IF(C4="",0,VLOOKUP(C4,Sheet2!$R$1:$S$12,2,FALSE)*J4),0)=0,"",(B4*J4)+ IFERROR(IF(C4="",0,VLOOKUP(C4,Sheet2!$R$1:$S$12,2,FALSE)*J4),0))
I removed the ISBLANK as per my comments above. Only left IFERROR on the VLOOKUP and wrapped everything in an IF to catch in the event that formula returns zero. Regards,

Does anyone know what is wrong with my formula in cell E17?

The code could not work well. I do not understand what the mistake is. I wrote a formula in cell E17 and dragged it down to E22, but the formula does not work at all.
Use the forth criterion, Also use MATCH instead of the nested if.
=VLOOKUP(C17,$B$4:$G$7,MATCH(D17,$B$3:$G$3,0),FALSE)

Resources