Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,814
Default How can I use the SUMIF function using multiple criteria

Problem #1
I am also trying to find out the number of LATE hours by work center. So if
the work center has some hours logged in but there less than a given date i
want to see them. The formula I'm trying to use is.
=SUM(IF(($D$2:$D$150="sheet2!A3")*$B$2:$B$150<"3/2/2009"),$J$2:$J$150)).
This formula does not give me the correct results. column B has the dates,
column D has the work centers and column J has the
hours.
Problem #2
I have entered the dates excluding weekends at the top of each column. I
have the work centers listed in the rows going down the page. I want to be
able to see the number of hours by work center by date.

using excel 2003
--
SRC
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default How can I use the SUMIF function using multiple criteria

=SUM(IF(($D$2:$D$150="sheet2!A3")*$B$2:$B$150<" 3/2/2009"),$J$2:$J$150))

Try this normally entered formula.

Use a cell to hold your date criteria:

A1 = 3/2/2009

=SUMPRODUCT(--(D2:D150=Sheet2!A3),--(B2:B150<A1),J2:J150)

Problem #2 = Where do we lookk for the hours worked?

--
Biff
Microsoft Excel MVP


"Steve" wrote in message
...
Problem #1
I am also trying to find out the number of LATE hours by work center. So
if
the work center has some hours logged in but there less than a given date
i
want to see them. The formula I'm trying to use is.
=SUM(IF(($D$2:$D$150="sheet2!A3")*$B$2:$B$150<"3/2/2009"),$J$2:$J$150)).
This formula does not give me the correct results. column B has the dates,
column D has the work centers and column J has the
hours.
Problem #2
I have entered the dates excluding weekends at the top of each column. I
have the work centers listed in the rows going down the page. I want to be
able to see the number of hours by work center by date.

using excel 2003
--
SRC



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,814
Default How can I use the SUMIF function using multiple criteria

Thanks, That solved problem #1.

For problem #2.
The hours I'm looking for are kept in column J. So in the column that has
the work date, I'm trying to see if there are any hours from column J for the
specific work center listed in column D.
I hope that makes sense.
Thanks in advance!
--
SRC


"T. Valko" wrote:

=SUM(IF(($D$2:$D$150="sheet2!A3")*$B$2:$B$150<" 3/2/2009"),$J$2:$J$150))


Try this normally entered formula.

Use a cell to hold your date criteria:

A1 = 3/2/2009

=SUMPRODUCT(--(D2:D150=Sheet2!A3),--(B2:B150<A1),J2:J150)

Problem #2 = Where do we lookk for the hours worked?

--
Biff
Microsoft Excel MVP


"Steve" wrote in message
...
Problem #1
I am also trying to find out the number of LATE hours by work center. So
if
the work center has some hours logged in but there less than a given date
i
want to see them. The formula I'm trying to use is.
=SUM(IF(($D$2:$D$150="sheet2!A3")*$B$2:$B$150<"3/2/2009"),$J$2:$J$150)).
This formula does not give me the correct results. column B has the dates,
column D has the work centers and column J has the
hours.
Problem #2
I have entered the dates excluding weekends at the top of each column. I
have the work centers listed in the rows going down the page. I want to be
able to see the number of hours by work center by date.

using excel 2003
--
SRC




  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default How can I use the SUMIF function using multiple criteria

I'm having a hard time trying to picture how your data is setup.

Column D = work center
Column J = hours worked

Where's the date?

--
Biff
Microsoft Excel MVP


"Steve" wrote in message
...
Thanks, That solved problem #1.

For problem #2.
The hours I'm looking for are kept in column J. So in the column that has
the work date, I'm trying to see if there are any hours from column J for
the
specific work center listed in column D.
I hope that makes sense.
Thanks in advance!
--
SRC


"T. Valko" wrote:

=SUM(IF(($D$2:$D$150="sheet2!A3")*$B$2:$B$150<" 3/2/2009"),$J$2:$J$150))


Try this normally entered formula.

Use a cell to hold your date criteria:

