Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 7
Default Count cells every 12th column

Hello,

I am trying to come up with a formula that will help in calculating
averages in my visitor tracking spreadsheet. My spreadsheet has a lot
of visitor demographics and head count data entered by day. Across the
top, I have dates as column labels. Down the side, I have different
visitor demographic age ranges as row labels. On the lowest row, I
have a total of all the visitors in any given day.

Other info: We are only open Monday - Saturday, so I only have those
dates across the top. Also, below each day there are two sub-columns-
Male and Female.

I need to add up all the visitor totals for each day so I can get an
average number of visitors on Mondays, Wednesdays, Saturdays, etc.

I have tried to modify this formula which I've used to count the
totals in every other column:
=SUMPRODUCT(--(MOD(COLUMN(5:5),2)=0),5:5)

But it does not work because it only counts every *other* column, and
what I need to do is count every 12th column.

Can anyone help?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 7
Default Count cells every 12th column

Here is an attempt to show you what the spreadsheet looks like:

6/1 6/2
Male Female
Male Female
Under 18 1 0
3 5
18-34 2 4
5 2
35-63 10 15
4 2
63 and up 11 11
6 12

Total per day 54 39

I am looking to make a formula which would deal with the "total per
day" row. I need to have it count every 12th cell & be able to give it
a different starting point for each day calculation, because this
would allow it to count up all the Saturday totals, all the Monday
totals, etc, etc, etc.
  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,420
Default Count cells every 12th column

I have no idea what your data looks like or why you need every 12th, but
your formula gets every other because it uses MOD(..., 2), you need MOD)...,
12)

--
__________________________________
HTH

Bob

wrote in message
...
Here is an attempt to show you what the spreadsheet looks like:

6/1 6/2
Male Female
Male Female
Under 18 1 0
3 5
18-34 2 4
5 2
35-63 10 15
4 2
63 and up 11 11
6 12

Total per day 54 39

I am looking to make a formula which would deal with the "total per
day" row. I need to have it count every 12th cell & be able to give it
a different starting point for each day calculation, because this
would allow it to count up all the Saturday totals, all the Monday
totals, etc, etc, etc.



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 7
Default Count cells every 12th column

Sorry, the spreadsheet description post didn't work very well.

I have tried the MOD(...,12) and when I checked it, the figure was
incorrect. So there must be something wrong.

Let me try a screen shot:

<a href="http://www.flickr.com/photos/jenkob/2628527135/"
title="screen"<img src="http://farm4.static.flickr.com/
3074/2628527135_911b2e2e82_b.jpg" width="1024" height="640"
alt="screen" /</a
  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,420
Default Count cells every 12th column

Well I see the data okay now, but have no idea what you are trying to count.
Your so-called age labels are One, Two, Three, Four. Is One 17 and under,
Two 18-34, etc.?

Are you just trying to sum all male visitors for One, Two, etc.? If so, just
use

=SUMIF($4:$4,"M",5:5)

=SUMIF($4:$4,"F",5:5)

and so on

--
__________________________________
HTH

Bob

wrote in message
...
Sorry, the spreadsheet description post didn't work very well.

I have tried the MOD(...,12) and when I checked it, the figure was
incorrect. So there must be something wrong.

Let me try a screen shot:

<a href="http://www.flickr.com/photos/jenkob/2628527135/"
title="screen"<img src="http://farm4.static.flickr.com/
3074/2628527135_911b2e2e82_b.jpg" width="1024" height="640"
alt="screen" /</a





  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 7
Default Count cells every 12th column

I've already figured out the formula to count the different age groups
and genders. Now what I need is a formula to count the total visitors
per day, but end up with totals for all Mondays, Tuesdays, Wednesdays,
etc....... my ultimate end goal is to be able to get an average number
of visitors for each day of the week.

On Jul 1, 4:38 pm, "Bob Phillips" wrote:
Well I see the data okay now, but have no idea what you are trying to count.
Your so-called age labels are One, Two, Three, Four. Is One 17 and under,
Two 18-34, etc.?

Are you just trying to sum all male visitors for One, Two, etc.? If so, just
use

=SUMIF($4:$4,"M",5:5)

=SUMIF($4:$4,"F",5:5)

and so on

--
__________________________________
HTH

Bob

wrote in message

...

Sorry, the spreadsheet description post didn't work very well.


I have tried the MOD(...,12) and when I checked it, the figure was
incorrect. So there must be something wrong.


Let me try a screen shot:


<a href="http://www.flickr.com/photos/jenkob/2628527135/"
title="screen"<img src="http://farm4.static.flickr.com/
3074/2628527135_911b2e2e82_b.jpg" width="1024" height="640"
alt="screen" /</a


  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 7
Default Count cells every 12th column

This was resolved in a cross-post on the programming forum:
http://groups.google.com/group/micro...4503966a08c04#

Thanks for the ideas!
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
Count number of cells and total in one column, based on another column suffix Pierre Excel Worksheet Functions 5 October 31st 07 12:28 AM
Count cells in a column that has a autofilter Irv Excel Worksheet Functions 1 October 31st 06 07:39 PM
HOW DO I COUNT CELLS WITH DATA BY COLUMN? Warren Excel Worksheet Functions 2 June 30th 06 09:53 AM
Count cells in a column that contain dates Cachod1 New Users to Excel 1 March 29th 05 08:56 PM
rounding to next 12th Amie Barnes Excel Discussion (Misc queries) 1 January 21st 05 04:40 PM


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