Hi, say I have a spreadsheet that calculates the price of each item sold for a number of shops. In each column are the number sold per shop, with the top line being the price per item.
---A------------B--------------C----------------D--------------E
1-------------total-------apples---------oranges-------bananas
2---------------price----------$1--------------$2----------$1.50
3-shop 1--------$13-----------3----------------5
4-shop 2----------$9-----------2----------------2---------------2
5-shop 3-----------$0
Of course the formula for giving the value $13 in B3 is
= (C$1*C3)+(D41*D3)+(E*1*E3) dragged down column B.
So far so good, note some cells are blank as nothing was sold, and the formula gives a zero for those items.
I just added column F for pears and now every line that has one or more blank cells gives a #VALUE! in column B. Why has this suddenly started happening, and how I can get the thing to work again? I have not changed the formula at all, yet now even if I strip out eveything and just go = (C$1*C3), if C3 doesn't contain a value then B3 gives VALUE! Yet previously with the formula = (C$1*C3), if C3 was empty then B3 would say 0. Am I missing something really obvious? I just need = (C$1*C3) to give me 0 where C3 is blank. (Actually I'm copying the values for the shops from another spreadsheet and there are actually several more columns and many more rows, so a solution saying if the cell is blank return 0 isn't really an option.....).
---A------------B--------------C----------------D--------------E
1-------------total-------apples---------oranges-------bananas
2---------------price----------$1--------------$2----------$1.50
3-shop 1--------$13-----------3----------------5
4-shop 2----------$9-----------2----------------2---------------2
5-shop 3-----------$0
Of course the formula for giving the value $13 in B3 is
= (C$1*C3)+(D41*D3)+(E*1*E3) dragged down column B.
So far so good, note some cells are blank as nothing was sold, and the formula gives a zero for those items.
I just added column F for pears and now every line that has one or more blank cells gives a #VALUE! in column B. Why has this suddenly started happening, and how I can get the thing to work again? I have not changed the formula at all, yet now even if I strip out eveything and just go = (C$1*C3), if C3 doesn't contain a value then B3 gives VALUE! Yet previously with the formula = (C$1*C3), if C3 was empty then B3 would say 0. Am I missing something really obvious? I just need = (C$1*C3) to give me 0 where C3 is blank. (Actually I'm copying the values for the shops from another spreadsheet and there are actually several more columns and many more rows, so a solution saying if the cell is blank return 0 isn't really an option.....).