Combining Indirect and Sumproduct with Hlookup

erniepoe

Active Member
Joined
Oct 23, 2006
Messages
380
Office Version
  1. 365
Platform
  1. Windows
I got some help on this a few minutes ago but unfortunately it wasn't exactly what I needed, as I had forgotten about one detail.


On my summary page I have the below formula, with the list of months from D20:O20. The user chooses the month from the dropdown list on the summary page, and that list of months is stored on 'ControlsD55,' as per the formula below.


So I'm hoping to modify this formula so that when the user chooses whichever month they want (there are also 12 worksheets named after each month), the indirect formula goes to the 'ControlsD55' to find which worksheet to get the data from, and from there incorporates the lookup so that the list of months from D20:O20 finds its corresponding month in Row 1 of whichever month file it goes to, while also keeping the sumproduct formula as per below.

Any ideas?









IF(E$19=2,(SUMPRODUCT((INDIRECT(Controls!$D$55&"!A2:A430")=Controls!$B$55)*(INDIRECT(Controls!$D$55&"!B2:B430")="Admin")*(INDIRECT(Controls!$D$55&"!C2:C430"))))
 

Excel Facts

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.

Forum statistics

Threads
1,224,586
Messages
6,179,718
Members
452,939
Latest member
WCrawford

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