easy Sumproduct giving value error

RockandGrohl

Well-known Member
Joined
Aug 1, 2018
Messages
819
Office Version
  1. 365
Platform
  1. 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
Excel Formula:
=SUMPRODUCT((OPE!$A$2:$A$863=$C$1)*(OPE!$C$1:$AG$1=$A10)*OPE!$C$2:$AG$863)
which should be everything I need, according to this:


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)
 
Most likely you have something in C2:AG863 that isn't a number or empty cell.
Turns out it was this, as usual you were right on the money.

I spot checked a bunch of cells & used the filter drop downs to check they were numbers. A lot of the blank cells, however, were showing as "TRUE" when I used ISTEXT. I just threw an ISTEXT down across the whole range and found them that way. Now the formula is, as expected, resolving correctly. Thanks again for your help!
 
Upvote 0

Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.
This returns £2150, can't see why it would return that as the array value is something like 46.5m across all cells.
I think you just happened to have the cell formatted as currency. The result meant that there are 2,150 cells containing something that isn't a number/blank.
 
Upvote 0

Forum statistics

Threads
1,226,465
Messages
6,191,185
Members
453,646
Latest member
BOUCHOUATA

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