Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 28
Default Finding all elements in a database

I have a worksheet where the user enters a state abbreviation in B1 (i.e. UT)
in a query sheet. I want to find the associated state information located in
another sheet in the same workbook.

The query worksheet would look like this:
A1 B1 C1 D1
List state abbrev ut Available Plan 1 Available Plan 2


The database looks like this:
Abbreviation State_Name Available Plan 1 Available Plan 2
AK ALASKA Choice Value
AL ALABAMA Premier Protect
UT ARKANSAS Choice Value


I want C2 to show "Choice" and D2 to show "Value".

Any help would be appreciated.

Thanks!




--
Lady
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,520
Default Finding all elements in a database

Assuming you have you data in Sheet2; in Sheet1 C1 use the below formula.
Please change the data rows to suit your requirment. I have taken this as 20.

=INDEX(Sheet2!C1:C20,MATCH($B$1,Sheet2!$A$1:$A$20, 0))
copy the same to D1

Alternatively you can use VLOOKUP()

Sheet1 C1
=VLOOKUP($B$1,Sheet2!$A$1:$D$25,3,FALSE)

Sheet1 D1
=VLOOKUP($B$1,Sheet2!$A$1:$D$25,4,FALSE)

If this post helps click Yes
---------------
Jacob Skaria


"Lady Success" wrote:

I have a worksheet where the user enters a state abbreviation in B1 (i.e. UT)
in a query sheet. I want to find the associated state information located in
another sheet in the same workbook.

The query worksheet would look like this:
A1 B1 C1 D1
List state abbrev ut Available Plan 1 Available Plan 2


The database looks like this:
Abbreviation State_Name Available Plan 1 Available Plan 2
AK ALASKA Choice Value
AL ALABAMA Premier Protect
UT ARKANSAS Choice Value


I want C2 to show "Choice" and D2 to show "Value".

Any help would be appreciated.

Thanks!




--
Lady

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
question about SUM - how to sum each for elements [email protected] Excel Worksheet Functions 5 February 5th 09 09:57 AM
Protection elements Eva Excel Discussion (Misc queries) 2 February 16th 07 09:58 AM
Finding duplicated elements in a list M.A.A.C Excel Discussion (Misc queries) 2 November 23rd 06 12:13 PM
Finding how many events since last occurence in a database list Tony the Bajan Excel Worksheet Functions 3 November 2nd 06 10:32 PM
Finding source of linkied Database?? mattylance Excel Discussion (Misc queries) 1 June 25th 06 10:44 PM


All times are GMT +1. The time now is 06:40 PM.

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

About Us

"It's about Microsoft Excel"