Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 129
Default Sum vales found with a date range.

ok I cand understand the answers to other similar topics posted here so i am
going to have to try to explain my self...

I have two .xls sheet (WorkBook1 & Woorkbook2)

In Woorkbook1 on Sheet1 I have in column A incrementing dates...
In Woorkbook1 on Sheet1 I have in column B Total Run Time...

In Woorkbook2 on Sheet2 I have in cell A50 the START date...
In Woorkbook2 on Sheet2 I have in cell A51 the END date...

I am looking for a furmula that will sum the run time between and including
the START and END dates.

I have succeded in having the formula return a value for a single date but
not for the sum of the values found winthin a date range...

  #2   Report Post  
Posted to microsoft.public.excel.misc
bj bj is offline
external usenet poster
 
Posts: 1,397
Default Sum vales found with a date range.

try something like
=Sumif('Woorkbook1.xls]Sheet1'!A:A,"<='[Woorkbook2.xls]Sheet2'!A51,'Woorkbook1.xls]Sheet1'!C:C)-Sumif('Woorkbook1.xls]Sheet1'!A:A,"'[Woorkbook2.xls]Sheet2'!A50,'Woorkbook1.xls]Sheet1'!C:C)

"Will" wrote:

ok I cand understand the answers to other similar topics posted here so i am
going to have to try to explain my self...

I have two .xls sheet (WorkBook1 & Woorkbook2)

In Woorkbook1 on Sheet1 I have in column A incrementing dates...
In Woorkbook1 on Sheet1 I have in column B Total Run Time...

In Woorkbook2 on Sheet2 I have in cell A50 the START date...
In Woorkbook2 on Sheet2 I have in cell A51 the END date...

I am looking for a furmula that will sum the run time between and including
the START and END dates.

I have succeded in having the formula return a value for a single date but
not for the sum of the values found winthin a date range...

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 964
Default Sum vales found with a date range.

Try this:

=SUMPRODUCT(--([WorkBook1.xls]Sheet1!$A$1:$A$10=$A$50),--([WorkBook1.xls]Sheet1!$A$1:$A$10<=$A$51),([WorkBook1.xls]Sheet1!$B$1:$B$10))

HTH,
Elkar

"Will" wrote:

ok I cand understand the answers to other similar topics posted here so i am
going to have to try to explain my self...

I have two .xls sheet (WorkBook1 & Woorkbook2)

In Woorkbook1 on Sheet1 I have in column A incrementing dates...
In Woorkbook1 on Sheet1 I have in column B Total Run Time...

In Woorkbook2 on Sheet2 I have in cell A50 the START date...
In Woorkbook2 on Sheet2 I have in cell A51 the END date...

I am looking for a furmula that will sum the run time between and including
the START and END dates.

I have succeded in having the formula return a value for a single date but
not for the sum of the values found winthin a date range...

  #4   Report Post  
Posted to microsoft.public.excel.misc
bj bj is offline
external usenet poster
 
Posts: 1,397
Default Sum vales found with a date range.

Ignorre my response, I totally goofed it up

"bj" wrote:

try something like
=Sumif('Woorkbook1.xls]Sheet1'!A:A,"<='[Woorkbook2.xls]Sheet2'!A51,'Woorkbook1.xls]Sheet1'!C:C)-Sumif('Woorkbook1.xls]Sheet1'!A:A,"'[Woorkbook2.xls]Sheet2'!A50,'Woorkbook1.xls]Sheet1'!C:C)

"Will" wrote:

ok I cand understand the answers to other similar topics posted here so i am
going to have to try to explain my self...

I have two .xls sheet (WorkBook1 & Woorkbook2)

In Woorkbook1 on Sheet1 I have in column A incrementing dates...
In Woorkbook1 on Sheet1 I have in column B Total Run Time...

In Woorkbook2 on Sheet2 I have in cell A50 the START date...
In Woorkbook2 on Sheet2 I have in cell A51 the END date...

I am looking for a furmula that will sum the run time between and including
the START and END dates.

I have succeded in having the formula return a value for a single date but
not for the sum of the values found winthin a date range...

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default Sum vales found with a date range.

SUMIF won't work on closed files. Better to use SUMPRODUCT.

Biff

"bj" wrote in message
...
try something like
=Sumif('Woorkbook1.xls]Sheet1'!A:A,"<='[Woorkbook2.xls]Sheet2'!A51,'Woorkbook1.xls]Sheet1'!C:C)-Sumif('Woorkbook1.xls]Sheet1'!A:A,"'[Woorkbook2.xls]Sheet2'!A50,'Woorkbook1.xls]Sheet1'!C:C)

"Will" wrote:

ok I cand understand the answers to other similar topics posted here so i
am
going to have to try to explain my self...

I have two .xls sheet (WorkBook1 & Woorkbook2)

In Woorkbook1 on Sheet1 I have in column A incrementing dates...
In Woorkbook1 on Sheet1 I have in column B Total Run Time...

In Woorkbook2 on Sheet2 I have in cell A50 the START date...
In Woorkbook2 on Sheet2 I have in cell A51 the END date...

I am looking for a furmula that will sum the run time between and
including
the START and END dates.

I have succeded in having the formula return a value for a single date
but
not for the sum of the values found winthin a date range...





  #6   Report Post  
Posted to microsoft.public.excel.misc
bj bj is offline
external usenet poster
 
Posts: 1,397
Default Sum vales found with a date range.

