drom
Well-known Member
- Joined
- Mar 20, 2005
- Messages
- 543
- Office Version
- 2021
- 2019
- 2016
- 2013
- 2011
- 2010
- 2007
Hi and Thanks in advance!
I have a excel database eg: range("A1:M50") on the sheet named: Country
the first row of this sheet shows eg: a1=FRANCE, b1=ITaly, c1=Spain and son on
from 2nd row down I show the cities of this countryes.
so eg: A2=Biarritz, A3=Bordeaux, A4=Lyon A5=Marseille, A6=Paris, etc
In one other sheet I have a cell named "rCOuntry", which contains a data validation and shows the first row of the sheet: "Country" so Sheets("Country").range("A1:M1")
Now I would like to create one Dinamic range named "rDB", so when the range("rCOuntry") shows Italy, the dinamic range will get the data from B1 to Bxx being (xx=Dinamic)
I could do 13 dinamic ranges kind of:
rFrance=OFFSET($A$1,1,0,COUNT($A:$A)-1,1)
rItaly=OFFSET($B$1,1,0,COUNT($B:$B)-1,1)
but for sure there is a easyest way
Any IDEA?
I have a excel database eg: range("A1:M50") on the sheet named: Country
the first row of this sheet shows eg: a1=FRANCE, b1=ITaly, c1=Spain and son on
from 2nd row down I show the cities of this countryes.
so eg: A2=Biarritz, A3=Bordeaux, A4=Lyon A5=Marseille, A6=Paris, etc
In one other sheet I have a cell named "rCOuntry", which contains a data validation and shows the first row of the sheet: "Country" so Sheets("Country").range("A1:M1")
Now I would like to create one Dinamic range named "rDB", so when the range("rCOuntry") shows Italy, the dinamic range will get the data from B1 to Bxx being (xx=Dinamic)
I could do 13 dinamic ranges kind of:
rFrance=OFFSET($A$1,1,0,COUNT($A:$A)-1,1)
rItaly=OFFSET($B$1,1,0,COUNT($B:$B)-1,1)
but for sure there is a easyest way
Any IDEA?