Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Junior Member
 
Posts: 5
Default A count on a repeating pattern every 14 cells

I'm trying to do a graph from some data I have. The Graph is easy but the data part is hard. I am able to count the data I want using this formula

=SUM(Teamdata!$B$9:Teamdata!B9)/COUNTIF(Teamdata!$B$9:Teamdata!B9,"0")

but I realized my data will be skewed but I have some zero's that I do not want to count. There is a repeating pattern every 14 cells. Using Cell A1 for the start, this is what it looks like.

A1 - count
A2 - count
A3 - count
A4 - 0
A5 - 0
A6 - count
A7 - count
A8 - 0
A9 - 0
A10 - 0
A11 - count
A12 - count
A13 - 0
A14 - 0

The ones that say count is what I want to count and is the repeating pattern I have every 14 cells. The ones that are zero will show up as zero's but I don't want to count. I will have cases where the count cell is zero but I still need to count the cell because it's part of a running average.

Last edited by baileyn3 : August 6th 10 at 03:29 PM
  #2   Report Post  
Senior Member
 
Location: Philippines
Posts: 161
Default

Quote:
Originally Posted by baileyn3 View Post
I'm trying to do a graph from some data I have. The Graph is easy but the data part is hard. I am able to count the data I want using this formula

=SUM(Teamdata!$B$9:Teamdata!B9)/COUNTIF(Teamdata!$B$9:Teamdata!B9,"0")

but I realized my data will be skewed but I have some zero's that I do not want to count. There is a repeating pattern every 14 cells. Using Cell A1 for the start, this is what it looks like.

A1 - count
A2 - count
A3 - count
A4 - 0
A5 - 0
A6 - count
A7 - count
A8 - 0
A9 - 0
A10 - 0
A11 - count
A12 - count
A13 - 0
A14 - 0

The ones that say count is what I want to count and is the repeating pattern I have every 14 cells. The ones that are zero will show up as zero's but I don't want to count. I will have cases where the count cell is zero but I still need to count the cell because it's part of a running average.
Try this one via a Scroll Bar in Form Controls.

The Scroll Bar should have the Page Change value of 14 (and do not change anything else) then the cell link could be anywhere. Let's use B1 as the cell link and your table as an example.

B2 should have the formula =SUM(OFFSET(A1,B1,0,14,1))/7

As you move your scroll bar, the range of the formula moves as well.
__________________
Asobi Wa Owari Da
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
Any formula to count number of cells with a specific color pattern Stu Excel Worksheet Functions 2 November 16th 07 05:13 PM
COUNTIF with repeating pattern vandynd Excel Discussion (Misc queries) 3 October 18th 06 08:08 PM
How can I count cells of a specific colour (pattern)? Nick@Durham Excel Worksheet Functions 1 November 29th 05 10:18 AM
repeating a data pattern in excel KelC Excel Discussion (Misc queries) 1 August 1st 05 08:38 PM
Linking a repeating pattern of non-adjacent cells wdg006 Excel Discussion (Misc queries) 2 December 14th 04 05:59 PM


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