A1 = 3/2/2009

=SUMPRODUCT(--(D2:D150=Sheet2!A3),--(B2:B150<A1),J2:J150)

Problem #2 = Where do we lookk for the hours worked?

--
Biff
Microsoft Excel MVP


"Steve" wrote in message
...
Problem #1
I am also trying to find out the number of LATE hours by work center.
So
if
the work center has some hours logged in but there less than a given
date
i
want to see them. The formula I'm trying to use is.
=SUM(IF(($D$2:$D$150="sheet2!A3")*$B$2:$B$150<"3/2/2009"),$J$2:$J$150)).
This formula does not give me the correct results. column B has the
dates,
column D has the work centers and column J has the
hours.
Problem #2
I have entered the dates excluding weekends at the top of each column.
I
have the work centers listed in the rows going down the page. I want to
be
able to see the number of hours by work center by date.

using excel 2003
--
SRC






  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,814
Default How can I use the SUMIF function using multiple criteria

All this date is on Sheet1,
Column B shows the start date
Column C shows the end date
Column D has the work center
Column J has the hours
The other columns on Sheet1 are not coming into play.

The chart showing this schedule is on Sheet2.

Column A shows all the work centers on Sheet2
and row 2 has all the work days listed

--
SRC


"T. Valko" wrote:

I'm having a hard time trying to picture how your data is setup.

Column D = work center
Column J = hours worked

Where's the date?

--
Biff
Microsoft Excel MVP


"Steve" wrote in message
...
Thanks, That solved problem #1.

For problem #2.
The hours I'm looking for are kept in column J. So in the column that has
the work date, I'm trying to see if there are any hours from column J for
the
specific work center listed in column D.
I hope that makes sense.
Thanks in advance!
--
SRC


"T. Valko" wrote:

=SUM(IF(($D$2:$D$150="sheet2!A3")*$B$2:$B$150<" 3/2/2009"),$J$2:$J$150))

Try this normally entered formula.

Use a cell to hold your date criteria:

A1 = 3/2/2009

=SUMPRODUCT(--(D2:D150=Sheet2!A3),--(B2:B150<A1),J2:J150)

Problem #2 = Where do we lookk for the hours worked?

--
Biff
Microsoft Excel MVP


"Steve" wrote in message
...
Problem #1
I am also trying to find out the number of LATE hours by work center.
So
if
the work center has some hours logged in but there less than a given
date
i
want to see them. The formula I'm trying to use is.
=SUM(IF(($D$2:$D$150="sheet2!A3")*$B$2:$B$150<"3/2/2009"),$J$2:$J$150)).
This formula does not give me the correct results. column B has the
dates,
column D has the work centers and column J has the
hours.
Problem #2
I have entered the dates excluding weekends at the top of each column.
I
have the work centers listed in the rows going down the page. I want to
be
able to see the number of hours by work center by date.

using excel 2003
--
SRC








  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default How can I use the SUMIF function using multiple criteria

Ok, try this on Sheet2...

B2:F2 = dates
A3:A8 = work centers

Enter this formula in B3:

=SUMPRODUCT(--(Sheet1!$B$2:$B$150=B$2),--(Sheet1!$D$2:$D$150=$A3),Sheet1!$J$2:$J$150)

Copy across to F3 then down to row 8.

--
Biff
Microsoft Excel MVP


"Steve" wrote in message
...
All this date is on Sheet1,
Column B shows the start date
Column C shows the end date
Column D has the work center
Column J has the hours
The other columns on Sheet1 are not coming into play.

The chart showing this schedule is on Sheet2.

Column A shows all the work centers on Sheet2
and row 2 has all the work days listed

--
SRC


"T. Valko" wrote:

I'm having a hard time trying to picture how your data is setup.

Column D = work center
Column J = hours worked

Where's the date?

--
Biff
Microsoft Excel MVP


"Steve" wrote in message
...
Thanks, That solved problem #1.

