A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Using Sumif for 2 criterias



 
 
Thread Tools Display Modes
  #1  
Old May 14th, 2009, 06:31 PM posted to microsoft.public.excel.misc
Jarod
external usenet poster
 
Posts: 23
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  
Old May 14th, 2009, 07:07 PM posted to microsoft.public.excel.misc
Gary''s Student
external usenet poster
 
Posts: 7,584
Default Using Sumif for 2 criterias

Something like:

=SUMPRODUCT((A1:A10180)*(B1:B1050000)*(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  
Old May 14th, 2009, 07:09 PM posted to microsoft.public.excel.misc
Bernie Deitrick
external usenet poster
 
Posts: 2,496
Default Using Sumif for 2 criterias

Jarod,

In A12, enter

=SUMPRODUCT((A1:A10=180)*(B1:B1050000))

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  
Old May 14th, 2009, 07:13 PM posted to microsoft.public.excel.misc
eduardo
external usenet poster
 
Posts: 2,131
Default Using Sumif for 2 criterias

Hi,
=sumproduct(--(A1:A10=180),--(B1:B1050000),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  
Old May 14th, 2009, 07:17 PM posted to microsoft.public.excel.misc
Bernie Deitrick
external usenet poster
 
Posts: 2,496
Default Using Sumif for 2 criterias

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

=SUMPRODUCT((A1:A10=180)*(B1:B1050000))

For sums

=SUMPRODUCT((A1:A10=180)*(B1:B1050000)*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:B1050000))

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.






 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 04:12 PM.


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