ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Giving numers value to selections (https://www.excelbanter.com/excel-discussion-misc-queries/88840-giving-numers-value-selections.html)

the dude

Giving numers value to selections
 

Hi guys,
I have a worksheet in which the cell A1 can have 3 different values
(yes, no, maybe) through the validation data option. I would like to
link the A1 cell to a cell B1 in another workbook, and I would like to
give a different number per every value (let's say that I want to have
the value 1 in B1 for the value "yes" in A1, 2 in B1 for the value "no"
in A1 and 3 in B1 for the value "maybe" in A1). How can I do that???
thanks a lot
the dude


--
the dude
------------------------------------------------------------------------
the dude's Profile: http://www.excelforum.com/member.php...o&userid=32838
View this thread: http://www.excelforum.com/showthread...hreadid=542506


Dave Peterson

Giving numers value to selections
 
=VLOOKUP(Sheet1!A1,{"yes",1;"no",2;"maybe",3},2,FA LSE)

or

=VLOOKUP([book1.xls]Sheet1!A1,{"yes",1;"no",2;"maybe",3},2,FALSE)




the dude wrote:

Hi guys,
I have a worksheet in which the cell A1 can have 3 different values
(yes, no, maybe) through the validation data option. I would like to
link the A1 cell to a cell B1 in another workbook, and I would like to
give a different number per every value (let's say that I want to have
the value 1 in B1 for the value "yes" in A1, 2 in B1 for the value "no"
in A1 and 3 in B1 for the value "maybe" in A1). How can I do that???
thanks a lot
the dude

--
the dude
------------------------------------------------------------------------
the dude's Profile: http://www.excelforum.com/member.php...o&userid=32838
View this thread: http://www.excelforum.com/showthread...hreadid=542506


--

Dave Peterson


All times are GMT +1. The time now is 11:45 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com