Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 09-03-2013, 07:28 AM
bremen22 bremen22 is offline Sum Average usage Based on two sheets Windows 7 64bit Sum Average usage Based on two sheets Office 2007
Advanced Beginner
Sum Average usage Based on two sheets
 
Join Date: Jul 2013
Posts: 44
bremen22 is on a distinguished road
Question Sum Average usage Based on two sheets

I have a work book that looks at usage. There are two sheets. Sheet 1 contains usage data for 1 month. Sheet 2 contains usage data with no restrictions. The data is generated by a data connection to an Oracle database.

Here is what I am trying to accomplish.....

On sheets 1 and 2 there is a Nomenclature Key. For each key that is on sheet 1 there will be a coresponding key on sheet 2. For each time the key appears on sheet 2 I want to get the average of the total quantites. I have attached a small sample of my sheet and what I am trying to accomplish.
Attached Files
File Type: xlsx Book1.xlsx (40.3 KB, 7 views)
Reply With Quote
  #2  
Old 09-03-2013, 09:59 AM
BobBridges's Avatar
BobBridges BobBridges is offline Sum Average usage Based on two sheets Windows 7 64bit Sum Average usage Based on two sheets Office 2010 32bit
Expert
 
Join Date: May 2013
Location: USA
Posts: 700
BobBridges has a spectacular aura aboutBobBridges has a spectacular aura about
Default

So for C3 in your sample, you want a formula that does this:
1) Checks the nomenclature key in B3 (that's 243, in this case)
2) Finds all the rows in Sheet2 that have that nomenclature key in col A
3) Displays the average of the corresponding values in col B

Right? Seems to me you want COUNTIF and SUMIF. No, wait, I just looked it up; Excel now has an AVERAGEIF function, so it's even simpler. I've never used it, but according to the documentation it should go like this:
Code:
=AVERAGEIF(Sheet2!A:A,B3,Sheet2!B:B)
Which says "Look in Sheet2 col A for any rows that equal B3, and for those rows return the average of the values in Sheet2 col B".
Reply With Quote
  #3  
Old 09-03-2013, 11:00 AM
bremen22 bremen22 is offline Sum Average usage Based on two sheets Windows 7 64bit Sum Average usage Based on two sheets Office 2007
Advanced Beginner
Sum Average usage Based on two sheets
 
Join Date: Jul 2013
Posts: 44
bremen22 is on a distinguished road
Default

Thank you very much. The Formula works exactly as I need it to. However, I asked the wrong question.....

Thats how it usually works for me.

There will be a new post with the updated questions.

Thanks again.
Reply With Quote
  #4  
Old 09-03-2013, 11:27 AM
BobBridges's Avatar
BobBridges BobBridges is offline Sum Average usage Based on two sheets Windows 7 64bit Sum Average usage Based on two sheets Office 2010 32bit
Expert
 
Join Date: May 2013
Location: USA
Posts: 700
BobBridges has a spectacular aura aboutBobBridges has a spectacular aura about
Default

LOL! It often happens that way; once I see the answer, I realize I asked the wrong question. Well, someone will be here.
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Column Chart Average blaqsheep Excel 0 02-07-2012 07:04 PM
Average minus outliers? markg2 Excel 2 01-07-2012 05:46 PM
Linking sheets to fetch transactions from sheets to another waqer Excel 4 09-01-2011 12:35 PM
'AVERAGE' Formula nfphilpot Excel 3 11-24-2010 02:19 PM
Sum Average usage Based on two sheets Average of many rows speedycorn1 Excel 1 10-30-2010 07:54 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 01:22 AM.


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