try in sheet 1 woorkbook1
=sumif(A:A,"<=Indirect("'[Woorkbook2.xls]Sheet2'!A51")",B:B)-sumif(A:A,"Indirect("'[Woorkbook2.xls]Sheet2'!A50")",B:B)

"bj" wrote:

Ignorre my response, I totally goofed it up

"bj" wrote:

try something like
=Sumif('Woorkbook1.xls]Sheet1'!A:A,"<='[Woorkbook2.xls]Sheet2'!A51,'Woorkbook1.xls]Sheet1'!C:C)-Sumif('Woorkbook1.xls]Sheet1'!A:A,"'[Woorkbook2.xls]Sheet2'!A50,'Woorkbook1.xls]Sheet1'!C:C)

"Will" wrote:

ok I cand understand the answers to other similar topics posted here so i am
going to have to try to explain my self...

I have two .xls sheet (WorkBook1 & Woorkbook2)

In Woorkbook1 on Sheet1 I have in column A incrementing dates...
In Woorkbook1 on Sheet1 I have in column B Total Run Time...

In Woorkbook2 on Sheet2 I have in cell A50 the START date...
In Woorkbook2 on Sheet2 I have in cell A51 the END date...

I am looking for a furmula that will sum the run time between and including
the START and END dates.

I have succeded in having the formula return a value for a single date but
not for the sum of the values found winthin a date range...

  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 129
Default Sum vales found with a date range.

OK Great that works... Now how can I ask a similar question but this time I
want to return the sum for the Month of March. I assume I can so something
like this:
=SUMPRODUCT(--([WorkBook1.xls]Sheet1!$A$1:$A$10<= How do I place the MONTH
HERE??),([WorkBook1.xls]Sheet1!$B$1:$B$10))

I have a cell with the month typed using text "March" do I need to change
this to Date format and enter 03/2007?


"Elkar" wrote:

Try this:

=SUMPRODUCT(--([WorkBook1.xls]Sheet1!$A$1:$A$10=$A$50),--([WorkBook1.xls]Sheet1!$A$1:$A$10<=$A$51),([WorkBook1.xls]Sheet1!$B$1:$B$10))

HTH,
Elkar

"Will" wrote:

ok I cand understand the answers to other similar topics posted here so i am
going to have to try to explain my self...

I have two .xls sheet (WorkBook1 & Woorkbook2)

In Woorkbook1 on Sheet1 I have in column A incrementing dates...
In Woorkbook1 on Sheet1 I have in column B Total Run Time...

In Woorkbook2 on Sheet2 I have in cell A50 the START date...
In Woorkbook2 on Sheet2 I have in cell A51 the END date...

I am looking for a furmula that will sum the run time between and including
the START and END dates.

I have succeded in having the formula return a value for a single date but
not for the sum of the values found winthin a date range...

  #8   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,572
Default Sum vales found with a date range.

Say you enter your "Text" month in C1.

Try this:

=SUMPRODUCT((TEXT(A1:A10,"mmmm")=C1)*B1:B10)

You can add your path to the formula.

FWIW,
You can use the 3 letter abbreviation for the months, so that you don't have
to type the full name, like "September".

If you use Jan, Oct, Sep, ... etc., revise the formula to look for only 3
characters:

=SUMPRODUCT((TEXT(A1:A10,"mmm")=C1)*B1:B10)

--
HTH,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------
"Will" wrote in message
...
OK Great that works... Now how can I ask a similar question but this time
I
want to return the sum for the Month of March. I assume I can so
something
like this:
=SUMPRODUCT(--([WorkBook1.xls]Sheet1!$A$1:$A$10<= How do I place the MONTH
HERE??),([WorkBook1.xls]Sheet1!$B$1:$B$10))

I have a cell with the month typed using text "March" do I need to change
this to Date format and enter 03/2007?


"Elkar" wrote:

Try this:

=SUMPRODUCT(--([WorkBook1.xls]Sheet1!$A$1:$A$10=$A$50),--([WorkBook1.xls]Sheet1!$A$1:$A$10<=$A$51),([WorkBook1.xls]Sheet1!$B$1:$B$10))

HTH,
Elkar

"Will" wrote:

ok I cand understand the answers to other similar topics posted here so
i am
going to have to try to explain my self...

I have two .xls sheet (WorkBook1 & Woorkbook2)

In Woorkbook1 on Sheet1 I have in column A incrementing dates...
In Woorkbook1 on Sheet1 I have in column B Total Run Time...

In Woorkbook2 on Sheet2 I have in cell A50 the START date...
In Woorkbook2 on Sheet2 I have in cell A51 the END date...

I am looking for a furmula that will sum the run time between and
including
the START and END dates.

I have succeded in having the formula return a value for a single date
but
not for the sum of the values found winthin a date range...



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
extract matching vales TUNGANA KURMA RAJU Excel Discussion (Misc queries) 15 October 25th 06 06:53 PM
Conditional format if cell match found in another range of cells Nolene Excel Worksheet Functions 2 October 5th 06 06:56 AM
Conditional formatting if value in cell is found in a named range Grumpy Grandpa Excel Worksheet Functions 5 April 15th 06 04:30 PM
Need an OR Function that will allow for Text vales......... nevi Excel Worksheet Functions 3 April 6th 06 07:15 PM
Validation error: Says range not found and it is there? JMike Excel Discussion (Misc queries) 1 February 11th 05 06:35 PM


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