SUM data according to dates in Excel -


My problem is ...

I have a small airplane and track me Requires hours. I have to track areas from the hours, the total number of days (which is why I sometimes have 2 or 3 at the same time).

Now this is the problem ... Sam on the CI Sam last 7 days and no 7 days, not just last week. It is quite easy to do it manually ... The problem is that I need a formula because my records are quite big ...

Here is a small example (we say that 15 / 01/2009) ...

column A ------- column B ------- column C

DATE ------- - ------ hours ------- hours past 7 days

15/01/2009 ------- 01:00 ------- 01: 00

15/01/2009 ------- 02:15 ------- 03:15

16/01/2009 ----- - -01: 15 ------- 04:30

17/01/2009 ------- 01:30 ------- 06:00 < / P>

18/01/2009 ------- 01:30 ------- 07:30

18/01/2009 ------- 01:00 ------- 08:30

18/01/2009 ------- 02:00 ------- 10:30

< P> 9/01 / 2009 ------- 02:30 ------- 13:00

1 9/2009/2009 ------- 03:00 ----- - 16:00

20/01/2009 ------- //////// -------- 16:00

21/01/2009 ------- 01:00 ------- 17:00

22/01/2009 ------- 01: 30-- - ---- 15:15

23/01/2009 ------- 02:00 ------- 16:00

I have done < / P>

thanks

A formula trying to find out is fighting for weeks but there is no luck?

Another solution that basically does the same as solutions given earlier:

In C1, the following formula Enter:

{= SUM (if ($ A $ 1: $ A1> = ($ A1-6)) * ($ A $ 1: $ A1 & lt; = $ A1 ), $ B $ 1: $ B1, 0))}

And then just drag the formula below.

If you are not familiar with array formulas, then {} external brackets only indicate that the formula is an array formula to execute it properly, in the formula bar inside the bracket {} Press Ctrl + Shift + Enter to indicate that it needs to be copied, and then it is an array formula.


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -