Sumproduct (with vlookup)

tmontana

Board Regular
Joined
May 13, 2009
Messages
79
I have a data table with monthly amounts starting in Jan-2011 to Dec-2050 (480 months/columns) from columns C to RO. In column A, I have the property number and in column B I have the definition of the cashflow item (i.e. NOI, Rent, Expenses, etc.). There are 29 properties and multiple cashflow items.

I would like to sum the monthly amounts based on a start and end period for a specific property number and cashflow item.

The formula:

=SUMPRODUCT(--(Sheet2!$A$1:$A$78="IPP1"),--(Sheet2!$B$1:$B$78="NOI"),--(Sheet2!$D$1:$RO$1>=AM$1),--(Sheet2!$D$1:$RO$1<=AM$2),Sheet2!$A$1:$RO$78)

doesn't seem to work. I know with sumproduct the arrays need to be the same and in this case they are not. Should i be combining this with vlookup and if so how?

Thanks
 

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.
Does this yield the expected result:

Code:
=SUM(IF(Sheet2!$A$2:$A$78="IPP1",IF(Sheet2!$B$2:$B$78="NOI",IF(Sheet2!$D$1:$RO$1>=AM$1,IF(Sheet2!$D$1:$RO$1<=AM$2,Sheet2!$D$2:$RO$78)))))
Which is an array formula and therefore needs committing with CTRL+SHIFT+ENTER.

Matty
 
Upvote 0
It doesn't seem to work. I'm getting NA. The formula picks out the correct row, but it is not looking up the correct dates.
 
Upvote 0

Forum statistics

Threads
1,224,595
Messages
6,179,798
Members
452,943
Latest member
Newbie4296

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