Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
I have 10 text statements in A1:A10. Is it possible to return in A15 1
radom selection from this range, only proviso is that if Z1=0, <blank i.e. don't show anything in A15 Is this possible? |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
One way:
=IF(Z1="","",INDEX(A1:A10,ROUND(RAND()*9,0)+1) -- Biff Microsoft Excel MVP "Sean" wrote in message ... I have 10 text statements in A1:A10. Is it possible to return in A15 1 radom selection from this range, only proviso is that if Z1=0, <blank i.e. don't show anything in A15 Is this possible? |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Put this in A15:
=IF(Z1=0,"",INDIRECT("A"&INT(10*RAND())+1)) Hope this helps. Pete On Feb 20, 6:19*pm, Sean wrote: I have 10 text statements in A1:A10. Is it possible to return in A15 1 radom selection from this range, only proviso is that if Z1=0, <blank i.e. don't show anything in A15 Is this possible? |
#4
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Thanks Pete and T, will test this tomorrow. I guess it will change
based on the sheet calc? |
#5
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
I guess it will change based on the sheet calc?
Yes, *every* time a calculation takes place it will change. If you want it to remain static you could set calculation to manual, or, Enter this formula in B1 and copy down to B10: =RAND() Then, select the range A1:B10 and sort on column B any order, doesn't matter. Then you could use this formula: =IF(Z1="","",A1) -- Biff Microsoft Excel MVP "Sean" wrote in message ... Thanks Pete and T, will test this tomorrow. I guess it will change based on the sheet calc? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Random Selection | Excel Worksheet Functions | |||
Random selection of text cells | Excel Discussion (Misc queries) | |||
Random number selection | Excel Worksheet Functions | |||
Random Selection | New Users to Excel | |||
Random Selection | Excel Worksheet Functions |