Hi,
I'm a reasonably basic user so looking for some help with a formula please.
I have 2 columns. Column 'A' has dates, column 'B' has numbers. What I'm trying to achieve is that when the user enters 2011 on a different worksheet then it will sum all the numbers in column 'B' where the corresponding date has the year 2011. This I have achieved with the following formula;
{=IF(ISBLANK($A1),"",SUM(IF(YEAR(FlightDates)=$A1,Hours_Total_Flight)))} where 'FlightDates' is column A and Hours_Total_Flight is column B.
What I can't seem to do is to sum column B for a certain year and a certain month ie, the user has selected 2011 and 4. I would want all the flight hours from April 2011 to be summed.
Not sure if that makes too much sense. Hopefully does.
Looking forward to any feedback or help.
Regards,
Paul.
I'm a reasonably basic user so looking for some help with a formula please.
I have 2 columns. Column 'A' has dates, column 'B' has numbers. What I'm trying to achieve is that when the user enters 2011 on a different worksheet then it will sum all the numbers in column 'B' where the corresponding date has the year 2011. This I have achieved with the following formula;
{=IF(ISBLANK($A1),"",SUM(IF(YEAR(FlightDates)=$A1,Hours_Total_Flight)))} where 'FlightDates' is column A and Hours_Total_Flight is column B.
What I can't seem to do is to sum column B for a certain year and a certain month ie, the user has selected 2011 and 4. I would want all the flight hours from April 2011 to be summed.
Not sure if that makes too much sense. Hopefully does.
Looking forward to any feedback or help.
Regards,
Paul.