Re: Sum Activecell Offset Problem



Andrew,

Try this

=SUMPRODUCT(--(B1:B1000>MAX(IF(A1:A1000="Sun",B1:B1000))-7),--(B1:B1000<=MAX
(IF(A1:A9="Sun",B1:B1000))),C1:C1000)

--

HTH

RP
(remove nothere from the email address if mailing direct)


"George Andrews" <abctravel@xxxxxxxxx> wrote in message
news:O%23IlqjYXFHA.2420@xxxxxxxxxxxxxxxxxxxxxxx
> Exell 2000
>
> Dear All
>
> I have three columns of data. Day of the week, Date, Product Sales
>
> What I need is a function that can work out the total sales for a 7 day
> period finishing on a Sunday (Sun). i.e The total sales from Monday to
> Sunday. The problem is that there could be more than one entry per day.
> e.g. there could be two Thursdays in one week with the same date.
>
> Therefore the formula will have to look at the Sunday date subract 7 days
> and add up the values in the third column.
>
> if it is easier I could work around my problem by using a formula that
> calculates the total from the previous seven days baring in mind that
there
> could be more than one entry per day.
>
> Here is some sample data. (European date system)
>
> S 28/5 0.00
> Sun 29/5 2,900.00
> M 30/5 4,279.24
> T 31/5 3 ,016.00
> W 1/6 850.28
> Th 2/6 0.00
> F 3/6 5,775.64
> S 4/6 9,210.40
> Sun 5/6 2,900.00
>
> If anybody can help, it would be appreciated.
>
> Regards
>
> Andrew
>
>


.



Relevant Pages

  • Re: Sum Activecell Offset Problem
    ... I set up the information starting in A1 and put the formula into F1 with Sun ... >> What I need is a function that can work out the total sales for a 7 day ... The problem is that there could be more than one entry per day. ... >> Here is some sample data. ...
    (microsoft.public.excel.worksheet.functions)
  • Re: Protection from the dreaded "rm -fr /"
    ... > John Beck, who works for Sun, has posted an entry in his blog yesterday ...
    (freebsd-hackers)
  • Re: Protection from the dreaded "rm -fr /"
    ... > John Beck, who works for Sun, has posted an entry in his blog yesterday ...
    (freebsd-hackers)
  • Re: Okay, what the HECK is going on in France?
    ... See Wikipedia's entry for Eratosthenes ... while at the same time back home, sticks would always cast shadows and ... the sun would never reach down. ...
    (rec.aviation.piloting)