Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default Looking up information and returning a value

I have an Excel worksheet where I'm trying to display a value in a field
based on the state selected in another field.

For example if the state is TX, the value is 100, if the State is FL, the
value is 120 etc.

I have the states listed on a worksheet in column A and the corresponding
values in column B.

Then I set up the second worksheet, same workbook with my other information.
On this worksheet I want to select a state from a drop down (which I've
done) and based on that selection populate the next cell (i.e. E1) with the
appropriate value based on my look up table.

How do I do this?

Your help is much appreciated.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,886
Default Looking up information and returning a value

Hi

On sheet2, in cell E1
=IF($D1="","",VLOOKUP($D1,Sheet1!$A$1:$B$100,2,0))
Copy down as required

--
Regards

Roger Govier


"Camp7640" wrote in message
...
I have an Excel worksheet where I'm trying to display a value in a
field
based on the state selected in another field.

For example if the state is TX, the value is 100, if the State is FL,
the
value is 120 etc.

I have the states listed on a worksheet in column A and the
corresponding
values in column B.

Then I set up the second worksheet, same workbook with my other
information.
On this worksheet I want to select a state from a drop down (which
I've
done) and based on that selection populate the next cell (i.e. E1)
with the
appropriate value based on my look up table.

How do I do this?

Your help is much appreciated.



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,047
Default Looking up information and returning a value

Hi Camp,

your drop down should refers to one cell (lets say H1), where excel will
return 1, 2, 3, etc depending each state you choose.

create a new column in your tabe to have:

A B C
1 1 FL 120
2 2 NW 80
3 3 TX 100

have notice that the new A column has an auxiliar "ID"

on E1 use =vlookup(H1,WS1!a2:c51,3,false)

I consider WS1 the worksheet where you have you table

hth
--
regards from Brazil
Thanks in advance for your feedback.
Marcelo



"Camp7640" escreveu:

I have an Excel worksheet where I'm trying to display a value in a field
based on the state selected in another field.

For example if the state is TX, the value is 100, if the State is FL, the
value is 120 etc.

I have the states listed on a worksheet in column A and the corresponding
values in column B.

Then I set up the second worksheet, same workbook with my other information.
On this worksheet I want to select a state from a drop down (which I've
done) and based on that selection populate the next cell (i.e. E1) with the
appropriate value based on my look up table.

How do I do this?

Your help is much appreciated.

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default Looking up information and returning a value

Thanks! Worked like a charm

"Marcelo" wrote:

Hi Camp,

your drop down should refers to one cell (lets say H1), where excel will
return 1, 2, 3, etc depending each state you choose.

create a new column in your tabe to have:

A B C
1 1 FL 120
2 2 NW 80
3 3 TX 100

have notice that the new A column has an auxiliar "ID"

on E1 use =vlookup(H1,WS1!a2:c51,3,false)

I consider WS1 the worksheet where you have you table

hth
--
regards from Brazil
Thanks in advance for your feedback.
Marcelo



"Camp7640" escreveu:

I have an Excel worksheet where I'm trying to display a value in a field
based on the state selected in another field.

For example if the state is TX, the value is 100, if the State is FL, the
value is 120 etc.

I have the states listed on a worksheet in column A and the corresponding
values in column B.

Then I set up the second worksheet, same workbook with my other information.
On this worksheet I want to select a state from a drop down (which I've
done) and based on that selection populate the next cell (i.e. E1) with the
appropriate value based on my look up table.

How do I do this?

Your help is much appreciated.

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,047
Default Looking up information and returning a value

glad to help, thanks for the feedback

--
regards from Brazil
Thanks in advance for your feedback.
Marcelo



"Camp7640" escreveu:

Thanks! Worked like a charm

"Marcelo" wrote:

Hi Camp,

your drop down should refers to one cell (lets say H1), where excel will
return 1, 2, 3, etc depending each state you choose.

create a new column in your tabe to have:

A B C
1 1 FL 120
2 2 NW 80
3 3 TX 100

have notice that the new A column has an auxiliar "ID"

on E1 use =vlookup(H1,WS1!a2:c51,3,false)

I consider WS1 the worksheet where you have you table

hth
--
regards from Brazil
Thanks in advance for your feedback.
Marcelo



"Camp7640" escreveu:

I have an Excel worksheet where I'm trying to display a value in a field
based on the state selected in another field.

For example if the state is TX, the value is 100, if the State is FL, the
value is 120 etc.

I have the states listed on a worksheet in column A and the corresponding
values in column B.

Then I set up the second worksheet, same workbook with my other information.
On this worksheet I want to select a state from a drop down (which I've
done) and based on that selection populate the next cell (i.e. E1) with the
appropriate value based on my look up table.

How do I do this?

Your help is much appreciated.

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
returning offset row from excel table destrolennox Excel Discussion (Misc queries) 4 July 18th 06 10:58 PM
Returning a Value by Matching Two Columns of Data Christine Edwards Excel Worksheet Functions 5 May 10th 06 07:28 PM
Vlookup returning Hyperlinks Shannon W. Excel Worksheet Functions 5 February 10th 06 03:46 PM
Returning multiple corresponding values using lookup in a list Wk Excel Discussion (Misc queries) 2 January 25th 06 10:56 PM
Help comparing data and returning information... dcjames Excel Worksheet Functions 1 April 5th 05 04:58 PM


All times are GMT +1. The time now is 01:50 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"