#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8
Default Sumif problem

Hello,

I am putting together an excel spreadsheet to manage employee time on
projects. The last function I want to add into this sheet is the
total amount of hours they worked each week over the last 4 weeks. I
have tried to do this with a sumif statement but it appears that sumif
statements cannot have 2 conditions. What I need to do is this...

If the date on "Tracking!" (column E) falls into 22 to 28 days ago
from the first day (Monday) of this week

then add the time from column D (and the same row) and put this total
on sheet "totals!" in cell B9.

Side note - If necessary, I can have a cell that I fill in manually
that will specify the first day for that particular week since week
numbers seem to be pain in excel.

Thanks in advance for your help.

-Karl

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8
Default Sumif problem

Hello Sandy,

I tried exactly what you said but must have mis-understood something.
Here is a link to the excel file. Maybe that will shed some light on
the subject.

http://dev.shireinteractive.com/Project_Time_Karl2.xls

Thanks for your help!

Karl

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,593
Default Sumif problem

A very small variation

=SUMPRODUCT((tracking!E2:E120=(TODAY()-WEEKDAY(TODAY(),2))-27)*
(tracking!E2:E120<=(TODAY()-WEEKDAY(TODAY(),2))-21)*tracking!D2:D120)

--
---
HTH

Bob

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



wrote in message
ups.com...
Hello Sandy,

I tried exactly what you said but must have mis-understood something.
Here is a link to the excel file. Maybe that will shed some light on
the subject.

http://dev.shireinteractive.com/Project_Time_Karl2.xls

Thanks for your help!

Karl



  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,345
Default Sumif problem

Your problem is that you did exactl as I said. <g

I goofed up on the range for the times by starting it in row 1 instead of
row 2. Use:

=SUMPRODUCT((Tracking!E2:E120=(TODAY()-WEEKDAY(TODAY(),2))-X)*(Tracking!E2:E120<=(TODAY()-WEEKDAY(TODAY(),2))-Y)*Tracking!D2:D120)

and replace the X and Y as follows:

4 weeks ago X = 27 Y = 21
3 weeks ago X = 20 Y = 14
2 weeks ago X =13 Y = 7
1 week ago X = 6 Y = 0


--
HTH

Sandy
In Perth, the ancient capital of Scotland
and the crowning place of kings


with @tiscali.co.uk


wrote in message
ups.com...
Hello Sandy,

I tried exactly what you said but must have mis-understood something.
Here is a link to the excel file. Maybe that will shed some light on
the subject.

http://dev.shireinteractive.com/Project_Time_Karl2.xls

Thanks for your help!

Karl





  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8
Default Sumif problem

Awesome! That is exacltly what I needed!!!!

Thanks for your help!

-Karl

  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,345
Default Sumif problem

You're welcome but the *fast on the draw* Bob Philips beat me to it <g

--

Sandy
In Perth, the ancient capital of Scotland
and the crowning place of kings


with @tiscali.co.uk


wrote in message
oups.com...
Awesome! That is exacltly what I needed!!!!

Thanks for your help!

-Karl



  #8   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4
Default Sumif problem

Try this:

Use a cell to get the current weeks Monday date:

E1 =TODAY()-WEEKDAY(TODAY(),3)

Then:

=SUMPRODUCT(--(A1:A20=E1-28),--(A1:A20<=E1-22),B1:B20)

Biff

" wrote:

Hello,

I am putting together an excel spreadsheet to manage employee time on
projects. The last function I want to add into this sheet is the
total amount of hours they worked each week over the last 4 weeks. I
have tried to do this with a sumif statement but it appears that sumif
statements cannot have 2 conditions. What I need to do is this...

If the date on "Tracking!" (column E) falls into 22 to 28 days ago
from the first day (Monday) of this week

then add the time from column D (and the same row) and put this total
on sheet "totals!" in cell B9.

Side note - If necessary, I can have a cell that I fill in manually
that will specify the first day for that particular week since week
numbers seem to be pain in excel.

Thanks in advance for your help.

-Karl


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
sumif problem RPW New Users to Excel 3 February 9th 07 10:14 PM
Sumif problem robi Excel Worksheet Functions 4 May 30th 06 07:31 AM
SUMIF problem wahur Excel Worksheet Functions 2 May 9th 06 03:06 PM
SUMIF problem Easydoesit Excel Worksheet Functions 5 June 16th 05 11:17 PM
SUMIF problem Carla Bradley Excel Worksheet Functions 1 April 1st 05 12:10 AM


All times are GMT +1. The time now is 03:05 AM.

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"