Indirect function

Tornado1981

Board Regular
Joined
Apr 1, 2010
Messages
248
hi,

Can anyboby plz help me solving this problem ?
I have 3 cells (A1,B1 & C1)
In A1 I have a data validation list named "AAA" and containing "USA" & "Canada"
In B1, a data validation list named "BBB" and containing "States" & "Cities"

What I want to do is that:
1) If I choose USA from A1 and States from B1 .. A list containing "Texas","California" & "Illinois" appears in C1.
2) If I choose USA from A1 and Cities from B1 .. A list containing "New York","Washington DC" & "Las Vegas" appears in C1.
3) If I choose Canada from A1 and States from B1 .. A list containing "Ontario","Quebec" & "Alberta" appears in C1.
4) If I choose canada from A1 and citiesfrom B1 .. A list containing "Toronto","Victoria" & "Regina" appears in C1.

Is that possible plz ??

Thank u in advance.
 

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.
the problem is not in the direct function .. the problem is that there will be states assigned to USA and others to Canada
i mean how i could differentiate between USA states and Canada states and the same for cities
 
Upvote 0
hi,

Can anyboby plz help me solving this problem ?
I have 3 cells (A1,B1 & C1)
In A1 I have a data validation list named "AAA" and containing "USA" & "Canada"
In B1, a data validation list named "BBB" and containing "States" & "Cities"

What I want to do is that:
1) If I choose USA from A1 and States from B1 .. A list containing "Texas","California" & "Illinois" appears in C1.
2) If I choose USA from A1 and Cities from B1 .. A list containing "New York","Washington DC" & "Las Vegas" appears in C1.
3) If I choose Canada from A1 and States from B1 .. A list containing "Ontario","Quebec" & "Alberta" appears in C1.
4) If I choose canada from A1 and citiesfrom B1 .. A list containing "Toronto","Victoria" & "Regina" appears in C1.

Is that possible plz ??

Thank u in advance.

the problem is not in the direct function .. the problem is that there will be states assigned to USA and others to Canada
i mean how i could differentiate between USA states and Canada states and the same for cities

Create the following in A:F on a sheet called DVLists...
AAABBBUSAstatesUSAcitiesCANADAstatesCANADAcities
USAStatesTexasNew YorkTorontoToronto
CANADACitiesCaliforniaWashington DCQuebecVictoria
IllinoisLas VegasAlbertaRegina

<colgroup><col style="width: 48pt;" span="2" width="64"> <col style="width: 68pt; mso-width-source: userset; mso-width-alt: 3242;" width="91"> <col style="width: 97pt; mso-width-source: userset; mso-width-alt: 4579;" width="129"> <col style="width: 85pt; mso-width-source: userset; mso-width-alt: 4039;" width="114"> <col style="width: 75pt; mso-width-source: userset; mso-width-alt: 3555;" width="100"> <tbody>
</tbody>

Name on DVLists...

A2:A3 as AAA
B2:B3 as BBB
C2:C4 as USAstates
D2:D4 as USAcities
E2:E4 as CANADAstates
F2:F4 as CANADAcities

On Sheet1, create in:

DV list in A1 with as Source: AAA
DV list in B1 with as Source: BBB
DV list in C1 with as Source:

=INDIRECT(A1&B1)
 
Upvote 0

Forum statistics

Threads
1,215,455
Messages
6,124,935
Members
449,195
Latest member
Stevenciu

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