Range based on two different cells.

Jakub3

New Member
Joined
Jul 15, 2020
Messages
4
Office Version
  1. 365
Platform
  1. Windows
Hi guys,

I hope you are well.

I can't seems to figure this one out.

I have two drop down lists, one has weeks: week1, week2... the other has weekdays: Monday, Tuesday...

How do I update range of cells based on this? Week1, Monday would have cells "mysheet!B1:C10 = week1B2:C11! week1 Tuesday would have another range and so on.

I know how to do only one cell using indirect function =INDIRECT("'" & $A$1 & "'!" & $A$2) but how do you translate it to the next cell? Or is there better way than using indirect? VBA can be used too.


Thank you very much in advance.
 

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.
How do I update range of cells based on this? Week1, Monday would have cells "mysheet!B1:C10 = week1B2:C11! week1 Tuesday would have another range and so on.

Not understanding how this would work - A1 contains the word "week1", A2 contains the word "Monday". How does that translate into "mysheet!B1:C10 = week1B2:C11! (assuming you mean week1!B2:C11).
 
Upvote 0
Thank you for the reply Darren.

You are correct, that is wrong. Maybe I could simplify the questions. What would be the best way to get update range of cells from another worksheet based on two variables (sheet and range). I know how to do this for one cell with indirect function. But can I get whole range from one sheet to the other sheet? Thank you in advance.
 
Upvote 0

Forum statistics

Threads
1,215,025
Messages
6,122,731
Members
449,093
Latest member
Mnur

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