Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 01-17-2014, 12:20 AM
jennamae jennamae is offline Average if and sumif Windows 8 Average if and sumif Office 2010 32bit
Novice
Average if and sumif
 
Join Date: Nov 2013
Posts: 9
jennamae is on a distinguished road
Default Average if and sumif

Hi All,

I have two formulas I am trying to achieve and require some help



Attached if a sample spreadsheet

Please help

Also can do a vlookup from a pivot table?
Attached Files
File Type: xlsx sample excel help required.xlsx (9.5 KB, 9 views)
Reply With Quote
  #2  
Old 01-17-2014, 01:27 AM
Pecoflyer's Avatar
Pecoflyer Pecoflyer is offline Average if and sumif Windows 7 64bit Average if and sumif Office 2010 64bit
Expert
 
Join Date: Nov 2011
Location: Brussels Belgium
Posts: 2,767
Pecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant future
Default

The average is given by
Code:
=AVERAGEIF($A$1:$A$15,"=6",$B$1:$B$15)
(you can refer to a cell value instead of hard-coding the value)
Summing values in N
Code:
=SUMPRODUCT(($M$1:$M$10="gen")*($N$1:$N$10))
Although you asked for a count the result you gave is the sum of the values.
__________________
Did you know you can thank someone who helped you? Click on the tiny scale in the right upper hand corner of your helper's post
Reply With Quote
  #3  
Old 01-17-2014, 01:34 AM
Pecoflyer's Avatar
Pecoflyer Pecoflyer is offline Average if and sumif Windows 7 64bit Average if and sumif Office 2010 64bit
Expert
 
Join Date: Nov 2011
Location: Brussels Belgium
Posts: 2,767
Pecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant future
Default

As for your last question you could either use the GETPIVOTDATA function ( not very flexible) or have a look at this article.
Using the free POWERPIVOT add-in also has it's advantages, but I can't help you much with that one.
__________________
Did you know you can thank someone who helped you? Click on the tiny scale in the right upper hand corner of your helper's post
Reply With Quote
  #4  
Old 01-17-2014, 02:05 AM
jennamae jennamae is offline Average if and sumif Windows 8 Average if and sumif Office 2010 32bit
Novice
Average if and sumif
 
Join Date: Nov 2013
Posts: 9
jennamae is on a distinguished road
Default

Thank you

Sum if worked perfectly

The average if, seems to work for only one argument, attached this is the actual workbook. Words for 6 but not 7?
Attached Files
File Type: xlsx sample excel help required2.xlsx (9.0 KB, 12 views)
Reply With Quote
  #5  
Old 01-17-2014, 05:10 AM
Pecoflyer's Avatar
Pecoflyer Pecoflyer is offline Average if and sumif Windows 7 64bit Average if and sumif Office 2010 64bit
Expert
 
Join Date: Nov 2011
Location: Brussels Belgium
Posts: 2,767
Pecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant future
Default

This has to do with the way Excel treats numbers.
If you format your result with 10 or more decimals, it is not 7 but 6,99999...
As you formatted with 0 decimals what you see is 7, but XL sees 6,9999
The workaround is to wrap your formula with the ROUND function ( with 0 decimals). Then all should be OK.
Like
Code:
=ROUND((A4-FLOOR(A4,1))*24,0)
A little shorter is
Code:
=ROUND(MOD(A4,1)*24,0)
__________________
Did you know you can thank someone who helped you? Click on the tiny scale in the right upper hand corner of your helper's post
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Average if and sumif SUMIF results changed based on filters SteveBump Excel 5 10-29-2013 07:25 AM
Help! 'SUMIF' Formulas dave1372 Excel 2 09-08-2011 07:05 AM
Average if and sumif SUMIF Formula question jcaswell Excel 3 05-22-2011 02:52 AM
Average if and sumif Need Help With SUMIF Formula In R1C1 Style Todd Excel 9 02-27-2010 08:30 PM
Average if and sumif Multiple criteria in SUMIF? pumpkin head Excel 1 02-17-2006 09:06 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 11:06 PM.


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