Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Using the returned value to look up an item
I have a random number from 1- 371
That points to a cell for example Random number is 233 I want the value of the contents in cell B233 How can I do this |
#2
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Using the returned value to look up an item
One way:
=INDEX(B:B,INT(RAND()*371)+1) In article , Frankd410 wrote: I have a random number from 1- 371 That points to a cell for example Random number is 233 I want the value of the contents in cell B233 How can I do this |
#3
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Using the returned value to look up an item
On Oct 31, 10:22 am, Frankd410
wrote: I have a random number from 1- 371 That points to a cell for example Random number is 233 I want the value of the contents in cell B233 How can I do this Try... =INDEX(B:B,A2) ....where A2 cotains 233. Hope this helps! |
#4
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Using the returned value to look up an item
="B"&RANDBETWEEN(1,371)
Required ATP add-ins "Frankd410" wrote: I have a random number from 1- 371 That points to a cell for example Random number is 233 I want the value of the contents in cell B233 How can I do this |
#5
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Using the returned value to look up an item
That just produces a text value, not the contents of the desired cell...
In article , Teethless mama wrote: ="B"&RANDBETWEEN(1,371) Required ATP add-ins "Frankd410" wrote: I have a random number from 1- 371 That points to a cell for example Random number is 233 I want the value of the contents in cell B233 How can I do this |
#6
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Using the returned value to look up an item
=INDIRECT("B"&INT(RAND()*371)+1) On Oct 31, 10:46 am, JE McGimpsey wrote: That just produces a text value, not the contents of the desired cell... In article , Teethless mama wrote: ="B"&RANDBETWEEN(1,371) Required ATP add-ins "Frankd410" wrote: I have a random number from 1- 371 That points to a cell for example Random number is 233 I want the value of the contents in cell B233 How can I do this- Hide quoted text - - Show quoted text - |
#7
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Using the returned value to look up an item
Not quite... Here is how it works
Sheet1 Table a contains an array 1-371 in cell A1-A371 Cells B1-B371 Contain the value I need Now, I created a random number generator to give me a value of 1-371... That's fine in Sheet2. The next step would be to tell me what is the value of field Bx in Sheet1 if x is the random number created in Sheet2. So for example if the random number generator gives me 233 then I want to know the value of field Sheet1!B233 which is 201 "JE McGimpsey" wrote: One way: =INDEX(B:B,INT(RAND()*371)+1) In article , Frankd410 wrote: I have a random number from 1- 371 That points to a cell for example Random number is 233 I want the value of the contents in cell B233 How can I do this |
#8
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Using the returned value to look up an item
So? Why don't you adapt JE's formula and add the sheet name to it
=INDEX(Sheet1!B:B,INT(RAND()*371)+1) -- Regards, Peo Sjoblom "Frankd410" wrote in message ... Not quite... Here is how it works Sheet1 Table a contains an array 1-371 in cell A1-A371 Cells B1-B371 Contain the value I need Now, I created a random number generator to give me a value of 1-371... That's fine in Sheet2. The next step would be to tell me what is the value of field Bx in Sheet1 if x is the random number created in Sheet2. So for example if the random number generator gives me 233 then I want to know the value of field Sheet1!B233 which is 201 "JE McGimpsey" wrote: One way: =INDEX(B:B,INT(RAND()*371)+1) In article , Frankd410 wrote: I have a random number from 1- 371 That points to a cell for example Random number is 233 I want the value of the contents in cell B233 How can I do this |
#9
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Using the returned value to look up an item
Then one way:
If your random number generator' returns the value in Sheet2!J1, then do a slight modification to my previous formula. =INDEX(Sheet1!B:B,J1) In article , Frankd410 wrote: Not quite... Here is how it works Sheet1 Table a contains an array 1-371 in cell A1-A371 Cells B1-B371 Contain the value I need Now, I created a random number generator to give me a value of 1-371... That's fine in Sheet2. The next step would be to tell me what is the value of field Bx in Sheet1 if x is the random number created in Sheet2. So for example if the random number generator gives me 233 then I want to know the value of field Sheet1!B233 which is 201 "JE McGimpsey" wrote: One way: =INDEX(B:B,INT(RAND()*371)+1) In article , Frankd410 wrote: I have a random number from 1- 371 That points to a cell for example Random number is 233 I want the value of the contents in cell B233 How can I do this |
#10
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Using the returned value to look up an item
Maybe another option:
=OFFSET(B1,RANDBETWEEN(0,370),0,1,1) -- Dana DeLouis "Frankd410" wrote in message ... I have a random number from 1- 371 That points to a cell for example Random number is 233 I want the value of the contents in cell B233 How can I do this |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
same name being returned | Excel Discussion (Misc queries) | |||
#N/A value is returned | Excel Worksheet Functions | |||
Item numbers result in item description in next field in Excel | Excel Worksheet Functions | |||
Selecting an Item from a List and getting a different item to pop. | Excel Worksheet Functions | |||
#Value! Returned ? | Excel Worksheet Functions |