What is an alternative to Index function?

colinheslop1984

Board Regular
Joined
Oct 14, 2016
Messages
129
Office Version
  1. 2016
Currently using this formula to sum information from a large workbook. I want to link 5 workbooks so that certain info from workbook 1 will be visible all other workbooks and vice versa.

=SUMIF(INDIRECT("'"&$K$9&"'!c$12:c$25"),F$10:F$23,INDIRECT("'"&$K$9&"'!h$12:h$25"))

only problem with the above formula is that it returns the #REF error unless all workbooks are open.

What would be the alternative work around?
 

Excel Facts

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand
Why are you using INDIRECT?

FYI SUMIF also won’t work with a closed workbook, but you can use SUMPRODUCT instead.
 
Upvote 0
I have a 5 workbooks each laid out the same, gathering info for 4 locations. Each workbook has 104 sheets within it containing data, 1 week = 1 sheet, 2 years of data.

I have an overview page on each workbook that lets me filter which weeks I want to view the data for (K9 in the below formula refers to this filter, hence the indirect). But then the data also has to meet a criteria (c12:c25, which are just names). This works fine for each individual workbook.

=SUMIF(INDIRECT("'"&$K$9&"'!c$12:c$25"),F$10:F$23,INDIRECT("'"&$K$9&"'!h$12:h$25"))

I just want to take the same concept of this formula to gather info for the same ranges from each of the 5 workbooks in just the same way, satisfying the criteria but for the info to be visible on each individual workbook, without them all being open. Below is what I have for the minute, which works if the source sheets are open.

=SUMIF(INDIRECT("'[JAMIE SHEET LEEDS.xlsx]"&$C$5&"'!C$12:C$25"),$C9,INDIRECT("'[JAMIE SHEET LEEDS.xlsx]"&$C$5&"'!J$12:J$25"))

I just want an alternative solution/function/formula to get the results I need

Hope that makes sense
 
Upvote 0
Honestly, that’s a terrible setup for reporting. You should really be using a database, or any layout that doesn’t involve so many separate sheets.

Do you have a database program you could use? Or Power Query?
 
Upvote 0
Nope haven't got anything like that.

Not sure how else to lay the info out. Im just sticking to what I know but have hit a wall
 
Upvote 0

Forum statistics

Threads
1,216,037
Messages
6,128,442
Members
449,453
Latest member
jayeshw

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