Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
the dude
 
Posts: n/a
Default 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

  #2   Report Post  
Posted to microsoft.public.excel.misc
Dave Peterson
 
Posts: n/a
Default 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
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
excel hangs after giving File Open Harpinator Excel Discussion (Misc queries) 1 April 20th 06 05:33 PM
nonadjacent selections schillm228 Excel Worksheet Functions 4 March 22nd 06 12:51 AM
ActiveCell giving blank value itstome New Users to Excel 1 August 30th 05 11:01 PM
ActiveCell giving blank value in vbscript itstome Excel Worksheet Functions 1 August 30th 05 04:24 PM
excell 2000 is giving an error "not enough memory" 3Dbesh Excel Discussion (Misc queries) 1 February 8th 05 11:42 PM


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