Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 10-21-2014, 06:33 AM
lynchbro lynchbro is offline Average Times on a monthly basis Windows 8 Average Times on a monthly basis Office 2010 64bit
Advanced Beginner
Average Times on a monthly basis
 
Join Date: Jun 2014
Location: New York
Posts: 41
lynchbro is on a distinguished road
Default Average Times on a monthly basis

In column A I have a list of all days for the year of 2014, formatted as "Tuesday, October 21, 2014". Then I have a table of the months in 2014, formatted at "October". How can I pull the average times for each of those months based on the two formats above?
I assume it is some sort of nested IF statement with a VLOOKUP, but I cannot get it to work? Any ideas?



Here is what my table looks like:

A2=October B2=the average time
The date ranges begin in column A starting at A8 and going down. The times completed are in column B starting at B8 and going down.

Thank you!
Reply With Quote
  #2  
Old 10-21-2014, 07:00 AM
gebobs gebobs is offline Average Times on a monthly basis Windows 7 64bit Average Times on a monthly basis Office 2010 64bit
Expert
 
Join Date: Mar 2014
Location: Atlanta
Posts: 837
gebobs has a spectacular aura aboutgebobs has a spectacular aura about
Default

You can do it easily with a pivot. I did one in about 2 minutes using your example. Do you know how to do that? I would attach my own but for some reason the attachment manager isn't working for me.

The key is to group the dates by Month/Year and then set up the Time value as average.
Reply With Quote
  #3  
Old 10-21-2014, 07:06 AM
lynchbro lynchbro is offline Average Times on a monthly basis Windows 8 Average Times on a monthly basis Office 2010 64bit
Advanced Beginner
Average Times on a monthly basis
 
Join Date: Jun 2014
Location: New York
Posts: 41
lynchbro is on a distinguished road
Default

hi there!
My compliance manager does not want a table. Here is my sheet. do you know of a formula, besides a pivot table?

B2, B3, B4 - I wish to populate with the average times in each month the pricing was complete.
Attached Files
File Type: xlsx Book1.xlsx (12.5 KB, 9 views)
Reply With Quote
  #4  
Old 10-21-2014, 07:35 AM
gebobs gebobs is offline Average Times on a monthly basis Windows 7 64bit Average Times on a monthly basis Office 2010 64bit
Expert
 
Join Date: Mar 2014
Location: Atlanta
Posts: 837
gebobs has a spectacular aura aboutgebobs has a spectacular aura about
Default

Yo!

There's managers for ya. Always making an easy job a huge PITA.

So, yeah, there's a way to do it...provided, of course, your manager doesn't object further.

First off, you need to make the months in A2:A4 date values that Excel can recognize. So rather than October, November, December enter 10/1/14, 11/1/14, 12/1/14. Now use a customer format ("mmmm") to have it display as you have it in your sheet.

Then you can get the average for October with the following equation:

=IFERROR(SUMPRODUCT((A$8:A$182>=A2)*(A$8:A$182<DAT E(YEAR(A2),MONTH(A2)+1,1))*(B$8:B$182))/SUMPRODUCT((A$8:A$182>=A2)*(A$8:A$182<DATE(YEAR(A2 ),MONTH(A2)+1,1))*(B$8:B$182>0)),"")

The IFERROR suppresses an error that the formula will return if there is no data for the month (thus resulting in a divide by zero).

The first SUMPRODUCT sums the times for dates on or after 10/1/14 (the value in A2) and less than 11/1/14 (the value in A3).

The second SUMPRODUCT counts these same times and thus the average is gotten by dividing the first by the second.

This formula can then be copied down for November and December.
Reply With Quote
  #5  
Old 10-21-2014, 07:49 AM
lynchbro lynchbro is offline Average Times on a monthly basis Windows 8 Average Times on a monthly basis Office 2010 64bit
Advanced Beginner
Average Times on a monthly basis
 
Join Date: Jun 2014
Location: New York
Posts: 41
lynchbro is on a distinguished road
Default

Totally!! thank you for your help. one more. I entered in the formula, but it is just a blank cell now?? I tried reformatting it but nothing...any ideas for this one?
Attached Files
File Type: xlsx Book1.xlsx (12.7 KB, 9 views)
Reply With Quote
  #6  
Old 10-21-2014, 08:04 AM
gebobs gebobs is offline Average Times on a monthly basis Windows 7 64bit Average Times on a monthly basis Office 2010 64bit
Expert
 
Join Date: Mar 2014
Location: Atlanta
Posts: 837
gebobs has a spectacular aura aboutgebobs has a spectacular aura about
Default

I don't know how, but it looks like a parenthesis was moved.

Your sheet's formula starts as:
=IFERROR((SUMPRODUCT(A$8:A$182>=A2)...

That second parenthesis before SUMPRODUCT should be after it:
=IFERROR(SUMPRODUCT((A$8:A$182>=A2)...

Just copy the equation from the post a few above again and paste it again. There is an extraneous space that this forum put in one of the DATE's. I tried to get rid of it, but it keeps appearing.

Probably just better to move the parenthesis.
Reply With Quote
  #7  
Old 10-21-2014, 08:10 AM
lynchbro lynchbro is offline Average Times on a monthly basis Windows 8 Average Times on a monthly basis Office 2010 64bit
Advanced Beginner
Average Times on a monthly basis
 
Join Date: Jun 2014
Location: New York
Posts: 41
lynchbro is on a distinguished road
Default

that worked!!

thank you thank you!
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Average Times on a monthly basis formula for monthly sum paulys Excel 1 08-23-2014 09:44 AM
How do I keep graph sizing and location for reuse on a monthly basis lynchbro PowerPoint 0 06-09-2014 08:06 AM
No monthly view letitbe Outlook 1 09-05-2013 10:25 AM
manipulating borders of a table on a per-border basis gib65 Word 3 05-21-2012 12:40 AM
Average Times on a monthly basis Activating Signature on an ad hoc basis HowardC Outlook 2 03-13-2012 09:20 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 12:38 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft