UPDATE This worked (in 2007, I reckon), but not in Excel 2013.
EXCEL 2013: This is not quite the same, but if you can put 0.4 in one cell (e.g. B1) and the text value A1 in another cell (C1, say), in cell D1, you can use = B1 * INDIRECT ( C1), which leads to the calculation of the value 0.4 * A1. So, if A1 = 10, you get 0.4 * 10 = 4 in cell D1. I will update again if I find the best solution for 2013, and I'm sorry that Microsoft destroyed the original INDIRECT functionality!
EXCEL 2007 Version: For a solution other than VBA, use the INDIRECT formula. It takes a string as an argument and converts it into a cell reference.
For example, = 0.4 * INDIRECT ("A1") will return a value of 0.4 * the value that is in cell A1 of this sheet.
If cell A1 was, say, 10, then = 0.4 * INDIRECT ("A1") will return 4.
wardw123 04 Oct '12 at 20:22 2012-10-04 20:22
source share