Count cells every 12th column

T

tours

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?
 
T

tours

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.
 
B

Bob Phillips

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)
 
B

Bob Phillips

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
 
T

tours

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top