INDIRECT function

Mary Bizmax

New Member
Joined
Aug 12, 2018
Messages
4
Hi guys

Love Mr Excel and usually I can figure out what I need but am going round in circles here, so help would be much appreciated.

In my workbook I have a sheet called "Summary" where I am picking up information for each month. The names of the months are in this sheet in cells B1 to M1. e.g. "Apr" in is cell B1, "May" in C1 etc.

I then have a sheet for each month with same naming convention e.g. "Apr", "May" etc. I've got various formula in the summary sheet to reference the individual sheets, just wondering how I can insert the name of the sheet within the formula by referencing the names of the months? Example formula is =IFERROR(INDEX(Apr!$V:$V,MATCH(Summary!$A3,Apr!$U:$U,0)),"") So I would like to substitute the Apr bit with B1, but not sure how to do this.

Thanks

Mary
 

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.
Assuming your month names are strings and not dates formatted as "mmm", try:
Code:
=IFERROR(INDEX(INDIRECT(B1&"!$V:$V"),MATCH(Summary!$A3,INDIRECT(B1&"!$U:$U"),0)),"")
 
Upvote 0

Forum statistics

Threads
1,224,822
Messages
6,181,165
Members
453,021
Latest member
Justyna P

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