Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
CSB CSB is offline
external usenet poster
 
Posts: 2
Default SUMIF/AVERAGEIF with mulitle range and sum ranges

Im getting an #VALUE! when putting in this formula

=AVERAGEIF(($B$6:$B$48,$B$70:$B$112,$B$134:$B$176, $B$198:$B$240),B262,($C$6:$C$48,$C$70:$C$112,$C$13 4:$C$176,$C$198:$C$240))

I know I'm using it wrong, please help!
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default SUMIF/AVERAGEIF with mulitle range and sum ranges

You can't use muliple range references like that with AVERAGEIF.

Kind of long (but not as long as it could get!):

=SUMPRODUCT(--(CHOOSE({1,2,3,4},B6:B48,B70:B112,B134:B176,B198:B 240)=B262),CHOOSE({1,2,3,4},C6:C48,C70:C112,C134:C 176,C198:C240))/SUMPRODUCT(--(CHOOSE({1,2,3,4},B6:B48,B70:B112,B134:B176,B198:B 240)=B262))

--
Biff
Microsoft Excel MVP


"CSB" wrote in message
...
Im getting an #VALUE! when putting in this formula

=AVERAGEIF(($B$6:$B$48,$B$70:$B$112,$B$134:$B$176, $B$198:$B$240),B262,($C$6:$C$48,$C$70:$C$112,$C$13 4:$C$176,$C$198:$C$240))

I know I'm using it wrong, please help!



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
SUMIF with 2 ranges and 2 criteria's, totaling the same sum range. ADC76 Excel Discussion (Misc queries) 5 May 15th 09 11:47 AM
Using formulas in conditions (SUMIF, AVERAGEIF) Jan Kucera New Users to Excel 15 October 4th 07 05:51 AM
Excel needs an AVERAGEIF function similar to SUMIF. Please! Roseland Excel Discussion (Misc queries) 1 May 16th 06 02:22 PM
AVERAGEIF AND SUMIF AND COUNTIF kathi Excel Worksheet Functions 15 February 22nd 06 02:14 PM
EXCEL -- want to do have ''averageif'' - like sumif function - H. Glenda Excel Worksheet Functions 1 April 5th 05 08:58 PM


All times are GMT +1. The time now is 07:19 AM.

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

About Us

"It's about Microsoft Excel"