For problem #2.
The hours I'm looking for are kept in column J. So in the column that
has
the work date, I'm trying to see if there are any hours from column J
for
the
specific work center listed in column D.
I hope that makes sense.
Thanks in advance!
--
SRC


"T. Valko" wrote:

=SUM(IF(($D$2:$D$150="sheet2!A3")*$B$2:$B$150<" 3/2/2009"),$J$2:$J$150))

Try this normally entered formula.

Use a cell to hold your date criteria:

A1 = 3/2/2009

=SUMPRODUCT(--(D2:D150=Sheet2!A3),--(B2:B150<A1),J2:J150)

Problem #2 = Where do we lookk for the hours worked?

--
Biff
Microsoft Excel MVP


"Steve" wrote in message
...
Problem #1
I am also trying to find out the number of LATE hours by work
center.
So
if
the work center has some hours logged in but there less than a given
date
i
want to see them. The formula I'm trying to use is.
=SUM(IF(($D$2:$D$150="sheet2!A3")*$B$2:$B$150<"3/2/2009"),$J$2:$J$150)).
This formula does not give me the correct results. column B has the
dates,
column D has the work centers and column J has the
hours.
Problem #2
I have entered the dates excluding weekends at the top of each
column.
I
have the work centers listed in the rows going down the page. I want
to
be
able to see the number of hours by work center by date.

using excel 2003
--
SRC








  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,766
Default How can I use the SUMIF function using multiple criteria

Hi,

For problem, array enter (Ctrl+Shift+Enter) the following formula

=SUM(IF(($D$2:$D$150=sheet2!A3)*($B$2:$B$150<"3/2/2009"),$J$2:$J$150))

--
Regards,

Ashish Mathur
Microsoft Excel MVP
www.ashishmathur.com

"Steve" wrote in message
...
Problem #1
I am also trying to find out the number of LATE hours by work center. So
if
the work center has some hours logged in but there less than a given date
i
want to see them. The formula I'm trying to use is.
=SUM(IF(($D$2:$D$150="sheet2!A3")*$B$2:$B$150<"3/2/2009"),$J$2:$J$150)).
This formula does not give me the correct results. column B has the dates,
column D has the work centers and column J has the
hours.
Problem #2
I have entered the dates excluding weekends at the top of each column. I
have the work centers listed in the rows going down the page. I want to be
able to see the number of hours by work center by date.

using excel 2003
--
SRC


  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,766
Default How can I use the SUMIF function using multiple criteria

Hi,

Please change the array formula to:

=SUM(IF(($D$2:$D$150=sheet2!A3)*($B$2:$B$150<sheet 2!A4),$J$2:$J$150)), where
sheet2!A4 holds the date


--
Regards,

Ashish Mathur
Microsoft Excel MVP
www.ashishmathur.com

"Steve" wrote in message
...
Problem #1
I am also trying to find out the number of LATE hours by work center. So
if
the work center has some hours logged in but there less than a given date
i
want to see them. The formula I'm trying to use is.
=SUM(IF(($D$2:$D$150="sheet2!A3")*$B$2:$B$150<"3/2/2009"),$J$2:$J$150)).
This formula does not give me the correct results. column B has the dates,
column D has the work centers and column J has the
hours.
Problem #2
I have entered the dates excluding weekends at the top of each column. I
have the work centers listed in the rows going down the page. I want to be
able to see the number of hours by work center by date.

using excel 2003
--
SRC


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
SUMPRODUCT / SUMIF on Multiple Worksheets with Multiple Criteria kazoo Excel Discussion (Misc queries) 2 August 21st 08 06:22 PM
Sumif with multiple criteria TamIam Excel Worksheet Functions 1 June 3rd 08 01:29 PM
Using SUMIF function with multiple criteria for Aging josnah Excel Worksheet Functions 2 June 4th 06 10:18 AM
Sumif function with multiple criteria Bobito Excel Worksheet Functions 4 November 29th 05 04:47 PM
SumIf Function using multiple criteria Jamie A Miller Excel Worksheet Functions 1 February 4th 05 05:14 PM


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