Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8
Default How can I look up a value from a table and return data for other column

I have a table with 2 columns of data as shown in sample
below.

Col-A Col-B
Apple A
Pear P
Orange O

In a Cell say D1, I used "Data" - "Validation" to create
a dropdown box (combo box) by sellected Col-A as list
which allow me to select from Col-A. However, what
function I can use at the same to also return to me the
corresponding value in column-B instead of the selecte
item ?

E.g Select Pear, the function returns to me letter P.

Any assistance is greatly appreciated.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default How can I look up a value from a table and return data for other column

Application.Vlookup

use the excel worksheet function Vlookup (in VBA).

--
Regards,
Tom Ogilvy


"Wellie" wrote in message
...
I have a table with 2 columns of data as shown in sample
below.

Col-A Col-B
Apple A
Pear P
Orange O

In a Cell say D1, I used "Data" - "Validation" to create
a dropdown box (combo box) by sellected Col-A as list
which allow me to select from Col-A. However, what
function I can use at the same to also return to me the
corresponding value in column-B instead of the selecte
item ?

E.g Select Pear, the function returns to me letter P.

Any assistance is greatly 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
LOOKUP value in a table and return value in first column of same r Eric_G Excel Worksheet Functions 2 December 12th 09 02:51 AM
Find values in table and return row/column name Fluxx Excel Worksheet Functions 8 August 11th 09 08:21 AM
Find a value in a table and return the cell or column reference jgrout Excel Discussion (Misc queries) 3 February 6th 07 06:21 AM
Return a value from a table using Column and row names as input? Olle Excel Discussion (Misc queries) 7 November 23rd 06 05:55 PM
Pivot Table (vlookup 2 column text values, return 1 value) Al Excel Discussion (Misc queries) 1 November 30th 05 01:15 AM


All times are GMT +1. The time now is 04:07 AM.

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"