It's me again:
I want 2 cells to display the following:
1: A hyperlink to a random cell in a particular column
2: A hyperlink to recalculate the spreadsheet (to generate another random hyperlink in the cell above, but obviously it need not be linked, literally to 'refresh').
Now, I can't find anything about number 2, but for number 1 I tried the following:
But it keeps coming up with can't open file - obviously it's trying to open an external file. I've tried with quote marks around different bits, for example "ADDRESS.....H))"=HYPERLINK((ADDRESS(INT(RAND()*100),COLUMN(H:H))),"Random User")
Thanks once again for any help rendered guys.
Lake54
Last edited by lake54; 05-15-2009 at 03:10 PM. Reason: Thread Solved
For number 1: Change formula to:
=HYPERLINK(("#"&ADDRESS(INT(RAND()*100),COLUMN(H:H))),"Random User")
Not sure exactly what you mean with #2
Microsoft MVP - Excel
Where there is a will there are many ways. Pick One!
Please read the Forum Rules
If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below
Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.
Preferred Charities: Lupus Canada and Sick Kids Foundation.
Feel Free to Donate if you want to, for the assistance you received today.
Thanks, that worked great!
And I've just realised that Number two has now been made obsolete.
I'll mark as solved now.
Sooner or later, int(rand()*100) will return zero, giving an invalid address.
=HYPERLINK("#R" & INT(RAND()*100 + 1) & "C8", "Random User")
Microsoft MVP - Excel
Entia non sunt multiplicanda sine necessitate
Since RAND() is already volatile... you can still use ADDRESS() function can't you?
=HYPERLINK(("#"&ADDRESS(INT(RAND()*100+1),COLUMN(H:H))),"Random User")
Microsoft MVP - Excel
Where there is a will there are many ways. Pick One!
Please read the Forum Rules
If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below
Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.
Preferred Charities: Lupus Canada and Sick Kids Foundation.
Feel Free to Donate if you want to, for the assistance you received today.
Sorry - only just noticed I had more replies!
Both work for me, but I've chosen shg's method, and changed 100 to 10,000 (without the comma) because the values were quite small (there's always going to be around 200,000 rows, and someone needs to be able to go to a random row at any time).
Thanks for your help once again :-)
Apparently I had R1C1 on the brain:
=HYPERLINK("#H" & INT(RAND()*100) + 1, "Random User")
Microsoft MVP - Excel
Entia non sunt multiplicanda sine necessitate
So should I be using the latest suggestion, shg?
Any of the many are fine. Pick one that tickles your fancy.
Last edited by shg; 05-15-2009 at 04:27 PM.
Microsoft MVP - Excel
Entia non sunt multiplicanda sine necessitate
OK thanks - I've kept with the one I said earlier as I now have 2 formats of the same spreadsheet, all zipped up and emailed out now lol.
I'm sure I'll be back in the future guys - this is really great for a forum!
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks