#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 86
Default Sumif function?

I have a summary sheet of 30 staff (staff 1, staff 2 etc at top of
columns), dates down the A Column with figures in the relevant cells.
What I need is a formula to get "Totals" for months. Dates down the
left are weekly dates and range is named "Date", Figures under Staff 1
is named "Staff 1", Staff 2 is named "Staff 2" etc. I have the months
listed in cells B34:B46 and want the total for the relevant months in
C34:C36.

I just want the formula for "staff 1", I should be able to work the
rest out from that.

Any help would be appreciated.

TIA
Esra
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,420
Default Sumif function?

=SUMPRODUCT((YEAR(A2:A20)=2008)*(MONTH(A2:A20)=3)* (B2:AE20))

--
__________________________________
HTH

Bob

"Esradekan" wrote in message
...
I have a summary sheet of 30 staff (staff 1, staff 2 etc at top of
columns), dates down the A Column with figures in the relevant cells.
What I need is a formula to get "Totals" for months. Dates down the
left are weekly dates and range is named "Date", Figures under Staff 1
is named "Staff 1", Staff 2 is named "Staff 2" etc. I have the months
listed in cells B34:B46 and want the total for the relevant months in
C34:C36.

I just want the formula for "staff 1", I should be able to work the
rest out from that.

Any help would be appreciated.

TIA
Esra



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 86
Default Sumif function?

On Aug 28, 9:45*am, "Bob Phillips" wrote:
=SUMPRODUCT((YEAR(A2:A20)=2008)*(MONTH(A2:A20)=3)* (B2:AE20))

--
__________________________________
HTH

Bob

"Esradekan" wrote in message

...



I have a summary sheet of 30 staff (staff 1, staff 2 etc at top of
columns), dates down the A Column with figures in the relevant cells.
What I need is a formula to get "Totals" for months. *Dates down the
left are weekly dates and range is named "Date", Figures under Staff 1
is named "Staff 1", Staff 2 is named "Staff 2" etc. *I have the months
listed in cells B34:B46 and want the total for the relevant months in
C34:C36.


I just want the formula for "staff 1", I should be able to work the
rest out from that.


Any help would be appreciated.


TIA
Esra- Hide quoted text -


- Show quoted text -


No, sorry.

Date range is not a whole year, part of one year and part of another
(ie. April 2008 to March 2009), but just doesnt seem to work.

Esra
  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,420
Default Sumif function?

I presume this is not working for you, but I do not understand the deetails.

--
__________________________________
HTH

Bob

"Esradekan" wrote in message
...
On Aug 28, 9:45 am, "Bob Phillips" wrote:
=SUMPRODUCT((YEAR(A2:A20)=2008)*(MONTH(A2:A20)=3)* (B2:AE20))

--
__________________________________
HTH

Bob

"Esradekan" wrote in message

...



I have a summary sheet of 30 staff (staff 1, staff 2 etc at top of
columns), dates down the A Column with figures in the relevant cells.
What I need is a formula to get "Totals" for months. Dates down the
left are weekly dates and range is named "Date", Figures under Staff 1
is named "Staff 1", Staff 2 is named "Staff 2" etc. I have the months
listed in cells B34:B46 and want the total for the relevant months in
C34:C36.


I just want the formula for "staff 1", I should be able to work the
rest out from that.


Any help would be appreciated.


TIA
Esra- Hide quoted text -


- Show quoted text -


No, sorry.

Date range is not a whole year, part of one year and part of another
(ie. April 2008 to March 2009), but just doesnt seem to work.

Esra


  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 622
Default Sumif function?

=SUMPRODUCT(--(MONTH(C34:C46)=relevantmonths),D34:D46)

You didn't state how you get your months to choose, so you'll have to
add that in.


  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 86
Default Sumif function?

Months to choose are in B34:B46 - thought I did state that.

Thanks anyway.

Esra

On Aug 29, 4:13*am, Spiky wrote:
=SUMPRODUCT(--(MONTH(C34:C46)=relevantmonths),D34:D46)

You didn't state how you get your months to choose, so you'll have to
add that in.


  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10,124
Default Sumif function?

And, exactly WHAT is in c34:c46?
1,2,3,5
Jan,Feb,Mar,

In your ORIGINAL post, you should endeavor to explain FULLY since mind
reading is another group.
Eventually, you will learn.............

--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"Esradekan" wrote in message
...
Months to choose are in B34:B46 - thought I did state that.

Thanks anyway.

Esra

On Aug 29, 4:13 am, Spiky wrote:
=SUMPRODUCT(--(MONTH(C34:C46)=relevantmonths),D34:D46)

You didn't state how you get your months to choose, so you'll have to
add that in.


  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 622
Default Sumif function?

On Aug 28, 9:48 pm, Esradekan wrote:
Months to choose are in B34:B46 - thought I did state that.

Thanks anyway.

Esra


I misunderstood something, and your explanation was a bit confusing.
Is this the setup?

You have data listed in A1:[?]30; with dates in A, Staff1 in B, Staff2
in C, etc. You have a list of months in B34:B46. You want a total for
those months in C34:C46.

If that's correct, then these ought to work (and be able to be copied
for the others), although I haven't tested it:
=SUMIF(Date,$B34,Staff1)
=SUMPRODUCT(--($A$1:$A$30=$B34),B$1:B$30)

Also:
You said your Name for staff 1 is "Staff 1". That doesn't seem correct
because I don't believe Excel allows for spaces in Names. You'll have
to correct my formula with the precise Names.
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
How to nest a left function within a sumif function? LisaK Excel Worksheet Functions 2 April 23rd 23 11:46 AM
Using the TODAY() function in a SUMIF function JPB Excel Worksheet Functions 4 July 27th 06 04:01 PM
SUMIF Function Inside SUMPRODUCT Function Abdul Waheed Excel Worksheet Functions 17 September 19th 05 04:24 PM
Can SUMIF function include AND function ShaneS Excel Worksheet Functions 1 May 17th 05 03:24 AM
SUMIF - Range name to used for the "sum_range" portion of a SUMIF function Oscar Excel Worksheet Functions 2 January 11th 05 11:01 PM


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