Formula Question

DBaker7777

Board Regular
Joined
Feb 3, 2009
Messages
53
Office Version
  1. 365
  2. 2016
I have an excel sheet the retrieves data from a Sharepoint site. When the data is refreshed and new data populated the target range in my formula updates and the result I get is N/A. The formula I have is =Sumproduct((Results!$A$2:$A$500=C2)*(Results!$G$2:$P$500<>"")). Like I said as soon as a new row of data populates in the Results tab the formula the front part of the formula changes to $A$2:$A$501. How can I prevent that?
 

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.
[TABLE="width: 500"]
<tbody>[TR]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
Try this

=SUMPRODUCT((INDIRECT("A$2:$A$500")=C2)*(INDIRECT("$G$2:$P$500")<>""))

The formula worked when I tested it. How would I reference another sheet in this formula? The sheet I am pulling the data from is on a tab called Results. Thank you for your help
 
Upvote 0
Never mind I think I got it. Thank you again. I typed the name of the sheet in another cell and got this formula:

=SUMPRODUCT((INDIRECT(J329&"!"&"A$2:$A$500")=C317)*(INDIRECT(J329&"!"&"$G$2:$P$500")<>""))
 
Upvote 0

Forum statistics

Threads
1,224,827
Messages
6,181,200
Members
453,022
Latest member
RobertV1609

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