I want to have the spreadsheet randomly pick a cell from cells defined by certain rows and columns, in this case columns A–Y and rows 5–17. I think this is the formula that’ll do it, predicated on cell BA3 randomly generating a number between 1 and 25:
=CONCATENATE(IF(BA3=1),“A”,(IF(BA3=2),“B”,(IF(BA3=3),“C”,(IF(BA3=4),“D”,(IF(BA3=5),“E”,(IF(BA3=6),“F”,(IF(BA3=7),“G”,(IF(BA3=8),“H”,(IF(BA3=9),“I”,(IF(BA3=10),“J”,(IF(BA3=11),“K”,(IF(BA3=12),“L”,(IF(BA3=13),“M”,(IF(BA3=14),“N”,(IF(BA3=15),“O”,(IF(BA3=16),“P”,(IF(BA3=17),“Q”,(IF(BA3=18),“R”,(IF(BA3=19),“S”,(IF(BA3=20),“T”,(IF(BA3=21),“U”,(IF(BA3=22),“V”,(IF(BA3=23),“W”,(IF(BA3=24),“X”,“Y”))))))))))))))))))))))),RANDBETWEEN(5,17))
But commas are auto-replaced by tildes by LibreOffice Calc, thus:
=CONCATENATE(IF(BA3=1),“A”,(IF(BA3=2)~“B”~(IF(BA3=3)~“C”~(IF(BA3=4)~“D”~(IF(BA3=5)~“E”~(IF(BA3=6)~“F”~(IF(BA3=7)~“G”~(IF(BA3=8)~“H”~(IF(BA3=9)~“I”~(IF(BA3=10)~“J”~(IF(BA3=11)~“K”~(IF(BA3=12)~“L”~(IF(BA3=13)~“M”~(IF(BA3=14)~“N”~(IF(BA3=15)~“O”~(IF(BA3=16)~“P”~(IF(BA3=17)~“Q”~(IF(BA3=18)~“R”~(IF(BA3=19)~“S”~(IF(BA3=20)~“T”~(IF(BA3=21)~“U”~(IF(BA3=22)~“V”~(IF(BA3=23)~“W”~(IF(BA3=24)~“X”~“Y”))))))))))))))))))))))),RANDBETWEEN(5,17))
I’m running LibreOffice 4.2.8.2 (build 4.2.8.2-6.fc20), English, which version I’m told is at its end-of-life, but which is still auto-updated by Fedora 20 Linux, English, itself being auto-updated.
The resulting formula does not do the desired job. What should I do?
Thanks.