View Single Post
  #5   Report Post  
Posted to microsoft.public.excel.programming
K Dales[_2_] K Dales[_2_] is offline
external usenet poster
 
Posts: 1,163
Default Multiple variables

"Mode of the sum for each building"

For the purpose of your sum, does the room matter? Do you have separate
sums for each room/building (and you need to find the mode of those) or just
for the entire building?

"sip8316" wrote:

Thanks guys,

The way I typed it mislead you a little though. A more exact interpretation
to the x (or xxxxx thing) would be that I use 5 columns for each task, they
are merged for the title of the task but undernieth the title they are
separated into columns for days of the week (M T W R F) and an x is placed in
the appropriate cell if the task is done in that place on that particular
day. I can easily sum the number of x's like I said but I need the mode of
the sum of the number of x's for each building. Sorry that that makes it
more complicated, any help would be great thoguh,

thanks,

Scott

"Tom Ogilvy" wrote:

An addendum:

=Mode(len(G2:G50))

appears to work when entered normally - so you don't have to array enter it.

--
Regards,
Tom Ogilvy

"sip8316" wrote in message
...
Is there a way to set up multiple variables....What I mean is this:

I have a sheet set up in which in the columns I have tasks to do and in

the
rows I have the rooms/buildings they have to be done in. Where they
interesect I have the number of times per week they are done (for example

in
the annex trash is done 5 times/wk, in the control room 3 times/wk and so

on)
The number of times per week is delegated by an x in a cell for each

time.

I have it set up to add the x to find a weekly total but I want to have it
do this for each building and then to take the mode of all the buildings

for
a particular task. The only way I coud think of was to make a loop that

went
through for each task, and in that loop have it create a variable for
eachexisting room that contained the number of times the task had been

done
(for the respective room)

Then To have another that took the sum of all those numbers and displayed
the sum somewhere on the spreadsheet. I will be doing this on many
spreadsheets with anywhere from 5 to 100 buildings.

Any help would be great.

Thanks,

Scott