Add Column Data with Twist

  • Thread starter Thread starter John
  • Start date Start date
J

John

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
 
Nel post *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
 
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top