Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
I'm trying to find a function(or formula) that will return the relative
position of an item selected in a list of items. For example: from a drop-down list, if you choose the 8th item in the list, the function returns the value "8"; the 3rd item would return the value "3", and so on. Any help would be greatly appreciated! |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
See if this example helps:
A1:A10 contains this list: Alpha Bravo Charlie Delta Echo Foxtrot Golf Hotel India Juliet B1 contains a Data Validation based on that list. This formula returns the postition of the selected B1 item in the source list: C1: =IF(COUNTIF(A1:A10,B1),MATCH(B1,A1:A10,0),"") Is that something you can work with? Post back if you have more questions. -------------------------- Regards, Ron Microsoft MVP (Excel) (XL2003, Win XP) "Bill" wrote in message ... I'm trying to find a function(or formula) that will return the relative position of an item selected in a list of items. For example: from a drop-down list, if you choose the 8th item in the list, the function returns the value "8"; the 3rd item would return the value "3", and so on. Any help would be greatly appreciated! |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
If you want to use a combo box from the Forms toolbar it will return the
relative number of the selected item. Or, if the source for your data validation list is a range of cells, say, X1:X10, and the drop down is in cell A1: Then you can try something like this: =IF(A1="","",MATCH(A1,X1:X10,0)) -- Biff Microsoft Excel MVP "Bill" wrote in message ... I'm trying to find a function(or formula) that will return the relative position of an item selected in a list of items. For example: from a drop-down list, if you choose the 8th item in the list, the function returns the value "8"; the 3rd item would return the value "3", and so on. Any help would be greatly appreciated! |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Return position of 2nd, 3rd, ect occurrence of a character in a st | Excel Discussion (Misc queries) | |||
Return cursor to previous position | Excel Discussion (Misc queries) | |||
Return position for each matching value in entire workbook? | Excel Worksheet Functions | |||
How do I make the true return a drop down list in the IF function? | Excel Worksheet Functions | |||
Formula to return cell position | Excel Worksheet Functions |