LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 834
Default Excel 2007 - AVERAGEIF on rows that are non-continuous

You mean columns not rows.

=AVERAGE(IF((MOD(COLUMN(D6:AQ6)-COLUMN(D6),3)=0)*(D6:AQ61),D6:AQ6))

array-entered, Ctl-Shift-Enter, not just Enter

--

HTH

Bob

"tcbooks" wrote in message
...
I have 42 rows of data and I need to average every 3rd row if "1". I've
tried a couple formulas:

1.
averageif(D6,G6,J6,M6,P6,S6,V6,Y6,AB6,AE6,AH6,AK6, AN6,AQ6,"1",D6,G6,J6,M6,P6,S6,V6,Y6,AB6,AE6,AH6,A K6,AN6,AQ6)

I get #VALUE.

2.
=SUM(SUMIF(INDIRECT(D6,G6,J6,M6,P6,S6,V6,Y6,AB6,AE 6,AH6,AK6,AN6,AQ6),"1"))/SUM(COUNTIF(INDIRECT(D6,G6,J6,M6,P6,S6,V6,Y6,AB6,A E6,AH6,AK6,AN6,AQ6),"1"))

The error window shows too few arguments. I found #2 on this website.

Your help would be greatly appreciated.

TC Thanks



 
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
Transpose columns into continuous rows PattiP Excel Worksheet Functions 1 April 23rd 09 09:29 PM
How to add continuous 5 or 10 rows by giving number of rows to ad mygrps100 Excel Worksheet Functions 3 June 24th 08 04:23 PM
AVERAGEIF specific rows Thomas [PBD] Excel Discussion (Misc queries) 11 May 7th 07 07:15 PM
Quickly moving rows of 5-column groups on 1 continuous line C.O. Excel Worksheet Functions 2 December 7th 06 09:59 PM
Turning rows of equal number of columns into 1 continuous row chimerical Excel Worksheet Functions 1 December 7th 06 09:45 PM


All times are GMT +1. The time now is 06:59 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"