Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 110
Default Sumif from two criteria in one column

I am trying to sum column if column I meets two criteriam I have tried sumif
and sumproduct with no results.


Columns A is Staff Names
Columns B thru G are week days
Column H adds total hours for individuals row
Column I designates if row hours are on site, home office, or over time

I want to sum the total for Monday if column I equals OS or HO

TABLE
NAME MON TUE WED THU FRI SAT SUN TTL TYPE
SMITH 8 8 8 8 8
40 OS
SMITH 2
2 OT
JONES 8 8 8 8 8
40 HO
JONES 1 1
2 OT

RESULTS
ST 16 16 16 16 16
OT 1 2 1

Thanks for any help

Terri
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,268
Default Sumif from two criteria in one column

=SUM(SUMIF(I2:I6,{"OS";"HO"},B2:B6))


adapt to fit your data


--
Regards,

Peo Sjoblom


"Terri" wrote in message
...
I am trying to sum column if column I meets two criteriam I have tried
sumif
and sumproduct with no results.


Columns A is Staff Names
Columns B thru G are week days
Column H adds total hours for individuals row
Column I designates if row hours are on site, home office, or over time

I want to sum the total for Monday if column I equals OS or HO

TABLE
NAME MON TUE WED THU FRI SAT SUN TTL TYPE
SMITH 8 8 8 8 8
40 OS
SMITH 2
2 OT
JONES 8 8 8 8 8
40 HO
JONES 1 1
2 OT

RESULTS
ST 16 16 16 16 16
OT 1 2 1

Thanks for any help

Terri



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4,339
Default Sumif from two criteria in one column

try:

=sumproduct((B2:B100)*(I2:I100={"OS","HO"}))

"Terri" wrote:

I am trying to sum column if column I meets two criteriam I have tried sumif
and sumproduct with no results.


Columns A is Staff Names
Columns B thru G are week days
Column H adds total hours for individuals row
Column I designates if row hours are on site, home office, or over time

I want to sum the total for Monday if column I equals OS or HO

TABLE
NAME MON TUE WED THU FRI SAT SUN TTL TYPE
SMITH 8 8 8 8 8
40 OS
SMITH 2
2 OT
JONES 8 8 8 8 8
40 HO
JONES 1 1
2 OT

RESULTS
ST 16 16 16 16 16
OT 1 2 1

Thanks for any help

Terri

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 110
Default Sumif from two criteria in one column

That worked thank you very much

"Peo Sjoblom" wrote:

=SUM(SUMIF(I2:I6,{"OS";"HO"},B2:B6))


adapt to fit your data


--
Regards,

Peo Sjoblom


"Terri" wrote in message
...
I am trying to sum column if column I meets two criteriam I have tried
sumif
and sumproduct with no results.


Columns A is Staff Names
Columns B thru G are week days
Column H adds total hours for individuals row
Column I designates if row hours are on site, home office, or over time

I want to sum the total for Monday if column I equals OS or HO

TABLE
NAME MON TUE WED THU FRI SAT SUN TTL TYPE
SMITH 8 8 8 8 8
40 OS
SMITH 2
2 OT
JONES 8 8 8 8 8
40 HO
JONES 1 1
2 OT

RESULTS
ST 16 16 16 16 16
OT 1 2 1

Thanks for any help

Terri




  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 110
Default Sumif from two criteria in one column

That works too, thank you very much

"Toppers" wrote:

try:

=sumproduct((B2:B100)*(I2:I100={"OS","HO"}))

"Terri" wrote:

I am trying to sum column if column I meets two criteriam I have tried sumif
and sumproduct with no results.


Columns A is Staff Names
Columns B thru G are week days
Column H adds total hours for individuals row
Column I designates if row hours are on site, home office, or over time

I want to sum the total for Monday if column I equals OS or HO

TABLE
NAME MON TUE WED THU FRI SAT SUN TTL TYPE
SMITH 8 8 8 8 8
40 OS
SMITH 2
2 OT
JONES 8 8 8 8 8
40 HO
JONES 1 1
2 OT

RESULTS
ST 16 16 16 16 16
OT 1 2 1

Thanks for any help

Terri

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 with multiple criteria in one column my Excel Discussion (Misc queries) 4 July 5th 07 06:56 PM
Sumif with criteria help Shannan Excel Worksheet Functions 3 May 30th 07 08:01 PM
SUMIF with more than one criteria EJ Excel Discussion (Misc queries) 2 July 19th 06 02:19 PM
nested sumif or sumif with two criteria dshigley Excel Worksheet Functions 5 April 5th 05 03:34 AM
SUMIF with more than 1 criteria Mike@Q Excel Worksheet Functions 4 November 26th 04 12:17 AM


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