Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default How to create a formula to calculate a sum of cells from a date ra

I want to create a sum of hours worked (Column B) to a date range (Column B)
and report it in another cell.

A B
1 Date OT Hrs
2 1/3/08 0.5
3 1/5/08 1.25
4 2/1/08 3.0

So when I create the formula it would tell me that I worked 1.75Hrs in Jan
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10,593
Default How to create a formula to calculate a sum of cells from a date ra

=SUMIF(A:A,"=2008-01-01",B:B)-SUMIF(A:A,"=2008-02-01",B:B)

--
---
HTH

Bob


(there's no email, no snail mail, but somewhere should be gmail in my addy)



"RayRay" wrote in message
...
I want to create a sum of hours worked (Column B) to a date range (Column
B)
and report it in another cell.

A B
1 Date OT Hrs
2 1/3/08 0.5
3 1/5/08 1.25
4 2/1/08 3.0

So when I create the formula it would tell me that I worked 1.75Hrs in Jan



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default How to create a formula to calculate a sum of cells from a dat

It did not work. It adds the date.

"Bob Phillips" wrote:

=SUMIF(A:A,"=2008-01-01",B:B)-SUMIF(A:A,"=2008-02-01",B:B)

--
---
HTH

Bob


(there's no email, no snail mail, but somewhere should be gmail in my addy)



"RayRay" wrote in message
...
I want to create a sum of hours worked (Column B) to a date range (Column
B)
and report it in another cell.

A B
1 Date OT Hrs
2 1/3/08 0.5
3 1/5/08 1.25
4 2/1/08 3.0

So when I create the formula it would tell me that I worked 1.75Hrs in Jan




  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default How to create a formula to calculate a sum of cells from a dat

I stated it incorrectly: (Should have said)

I want to create a sum of hours worked (Column B) related to the dates or
range of dates provided (Column A) and report those hours in another cell.

so in the original example, when I create the formula it would tell me that
I worked 1.75Hrs in Jan

"RayRay" wrote:

It did not work. It adds the date.

"Bob Phillips" wrote:

=SUMIF(A:A,"=2008-01-01",B:B)-SUMIF(A:A,"=2008-02-01",B:B)

--
---
HTH

Bob


(there's no email, no snail mail, but somewhere should be gmail in my addy)



"RayRay" wrote in message
...
I want to create a sum of hours worked (Column B) to a date range (Column
B)
and report it in another cell.

A B
1 Date OT Hrs
2 1/3/08 0.5
3 1/5/08 1.25
4 2/1/08 3.0

So when I create the formula it would tell me that I worked 1.75Hrs in Jan




  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10,593
Default How to create a formula to calculate a sum of cells from a dat

Which is exactly what my formula does.

--
---
HTH

Bob


(there's no email, no snail mail, but somewhere should be gmail in my addy)



"RayRay" wrote in message
...
I stated it incorrectly: (Should have said)

I want to create a sum of hours worked (Column B) related to the dates or
range of dates provided (Column A) and report those hours in another cell.

so in the original example, when I create the formula it would tell me
that
I worked 1.75Hrs in Jan

"RayRay" wrote:

It did not work. It adds the date.

"Bob Phillips" wrote:

=SUMIF(A:A,"=2008-01-01",B:B)-SUMIF(A:A,"=2008-02-01",B:B)

--
---
HTH

Bob


(there's no email, no snail mail, but somewhere should be gmail in my
addy)



"RayRay" wrote in message
...
I want to create a sum of hours worked (Column B) to a date range
(Column
B)
and report it in another cell.

A B
1 Date OT Hrs
2 1/3/08 0.5
3 1/5/08 1.25
4 2/1/08 3.0

So when I create the formula it would tell me that I worked 1.75Hrs
in Jan







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
formula to calculate age using birth date and current date lalah Excel Worksheet Functions 2 November 20th 05 10:51 PM
formula to calculate future date from date in cell plus days Chicesq Excel Worksheet Functions 8 November 3rd 05 12:25 PM
how do I create a formula to calculate sales tax using Yes & No Kel Excel Worksheet Functions 2 April 14th 05 12:23 AM
How do I create a formula that will calculate monthly changes fro. tucson Excel Worksheet Functions 2 February 16th 05 02:51 PM
How do I create a formula to calculate the average percentage rat LD Excel Worksheet Functions 5 January 13th 05 06:17 PM


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