=SUMPRODUCT ..... Help Please

MarkAn

Board Regular
Joined
Sep 28, 2005
Messages
69
Office Version
  1. 2010
Hi there

SUMPRODUCT is giving me a headache as I can't figure out where I am going wrong.

I have a spreadsheet with data in Columns A to W, Column E I have Named as TSStatus and Column U has been Named TSCom.

TSStatus has a range E2:E20000 and holds information "Not Started", "Pending", "Closed"
TSCom has a range U2:U20000 and holds information "SP" or "PC"

I have entered the following formula:

=SUMPRODUCT(--(TSStatus=$B$15),--(TSCom=$B$16))

With B15 holding Not Started and B16 holding SP

However, it continually brings back an error, however, it has calcuated on a previous tab using Named ranges.

Can anyone please help?

Many thanks
MarkAn
 

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.
Which error are you geting? If you're getting #NAME? as the error, then it's likely that the scope of your named ranges are limited to the worksheet. If so, let's say that the named ranges are located in Sheet2, try...

=SUMPRODUCT(--('Sheet2'!TSStatus=$B$15),--('Sheet2'!TSCom=$B$16))
 
Last edited:
Upvote 0
Hi

Thanks for the help, I have tried to reference in the Worksheet, however, it reverts to the Workbook name.

I get the #NAME? error, or #N/A error

I am at a lose of what to do, as I have used the same formula in a different cell, referencing to another Worksheet (and different Named ranges) and it works ok.
 
Upvote 0
Can you post the exact reference you have in the "Refers to" box for each name?
 
Upvote 0

Forum statistics

Threads
1,220,965
Messages
6,157,120
Members
451,399
Latest member
alchavar

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