Missing Bracket in Formula

kumara_faith

Well-known Member
Joined
Aug 19, 2006
Messages
951
Office Version
  1. 365
Hi,

I have the following formula which excel keep saying error in formula. Am I missing any brackets here ? Appreciate any help.

Excel Formula:
=IFERROR(((F41*$F$3)+(G41*$G$3)+(H41*$H$3)+(I41*$I$3)+(J41*$J$3)+(K41*$K$3)+(L41*$L$3)+(M41*$M$3)+(N41*$N$3)+(O41*$O$3)+(P41*$P$3)+(Q41*$Q$3)+(R41*$R$3)+(S41*$S$3)+(T41*$T$3)+(U41*$U$3)+(V41*$V$3)+(W41*$W$3)+(X41*$X$3))/((XLOOKUP(Jan!E41,'Lookup Tables'!$AD$3:$AD$17,'Lookup Tables'!$AE$3:$AE$17))*(COUNTIF(Y7:Y40,">0%")),0))))
 

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
Hi,

Sorry, I did not get it. You mean change as follows?

Excel Formula:
=IFERROR(((F41*$F$3)+(G41*$G$3)+(H41*$H$3)+(I41*$I$3)+(J41*$J$3)+(K41*$K$3)+(L41*$L$3)+(M41*$M$3)+(N41*$N$3)+(O41*$O$3)+(P41*$P$3)+(Q41*$Q$3)+(R41*$R$3)+(S41*$S$3)+(T41*$T$3)+(U41*$U$3)+(V41*$V$3)+(W41*$W$3)+(X41*$X$3))/((XLOOKUP(Jan!E41,'Lookup Tables'!$AD$3:$AD$17,'Lookup Tables'!$AE$3:$AE$17))*(COUNTIF(Y7:Y40,">0%"),"")
 
Upvote 0
I did not use all of your formula.
Try just using brackets where they are required; see B7 below. Alternatively, use SumProduct
Build the numerator and test then build the denominator and test.
Then combine the formulas.

T202212a.xlsm
BCD
7200200
2e
Cell Formulas
RangeFormula
B7B7=F41*$F$3+G41*$G$3+H41*$H$3+I41*$I$3+J41*$J$3+K41*$K$3+L41*$L$3+M41*$M$3+N41*$N$3+O41*$O$3
C7C7=SUMPRODUCT(F3:O3,F41:O41)
 
Last edited:
Upvote 0
Assuming you want the Xlookup * by the countif before doing the division. This is what the corrected version looks like in the new Advanced Formula Environment.
Excel Formula:
=IFERROR(
    (
        (F41 * $F$3) + (G41 * $G$3) + (H41 * $H$3) + (I41 * $I$3) +
            (J41 * $J$3) + (K41 * $K$3) + (L41 * $L$3) + (M41 * $M$3) +
            (N41 * $N$3) + (O41 * $O$3) + (P41 * $P$3) + (Q41 * $Q$3) +
            (R41 * $R$3) + (S41 * $S$3) + (T41 * $T$3) + (U41 * $U$3) +
            (V41 * $V$3) + (W41 * $W$3) + (X41 * $X$3)
    ) /
        (
            XLOOKUP(
                Jan!E41,
                'Lookup Tables'!$AD$3:$AD$17,
                'Lookup Tables'!$AE$3:$AE$17
            ) * (COUNTIF(Y7:Y40, ">0%"))
        ),
    0
)
 
Upvote 0
Solution
If you are sure that all your users have MS365 then Dave's sumproduct can be simplified to.
Excel Formula:
=SUM(F3:X3*F41:X41)
 
Upvote 0

Forum statistics

Threads
1,223,897
Messages
6,175,270
Members
452,628
Latest member
dd2

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top