Help with Sumproduct!!!

trone77

Board Regular
Joined
Dec 28, 2009
Messages
152
Office Version
  1. 2019
Platform
  1. Windows
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

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.
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)
 
Upvote 0
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?
 
Upvote 0
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?
 
Upvote 0
Disregard the previous post, I got it to work....thanks!!!
 
Upvote 0

Forum statistics

Threads
1,214,968
Messages
6,122,506
Members
449,089
Latest member
RandomExceller01

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