Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Formula produces wrong result when data cells filled programmatically
This Formula:
=(IF(E69/50<1,1,E69/50)*3*IF(E69<=0,0,1)*IF(A69=1,0,1)*IF(A69=10,0,1)* IF(A69 =20,0,1))*IF(A69=0,0,1) Produces a wrong result when I use code to put the numbers in cells A and E. I didn't write the formula, my job is to produce some fast and fancy (four levels deep) sorting, but when I write all the data to a recordset and then re-organize the rows, this formula (which is not transposed, all it's references are in the same row) produces a wrong result. For instance with 1 in cell A and 56 in cell E, the answer should be 0, but it produces 3. It works fine when typing values in by hand. I've checked that the number formatting of the cell is not being harmed, all cells are keeping their correct format. (Number, 0 decimals is what the client wants) Bob |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Hide a formula result until cell has been filled | Excel Discussion (Misc queries) | |||
Result of Formula produces Picture? | Excel Worksheet Functions | |||
Fill down produces correct formula but wrong answer | Excel Worksheet Functions | |||
FORMULA PRODUCES WRONG RESULT | Excel Discussion (Misc queries) | |||
Copy Paste of Formula Produces Incorrect Result | Excel Discussion (Misc queries) |