+ Reply to Thread
Results 1 to 4 of 4

Add Column Data with Twist

  1. #1
    John
    Guest

    Add Column Data with Twist

    I have 2 columns, one showing Sales (Col B) and one showing Hours (Col A) -
    This shows the Sales per Hour

    How can I add up the Total Sales for a given Start Time and End Time. These
    two values will be in two cells, say AA1 and AA2

    Thus if AA1 said 9:30am and AA2 said 13:45am, what would be the formula that
    would give me the correct answer?

    Note my Hour divisions are in Qtr hour, as are my Sales values

    Thanks




  2. #2
    excelent
    Guest

    RE: Add Column Data with Twist

    =SUMPRODUCT((A2:A40>=AA1)*(A2:A40<=AA2)*(B2:B40))


  3. #3
    Franz Verga
    Guest

    Re: Add Column Data with Twist

    Nel post news:e7jt48$b5j$1@reader01.news.esat.net
    *John* ha scritto:

    > I have 2 columns, one showing Sales (Col B) and one showing Hours
    > (Col A) - This shows the Sales per Hour
    >
    > How can I add up the Total Sales for a given Start Time and End Time.
    > These two values will be in two cells, say AA1 and AA2
    >
    > Thus if AA1 said 9:30am and AA2 said 13:45am, what would be the
    > formula that would give me the correct answer?
    >
    > Note my Hour divisions are in Qtr hour, as are my Sales values
    >
    > Thanks


    Hi John,

    Try this:

    =SUMPRODUCT((A2:A1000>=AA1)*(A2:A1000<=AA2)*(B2:B1000))


    --
    Hope I helped you.

    Thanks in advance for your feedback.

    Ciao

    Franz Verga from Italy



  4. #4
    John
    Guest

    Re: Add Column Data with Twist

    Many thanks Franz

    I 've just added a post on my previous 'round up to next 15 mins' perhaps
    you could have a look

    Thanks


    "Franz Verga" <fra68ve@InVento.it> wrote in message
    news:%23qjHIO8lGHA.3632@TK2MSFTNGP03.phx.gbl...
    > Nel post news:e7jt48$b5j$1@reader01.news.esat.net
    > *John* ha scritto:
    >
    >> I have 2 columns, one showing Sales (Col B) and one showing Hours
    >> (Col A) - This shows the Sales per Hour
    >>
    >> How can I add up the Total Sales for a given Start Time and End Time.
    >> These two values will be in two cells, say AA1 and AA2
    >>
    >> Thus if AA1 said 9:30am and AA2 said 13:45am, what would be the
    >> formula that would give me the correct answer?
    >>
    >> Note my Hour divisions are in Qtr hour, as are my Sales values
    >>
    >> Thanks

    >
    > Hi John,
    >
    > Try this:
    >
    > =SUMPRODUCT((A2:A1000>=AA1)*(A2:A1000<=AA2)*(B2:B1000))
    >
    >
    > --
    > Hope I helped you.
    >
    > Thanks in advance for your feedback.
    >
    > Ciao
    >
    > Franz Verga from Italy
    >




+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1