AJC_50
Oct 4, 2007, 01:57 PM
Hi.
I am creaing a spreadsheet for work. Basically I have a column that shows all the project names, it shows a date and a price for the project.
I need this price to then be automatically placed into the appropriate monthly column.
I.e if the project is 20,000 and happened on the 21st of jan 2007 then the 20000 gets put into the jan 2007 column.
I have figured out how to get the formula to work. But I have one small problem with it. If the month is does not match the January column then it displays as 0 which is correct but if the year is different then it says False instead. I need it so that instead of false it also says 0.
The formula I have is
=IF(YEAR(E17)=2007,IF(MONTH(E17)=1,SUM(D17),0))
so if the project is in January 2007 then the price which is in cell D17 will be displayed.
Many Thanks
I am creaing a spreadsheet for work. Basically I have a column that shows all the project names, it shows a date and a price for the project.
I need this price to then be automatically placed into the appropriate monthly column.
I.e if the project is 20,000 and happened on the 21st of jan 2007 then the 20000 gets put into the jan 2007 column.
I have figured out how to get the formula to work. But I have one small problem with it. If the month is does not match the January column then it displays as 0 which is correct but if the year is different then it says False instead. I need it so that instead of false it also says 0.
The formula I have is
=IF(YEAR(E17)=2007,IF(MONTH(E17)=1,SUM(D17),0))
so if the project is in January 2007 then the price which is in cell D17 will be displayed.
Many Thanks