Help with Sumproduct!!!

trone77

Board Regular
Joined
Dec 28, 2009
Messages
136
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)
 

Some videos you may like

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.

trone77

Board Regular
Joined
Dec 28, 2009
Messages
136
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,934
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
136
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?
 

Subscribe on YouTube

Watch MrExcel Video

Forum statistics

Threads
1,106,329
Messages
5,510,643
Members
408,806
Latest member
Hunlight

This Week's Hot Topics

  • Turn fraction around
    Hello I need to turn a fraction around, for example I have 1/3 but I need to present as 3/1
  • TIme Clock record reformatting to ???
    Hello All, I'd like some help formatting this (Tbl-A)(Loaded via Power Query) [ATTACH type="full" width="511px" alt="PQdata.png"]22252[/ATTACH]...
  • TextBox Match
    hi, I am having a few issues with my code below, what I need it to do is when they enter a value in textbox8 (QTY) either 1,2 or 3 the 3 textboxes...
  • Using Large function based on Multiple Criteria
    Hello, I can't seem to get a Large formula to work based on two criteria's. I can easily get a oldest value based one value, but I'm struggling...
  • Can you check my code please
    Hi, Im going round in circles with a Compil Error End With Without With Here is the code [CODE=rich] Private Sub...
  • Combining 2 pivot tables into 1 chart
    Hello everyone, My question sounds simple but I do not know the answer. I have 2 pivot tables and 2 charts that go with this. However I want to...
Top