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  

SumIF with 2 Conditions



 
 
Thread Tools Display Modes
  #1  
Old May 14th, 2009, 02:08 PM posted to microsoft.public.excel.misc
lightbulb
external usenet poster
 
Posts: 62
Default SumIF with 2 Conditions

I'm needing to do a SUMIF function with two conditions, how do I do this?

For Example;

SUM the cells in AD7:AD294 when B4:B294 equal "F", AND when AD7:AD294 are
less than 200

Also, is there a way that if a column has dates and numbers in it you can
have a formula that disregards the dates and only sums the numbers rather
than treating the dates as numbers also?

Thanks!!
  #2  
Old May 14th, 2009, 02:20 PM posted to microsoft.public.excel.misc
eduardo
external usenet poster
 
Posts: 2,131
Default SumIF with 2 Conditions

Hi,
=sumproduct(--($B$4:$B$294="F"),--($AD$4:$AD$294200),$AD$4:$AD$294)

"lightbulb" wrote:

I'm needing to do a SUMIF function with two conditions, how do I do this?

For Example;

SUM the cells in AD7:AD294 when B4:B294 equal "F", AND when AD7:AD294 are
less than 200

Also, is there a way that if a column has dates and numbers in it you can
have a formula that disregards the dates and only sums the numbers rather
than treating the dates as numbers also?

Thanks!!

  #3  
Old May 14th, 2009, 08:28 PM posted to microsoft.public.excel.misc
Tony7659
external usenet poster
 
Posts: 20
Default SumIF with 2 Conditions

Hi lightbulb:

Consider:
=SUM(IF((B7:B294="F")*(AD7:AD294200),AD7:AD294))
-- It must be treated as an array so press F2 and then CTRL-SHIFT-ENTER --

Tony.

"lightbulb" wrote:

I'm needing to do a SUMIF function with two conditions, how do I do this?

For Example;

SUM the cells in AD7:AD294 when B4:B294 equal "F", AND when AD7:AD294 are
less than 200

Also, is there a way that if a column has dates and numbers in it you can
have a formula that disregards the dates and only sums the numbers rather
than treating the dates as numbers also?

Thanks!!

  #4  
Old May 14th, 2009, 08:31 PM posted to microsoft.public.excel.misc
Tony7659
external usenet poster
 
Posts: 20
Default SumIF with 2 Conditions

Hi lightbulb,

Consider:
=SUM(IF((B7:B294="F")*(AD7:AD294200),AD7:AD294))

-- It must be treated as an array so press F2 and then CTRL-SHIFT-ENTER.

Tony.

Press "Yes" if useful to you.

"lightbulb" wrote:

I'm needing to do a SUMIF function with two conditions, how do I do this?

For Example;

SUM the cells in AD7:AD294 when B4:B294 equal "F", AND when AD7:AD294 are
less than 200

Also, is there a way that if a column has dates and numbers in it you can
have a formula that disregards the dates and only sums the numbers rather
than treating the dates as numbers also?

Thanks!!

 




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 11:40 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.