View Single Post
  #13   Report Post  
Posted to microsoft.public.excel.newusers
Dermot
 
Posts: n/a
Default Caculating Columns Between Certain Dates

Hi Bob,
I missed this posting and posted a lot of rubbish in the two postings at the
end. Please ignore them.

I will review all the information you have given me todate.

Is it okay with you, for me to post back here, if I have any further
questions relating to this problem?

Regards
Dermot

"Bob Phillips" wrote:

Yeah, let's concentrate on getting something working Dermot.

First, enter the dates in A2:A6 in the format 03/02/2005. Dots will only
work if you have some special setting.

Secondly, in the formula, when referring to a date cell you don't need to
coerce nit to a date (It is already done)< and you don't need quotes, and
similarly for testing the company name test as a cell, so it is just

=SUMPRODUCT(--(A2:A6=G3,(A2:A6,F3<= H3),--(B2:B6=F3),(C2:C6+D2:D6))

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Dermot" wrote in message
...
Hi Bob.
A few more questions now that I have had a proper look at the information.

I have entered the following formula into and appropriate cell on a small
test sheet I made upexacly as specified. Then I tried it modified ,to

refer
to cells which contain the dates as below, but no joy...get an error

message.

=SUMPRODUCT(--(A2:A6= --"=G3",(A2:A6,F3< = --
"=H3"),--(B2:B6="=F3"),(C2:C6+D2:D6))

G3 is the start date cell, H3 is the End Date Cell, F3 is the company

cell.

I formatted A2 to A6 to date format 3.2.2005 am not sure if this is

correct
as when the error is generated a blue rectangle appears arround the date
column.

Quote
If you know the periods, that is
if they are fixed, you could code all of them directly into the

spreadsheet,
saving the users any need to change it.

How whould I do incorporate all start, end dates for all quarters.
Maybbe a bit ahead of myself here when I haven't got the supplied equation
to work yet!!

Regards
Dermot

"Bob Phillips" wrote:


"Dermot" wrote in message
...
Thanks for the reply Bob,
I have looked up the SUMPRODUCT Function in my excel inside out book

to
better.
I have yet to try the formula but wonder if you could clarify a few
questions for me?

1. Can you write a verbal interpretation of the formula you have

supplied
me
so I can better understand the reasoning behind it?


See http://www.xldynamic.com/source/xld.SUMPRODUCT.html


2. Using your supplied formula. Can it be place in any cell or does it
have
to be a specific cell to ensure the correct cell references?


No, as long as your refer back to the correct cells, it can be placed
anywhere.


3. The Dates you have entered. How are these entered? Can they be

changed
for different periods throughout the year? Does the individual using

the
spreadsheet need to modify the formula or just enter a start date and

end
date, and then the calculation would be automatic? The intended users

are
not
too familiar with excel, and I am not sure what I can and cannot do

with
excel regarding this problem.


What I gave you was two example dates to test between. It can be

changed to
any two dates that you want. I used ISO standard date formats,

yyyy-mm-dd,
either change the date such as --"2005-01-01" by something other date,

or
put the date in a cell and refer to that. If you know the periods, that

is
if they are fixed, you could code all of them directly into the

spreadsheet,
saving the users any need to change it.


I do need to find a solution Bob and appreciate your contribution. You
supplied me with a brief formla for another problem, which resolved my
problem, but it took me a while before I undestood what I was doing.


I have just Googled that. I replied to something on 8th Nov, and I see

that
you responded 10 days later. I didn't see that in the NGs. Do you still

need
help on that one?