Help with Sumproduct!!!

trone77

Board Regular
Joined
Dec 28, 2009
Messages
137
I need a formula that will return the value of a cell from another workbook if it meets a certain criteria. For example, if $F$10 is equal to 15, then it would return the contents of $A$10 on that same row of that worksheet. How could the following formula be revised to do just that.

=SUMPRODUCT(--('[Monthly Tally 2010.XLT]Aug'!$F$8:$F$38=15)
 

Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number

trone77

Board Regular
Joined
Dec 28, 2009
Messages
137
So how would I incorporate the references, would it look like the following?


=index('[Monthly Tally 2010.XLT]Aug'!$A$8:$F$38,Match(15,$F$8:$F$38,0)1)
 

schielrn

Well-known Member
Joined
Apr 4, 2007
Messages
6,939
With Index you don't need to necessarily pass the whole range in the first part:

=index('[Monthly Tally 2010.XLT]Aug'!$A$8:$A$38,Match(15,'[Monthly Tally 2010.XLT]Aug'!$F$8:$F$38,0))

Hope that helps.

You were missing a comma before the 1 at the end of your index formula and don't you need to specify the sheet in your match formula?
 

trone77

Board Regular
Joined
Dec 28, 2009
Messages
137
Tried that formula but still received a #N/A error message. The sheets that I am drawing info from get updated on a daily basis, so some of the cells remain empty until entry, would that affect the formula?
 

Watch MrExcel Video

Forum statistics

Threads
1,133,565
Messages
5,659,569
Members
418,508
Latest member
deepakfer

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
Top