nparsons75

Well-known Member
Joined
Sep 23, 2013
Messages
1,254
Office Version
  1. 2016
Hi I have two identical tables, one on a sheet named March, another on a sheet named dashboard. I need to return the data from march into dashboard, simply by selecting a month from a dropdown list.

I will have the same as march but for each month of the year, by selecting the month on dashboard, the relevant data with appear on dashboard.

I think it will need index match but not sure. all help appreciated.
 

Excel Facts

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.
You can use indirect for a dynamic range...

Assumming A1 has sheet name...

Code:
=INDIRECT(A1&"!A1")
that would reference A1 on the sheet selected in A1 of the current sheet, your index function index range will use the indirect
 
Last edited:
Upvote 0
Hi, thanks for the reply...I have no idea how to use index match, I just thought it would need something like that. How would I use the formula you show, would these be part of an index match formula?
 
Upvote 0
oh yeah... you would do... and im just using random ranges...

Assuming A1 has the sheet name where you are searching, B1 is your lookup value, column A on the other sheet is what you want to return based on the value in column B ...

Code:
=INDEX(INDIRECT(A1&"!A:A"),MATCH(B1,INDIRECT(A1&"!B:B"),0))

instead of writing... Sheet2!A:A like how you would for an excel formula... you are building it as a string... A1 & "!A:A" ... then that goes in INDIRECT -> and Excel will convert the string into a range and use it in the formula like normal
 
Last edited:
Upvote 0

Forum statistics

Threads
1,213,527
Messages
6,114,144
Members
448,552
Latest member
WORKINGWITHNOLEADER

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