RockandGrohl
Well-known Member
- Joined
- Aug 1, 2018
- Messages
- 819
- Office Version
- 365
- Platform
- Windows
Hello friends
I need to do some kind of sumproduct. The 'OPE' sheet that has the values has the project list in column A, and it has the GL codes across row 1 (starting from C1), with the values for each code & project as a matrix. The sum range is C2:AG863.
On the sheet which will have the formula, the project name is in cell C1, and the GL codes are found in A10:A31
I'm running with
which should be everything I need, according to this:
exceljet.net
But it's giving a #value error.
Similiarly, a multi-criteria XLookup also fails with a value error.
Can anyone help on this? The GL Code I'm looking up is a number (and I've verified both are numbers and not text)
I need to do some kind of sumproduct. The 'OPE' sheet that has the values has the project list in column A, and it has the GL codes across row 1 (starting from C1), with the values for each code & project as a matrix. The sum range is C2:AG863.
On the sheet which will have the formula, the project name is in cell C1, and the GL codes are found in A10:A31
I'm running with
Excel Formula:
=SUMPRODUCT((OPE!$A$2:$A$863=$C$1)*(OPE!$C$1:$AG$1=$A10)*OPE!$C$2:$AG$863)
![exceljet.net](/board/proxy.php?image=https%3A%2F%2Fexceljet.net%2Fsites%2Fdefault%2Ffiles%2Fstyles%2Fog_image%2Fpublic%2Fimages%2Fformulas%2Fsum_matching_columns_and_rows.png&hash=ba22d4e74721b883fb959cf2448b47b1&return_error=1)
Sum matching columns and rows
To sum values in matching columns and rows, you can use the SUMPRODUCT function. In the example shown, the formula in J6 is: =SUMPRODUCT((codes=J4)*(days=J5)*data) where data (C5:G14), days (B5:B14), and codes (C4:G4) are named ranges. Note: In the latest version of Excel you can also use the...
But it's giving a #value error.
Similiarly, a multi-criteria XLookup also fails with a value error.
Excel Formula:
=XLOOKUP(1,(OPE!A2:A863=C1)*(OPE!C1:AG1=A10),OPE!C2:AG863,"",0)
Can anyone help on this? The GL Code I'm looking up is a number (and I've verified both are numbers and not text)