Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 18
Default Information dependent on other information

I have a workbook with 3 sheets. In sheet "COVER" there are 2 cells,
A1 & A2. In cell A1 there is a drop down list that has the names of
states...In cell A2 there is a drop down list that has the names of
the cities in those states. Its set up where the list in A2 only shows
the cities in the state selected in A1.

In sheet "LOCATION" there is a list of states, in column A, a list of
cities within those states in column B, and a number associated with
each city in column C.

In sheet "PRODUCT" i need it to have the ability so that when a
certain state & city are selected in sheet "COVER" that the assicated
number with that city (listed in sheet "LOCATION") is copied into cell
A1 in sheet "PRODUCT". And if a state is selected and not a city, in
sheet "COVER" that an average of all the number within that particular
state is copied into cell A1 in sheet "PRODUCT".

I can get it to work with the states but when i try to factor in the
cities i'm having trouble. My code so far is:

=IF(COVER!B16="Alabama",LOCATIONSTATE!C2,IF(COVER!
B16="ALASKA",LOCATIONSTATE!C3,0)) etc.....

An example of how the information in the "LOCATION" sheet looks:

Alabama
Birmingham 1.01
Tuscalossa .85

Alaska
Anchorage .5
Fairbanks .75

Anyone have an idea of how i can get this to work?
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Pivot table cutting information of a part of the information ASR Excel Discussion (Misc queries) 1 November 5th 09 02:09 PM
Should allow data validation dependent lisand type information as ASR Excel Discussion (Misc queries) 0 September 28th 09 08:19 AM
Replace information based on existing information brownti via OfficeKB.com Excel Programming 0 July 26th 07 04:03 PM
"Pulling" up dependent information from several rows to one row YI Angi Excel Discussion (Misc queries) 1 February 10th 07 02:51 PM
Bringing in information from one worksheet to another dependent on the 2nd B Smith[_2_] Excel Programming 5 May 12th 05 10:01 PM


All times are GMT +1. The time now is 03:47 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"