Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
John
 
Posts: n/a
Default 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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
excelent
 
Posts: n/a
Default Add Column Data with Twist

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

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Franz Verga
 
Posts: n/a
Default Add Column Data with Twist

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:B1 000))


--
Hope I helped you.

Thanks in advance for your feedback.

Ciao

Franz Verga from Italy


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
John
 
Posts: n/a
Default 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" wrote in message
...
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:B1 000))


--
Hope I helped you.

Thanks in advance for your feedback.

Ciao

Franz Verga from Italy



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Otto M. - Data Matching Gilly Excel Worksheet Functions 0 May 12th 06 06:29 PM
Need to Improve Code Copying/Pasting Between Workbooks David Excel Discussion (Misc queries) 1 January 6th 06 03:56 AM
Excel Macro to Copy & Paste [email protected] Excel Worksheet Functions 0 December 1st 05 01:56 PM
creating a bar graph Johnfli Excel Discussion (Misc queries) 0 October 26th 05 08:16 PM
Return Count for LAST NonBlank Cell in each Row Sam via OfficeKB.com Excel Worksheet Functions 12 April 17th 05 10:36 PM


All times are GMT +1. The time now is 11:53 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"