Referencing Other Worksheets within same workbook/Indirect cells

Theteam

New Member
Joined
Feb 27, 2017
Messages
1
Hi

I've looked around the forums and tried a few things but still unable to get the solution i'm looking for and hope you can help.

I'm currently using this formula on a summary page of a workbook.....

=SUMIF(INDIRECT("'"&$D$61&"'!$A:$A"),$C9,(INDIRECT("'"&$D$61&"'!$V:$V")))


- Summary sheet - the formula is in this sheet.
- D61 contains text (Jan Data) which refers to another sheet within the workbook.
- A:A is the range in Jan Data and contains the word i'm looking for (Apples) as well as pears, oranges etc.
- C9 is on the summary page and contains the text to match (Apples)
- V:V is the range in Jan Data containing the numbers (summed) that I need returning

So far so good. The formula looks at Jan Data, picks out the rows with Apples, sums those rows and returns the correct data. The idea of using indirect is that I can change D61 every month to read Feb Data, Mar Data......and not change anything else.

However, I need to change the range every month as the columns change (which i'd like to do automatically.. the whole point of the workbook). I've set up lookup tables in the Summary sheet so that I know which column the relevant data is in but I can't find a way of feeding this into the formula so it picks it up automatically. Ideally i'd put a cell reference (A1) (with the range in, A:A) which I then refer to in place of !$A:$A". Obviously this doesn't work as it looks at A1 in Jan Data.

Hope I didn't go on too long. Any ideas gratefully received.

Liam
 

Excel Facts

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK

Forum statistics

Threads
1,214,614
Messages
6,120,517
Members
448,968
Latest member
Ajax40

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