ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Need to have cell C8 contain contents of Cell G(formula) (https://www.excelbanter.com/excel-discussion-misc-queries/84967-need-have-cell-c8-contain-contents-cell-g-formula.html)

Skip

Need to have cell C8 contain contents of Cell G(formula)
 
Need to have cell C8 contain contents of cell
G(=ROUND(RAND()*(10-1)+1,0))
Or something simular.

Cell G(1:10) contain strings that I am trying to randomize just one of the
10 into cell C8.

I am trying to say " =G(ROUND(RAND()*(10-1)+1,0)) " but this does not work.

Can you help??


Dave Peterson

Need to have cell C8 contain contents of Cell G(formula)
 
=indirect("G"&round(rand()*(10-1)+1,0))
or
=index(g1:g10,rand()*(10-1)+1)



Skip wrote:

Need to have cell C8 contain contents of cell
G(=ROUND(RAND()*(10-1)+1,0))
Or something simular.

Cell G(1:10) contain strings that I am trying to randomize just one of the
10 into cell C8.

I am trying to say " =G(ROUND(RAND()*(10-1)+1,0)) " but this does not work.

Can you help??


--

Dave Peterson


All times are GMT +1. The time now is 03:25 AM.

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