Spreadsheet and programming - Printable Version +- HP Forums (https://www.hpmuseum.org/forum) +-- Forum: HP Calculators (and very old HP Computers) (/forum-3.html) +--- Forum: HP Prime (/forum-5.html) +--- Thread: Spreadsheet and programming (/thread-4948.html) |
Spreadsheet and programming - Arno K - 10-14-2015 09:50 PM I am making a spreadsheet to show my pupils some probability properties, here alternative hypothesis and I want to set the toplines of used columns from a program as well as fill columns automatically. Most convenient would be something like : fill A with values from µ1 to µ2, B and C with according probabilities and delete all the unnecessary stuff below. I can do that with some FOR-Loops and constructing necessary names like B3.. from strings but I am interested in a more convenient way using the top line of the column like in "select B, then =BINOMIAL(N,p,Ax)" Arno RE: Spreadsheet and programming - cyrille de brébisson - 10-15-2015 05:52 AM Hello, I am not 100% sure that I understand what you are trying to do, but here are some pointers Have you looked at the Cell command? It allows you to access Cells by their row/column number (Cell(1,1) <=> A1, Cell(0,1) is column A) You can do A1:AA100(-1):=Cell(0,0) to erase the spreadsheet. It basically sets all cells content and meta data to the value of Cell(0,0), which is a special 0 which is detected as an empty 0 by the spreadsheet. Cell(0,1):='Row'; Cell(0,2):='BINOMIAL(20,0.2,A:A)' might do what you want... Cyrille RE: Spreadsheet and programming - Arno K - 10-15-2015 07:30 AM Thank you for your answer, I am going to try that today. Arno |