Excel - VLOOKUP returning #VALUE -
yesterday asked this question. tried out vlookup formula seeing how useful was, have run strange error can't seem fix. have following row of data
probabilities| 1%, 1.9%, 4.6%, 9.3%, 16.2%, 25.9%, 37.5%, 50%, 62.5%, 74.1%, 83.8%, 90.7%, 95.4%, 98.1% each item in it's own cell on separate sheet called "probability". on first sheet have =vlookup("probabilities",probability!$a$1:$o$1,a2+1,false) a2 number between 3 , 17. if a2 1, row header, "probabilities". if a2 >= 2 error: argument out of range: <whatever a2 +1>. i've tried adding headers, changing tables values integers or ="<some text>" see if didn't % symbol. cell a2 result of formula, tried type numbers directly cell well, , replacing a2 in formula number. i'm guessing issue not index. don't know what. in advance help. let me know if more info needed
if understand question correctly, want specific probability one-row table in sheet "probability". table has label in cell a1 , cells probability amounts spanning columns b through o. formula in cell a2 computes index number nth value in probability table. trying find formula return nth value.
this should work:
=offset(probability!$a$1,0,$a$2,1,1) the syntax offset "offset(cell_reference, row_offset, column_offset, height_in_rows, width_in_columns)", cell_reference anchor cell , row , column offsets indicate how many cells down (up if row offset negative) , right (left if column offset negative) want return value.
your formula should work (at least worked on machine). did #ref! error when used index value more number of columns in probability table, #n/a error when value string, , #value error when a2 sum of number , string.
Comments
Post a Comment