Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
SSR
 
Posts: n/a
Default Lookup List to Index

Hello,

I have a sheet with 2 columns as Below
A B
1 Apples 1
2 Oranges 3
3 Bannanas 2

Cells in Column A have data validation with values say
Apples
Bannanas
Oranges

What I want in Cells of Column B is the Index i,e the Number 1 or 2 or 3 as
and when "Apples" or "Bannanas" or "Oranges" are selected


is this possible without using any macro but with Worksheet formulas?

Regards,
SSR


  #2   Report Post  
R.VENKATARAMAN
 
Posts: n/a
Default

create a named range somewhere e..g <fruits
the range will be

apple 1
orange 2
bananas 3

in the columb B of your data type
=VLOOKUP(A15,fruits,2,FALSE)
as you enter in column A by validation list automatically the appropriate
index will be entered in column B.
==============================



SSR wrote in message
...
Hello,

I have a sheet with 2 columns as Below
A B
1 Apples 1
2 Oranges 3
3 Bannanas 2

Cells in Column A have data validation with values say
Apples
Bannanas
Oranges

What I want in Cells of Column B is the Index i,e the Number 1 or 2 or 3

as
and when "Apples" or "Bannanas" or "Oranges" are selected


is this possible without using any macro but with Worksheet formulas?

Regards,
SSR




  #3   Report Post  
Bob Phillips
 
Posts: n/a
Default

It is if you put the items in a table elsewhere on the sheet, say H1:H10,
and use that range in your DV list. Then in B1 use

=MATCH(A1,H1:H10,0)

--
HTH

Bob Phillips

"SSR" wrote in message
...
Hello,

I have a sheet with 2 columns as Below
A B
1 Apples 1
2 Oranges 3
3 Bannanas 2

Cells in Column A have data validation with values say
Apples
Bannanas
Oranges

What I want in Cells of Column B is the Index i,e the Number 1 or 2 or 3

as
and when "Apples" or "Bannanas" or "Oranges" are selected


is this possible without using any macro but with Worksheet formulas?

Regards,
SSR




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, index, match, offset, etc. [email protected] Excel Worksheet Functions 2 January 3rd 05 08:51 PM
Index table lookup anomaly Carole O Excel Worksheet Functions 9 December 9th 04 04:33 PM
Lookup values in a list and return multiple rows of data Amanda L Excel Worksheet Functions 2 December 2nd 04 04:48 PM
Lookup with logic Former Excel Queen Excel Worksheet Functions 1 November 3rd 04 11:22 AM
Lookup value in colA whos row matches row of index value in colB Gwen Frishkoff Excel Worksheet Functions 3 October 30th 04 09:07 PM


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