Join and Calculate

hafiff

Board Regular
Joined
Feb 5, 2008
Messages
65
Hi experts, I am developing three tables: Division, State and City There are multiple divisions, states, and cities as records. First, I created records in Division: North and South. Then, state records like name of states and also records for cities. For example, ABC (east) and XYZ (west) in Division table. In table in State, I created a field to look up a value in Division and I know how to do it by making the field as number, lookup to division table and select it later.

The QUESTION:
When entering records for cities, I created a field with the lookup of which states and this is also easy as it is the same as looking up division as in the State table. However, I also need tohave division to automatically entered if you select the State since the Division in already in State table. How do I write it on City table?

Example:
Division:
1 east
2 west

State
1 California, division = west
2 New York, division = east

City
1 San Francisco, State = California, Division = West (automatically) entered since it is on table State already. How to do it to automatically entered -- OR -- to select the Division based on State input?

I would appreciate of all of you to share this knowledge.

Thank you,
HA
 

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college
Upvote 0
Solution
Thank you for the information and I am now able to perform the lookup using forms and queries.
 
Upvote 0
Glad to see you have a resolution. Maybe you can mark this thread as solved?
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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