Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22
Default Using Sumif for 2 criterias

I have a sheet that I'm using to calculate counts and sums based on values
that change daily.

I have "Days" (A1:A10) column that tells me how long an item has been
sitting idle.
I have "UPB" (B1:B10) field that tells me the value of that item.

What I'm trying to do is get a sum if days is greater than or equal to 180
and the UPB is less than 50,000.

I need to put the results in A12, if that matters to you.


  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,058
Default Using Sumif for 2 criterias

Something like:

=SUMPRODUCT((A1:A10180)*(B1:B10<50000)*(B1:B10))


For example:

100 12
100 12
100 23
100 45
100 67
100 43
190 500000
190 1
190 2
190 3

returns 6

Whenever you have more than one criteria alwasy consider =SUMPRODUCT(). For
more detail see:

http://www.xldynamic.com/source/xld.SUMPRODUCT.html
--
Gary''s Student - gsnu200852


"Jarod" wrote:

I have a sheet that I'm using to calculate counts and sums based on values
that change daily.

I have "Days" (A1:A10) column that tells me how long an item has been
sitting idle.
I have "UPB" (B1:B10) field that tells me the value of that item.

What I'm trying to do is get a sum if days is greater than or equal to 180
and the UPB is less than 50,000.

I need to put the results in A12, if that matters to you.


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5,441
Default Using Sumif for 2 criterias

Jarod,

In A12, enter

=SUMPRODUCT((A1:A10=180)*(B1:B10<50000))

HTH,
Bernie
MS Excel MVP


"Jarod" wrote in message
...
I have a sheet that I'm using to calculate counts and sums based on values
that change daily.

I have "Days" (A1:A10) column that tells me how long an item has been
sitting idle.
I have "UPB" (B1:B10) field that tells me the value of that item.

What I'm trying to do is get a sum if days is greater than or equal to 180
and the UPB is less than 50,000.

I need to put the results in A12, if that matters to you.




  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,276
Default Using Sumif for 2 criterias

Hi,
=sumproduct(--(A1:A10=180),--(B1:B10<50000),B1:B10)

"Jarod" wrote:

I have a sheet that I'm using to calculate counts and sums based on values
that change daily.

I have "Days" (A1:A10) column that tells me how long an item has been
sitting idle.
I have "UPB" (B1:B10) field that tells me the value of that item.

What I'm trying to do is get a sum if days is greater than or equal to 180
and the UPB is less than 50,000.

I need to put the results in A12, if that matters to you.


  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5,441
Default Using Sumif for 2 criterias

I'm sorry - my mind stopped on 'calculate counts'

=SUMPRODUCT((A1:A10=180)*(B1:B10<50000))

For sums

=SUMPRODUCT((A1:A10=180)*(B1:B10<50000)*B1:B10)

HTH,
Bernie
MS Excel MVP


"Bernie Deitrick" <deitbe @ consumer dot org wrote in message
...
Jarod,

In A12, enter

=SUMPRODUCT((A1:A10=180)*(B1:B10<50000))

HTH,
Bernie
MS Excel MVP


"Jarod" wrote in message
...
I have a sheet that I'm using to calculate counts and sums based on values
that change daily.

I have "Days" (A1:A10) column that tells me how long an item has been
sitting idle.
I have "UPB" (B1:B10) field that tells me the value of that item.

What I'm trying to do is get a sum if days is greater than or equal to 180
and the UPB is less than 50,000.

I need to put the results in A12, if that matters to you.






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 function with two criterias ABRAR Excel Worksheet Functions 4 March 18th 09 12:57 PM
SUMIF with 2 criterias tiger_27 Excel Discussion (Misc queries) 2 July 21st 08 08:26 AM
Sumif with two criterias leung Excel Worksheet Functions 1 November 10th 06 05:14 AM
Sumif with two criterias gibz Excel Worksheet Functions 3 July 19th 06 05:52 PM
SUMIF with 2 criterias Laddy Excel Worksheet Functions 10 April 25th 05 01:48 PM


All times are GMT +1. The time now is 01:47 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"