Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
I am trying to create an excel spreadsheet that will generate a city from a
random province. I create a list of three provinces Table 1 0 Alberta ..34 Saskatchewan ..67 Manitoba I then created the following list Table 2 Alberta Calgary Saskatchewan Regina Manitoba Winnipeg I picked a random province by picking a random number and using that number to reference table 1 A5 = vlookup(rand(),reference to list 1,2) I then tried to pick the capital of the province with another vlookup function, referencing A5 to get the province and matching it with the matching city in Table 2 A6 =vlookup(A5,reference to list 2,2) The result should have been that if A5 returned Manitoba, A6 should find the word Manitoba in the second list and return Winnipeg in A6. This regularily returns results such as Alberta,Regina which is not a viable pair. I don't know what I am doing wrong. Any suggestions would be helpful. Thank You |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
"1235" appears as "One thousand two hundred thirty five" | Excel Discussion (Misc queries) | |||
Amount or Numbers in Words | New Users to Excel | |||
Convert Numeric into Text | Excel Worksheet Functions | |||
Spellnumber | Excel Worksheet Functions | |||
Determning the ROW of a vlookup result | Excel Worksheet Functions |