SumProduct error

jwah

New Member
Joined
Apr 26, 2011
Messages
18
Here goes:

I have two criteria items in order to sum up some numerical values.

In the sheet 'SAP' in column A I have a date which month value needs to match; and in Column G, a string in the format ???????1234 whereby only the 1234 (last four chars) need to match a value in a cell reference (G50).
For where in column A the month matches, AND column G the last 4 characters match I need to SUM column I.

This is what I have so far:

=SUMPRODUCT(G50=TEXT(SAP!$G2:G500,"???????"&$G50&"*"),--(TEXT(SAP!$A$2:$A$200,"mmm-yy")=TEXT(I1,"mmm-yy")),SAP!$I$2:$I$200)

Where G50 is my 1st reference and I1 is my 2nd reference; but cell still :-( returns '#VALUE'.

Help welcome.
 
Last edited:

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).

Forum statistics

Threads
1,224,547
Messages
6,179,436
Members
452,915
Latest member
hannnahheileen

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