#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 53
Default Sumif

I have a formula:

=SUMIF(F8:F10000,"<="&TODAY()+30,G8:G10000)-SUMIF(F8:F10000,"<"&TODAY(),G8:G10000)

That I'd like to put a condition on that it will only sum if A8:A10000 =
"Approved"




  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,766
Default Sumif

Hi,

Try this

=sumproduct((F8:F10000<=today()+30)*(F8:F10000tod ay())*(A8:A10000="Approved")*(G8:G10000))

--
Regards,

Ashish Mathur
Microsoft Excel MVP
www.ashishmathur.com

"JeffK" wrote in message
...
I have a formula:

=SUMIF(F8:F10000,"<="&TODAY()+30,G8:G10000)-SUMIF(F8:F10000,"<"&TODAY(),G8:G10000)

That I'd like to put a condition on that it will only sum if A8:A10000 =
"Approved"




  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,520
Default Sumif

Use SUMPRODUCT()..

=SUMPRODUCT((A8:A10000="Approved")*(F8:F10000=TOD AY())*
(F8:F10000<=TODAY()+30),G8:G10000)

If you are using 2007 check out help on SUMIFS()

If this post helps click Yes
---------------
Jacob Skaria


"JeffK" wrote:

I have a formula:

=SUMIF(F8:F10000,"<="&TODAY()+30,G8:G10000)-SUMIF(F8:F10000,"<"&TODAY(),G8:G10000)

That I'd like to put a condition on that it will only sum if A8:A10000 =
"Approved"




  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 506
Default Sumif

Use this formula...

=SUM((A8:A10000="APPROVED")*(F8:F10000<=TODAY()+30 )*G8:G10000)

This is an array formula so after pasting the formula place the cursor in
that cell and give F2 then press Cntrl+Shift+Enter.

After pressing Cntrl+Shift+Enter your formula will look like this..

{=SUM((A8:A10000="APPROVED")*(F8:F10000<=TODAY()+3 0)*G8:G10000)}

Then just drag it to the remaining cells or copy and paste the formula for
the remaining cells.

If this post helps, Click Yes!

--------------------
(Ms-Exl-Learner)
--------------------



"JeffK" wrote:

I have a formula:

=SUMIF(F8:F10000,"<="&TODAY()+30,G8:G10000)-SUMIF(F8:F10000,"<"&TODAY(),G8:G10000)

That I'd like to put a condition on that it will only sum if A8:A10000 =
"Approved"




  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 506
Default Sumif

Use this formula...

=SUM((A8:A10000="APPROVED")*(F8:F10000<=TODAY()+30 )*G8:G10000)

This is an array formula so after pasting the formula place the cursor in
that cell and give F2 then press Cntrl+Shift+Enter.

After pressing Cntrl+Shift+Enter your formula will look like this..

{=SUM((A8:A10000="APPROVED")*(F8:F10000<=TODAY()+3 0)*G8:G10000)}

Then just drag it to the remaining cells or copy and paste the formula for
the remaining cells.

If this post helps, Click Yes!

--------------------
(Ms-Exl-Learner)
--------------------



"JeffK" wrote:

I have a formula:

=SUMIF(F8:F10000,"<="&TODAY()+30,G8:G10000)-SUMIF(F8:F10000,"<"&TODAY(),G8:G10000)

That I'd like to put a condition on that it will only sum if A8:A10000 =
"Approved"






  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,651
Default Sumif

I think you probably intended to say
=SUM((A8:A10000="APPROVED")*(F8:F10000<=TODAY()+30 )*(F8:F10000TODAY())*G8:G10000)?Personally I would use SUMPRODUCT, rather than an array formula with SUM,but the choice is yours.--David Biddulph"Ms-Exl-Learner" wrote in ... Use this formula... =SUM((A8:A10000="APPROVED")*(F8:F10000<=TODAY()+30 )*G8:G10000) This is an array formula so after pasting the formula place the cursor in that cell and give F2 then press Cntrl+Shift+Enter. After pressing Cntrl+Shift+Enter your formula will look like this.. {=SUM((A8:A10000="APPROVED")*(F8:F10000<=TODAY()+3 0)*G8:G10000)} Then just drag it to the remaining cells or copy and paste the formula for the remaining cells. If this post helps, Click Yes! -------------------- (Ms-Exl-Learner) -------------------- "JeffK" wrote: I have a formula:=SUMIF(F8:F10000,"<="&TODAY()+30,G8:G1 0000)-SUMIF(F8:F10000,"<"&TODAY(),G8:G10000) That I'd like to put a condition on that it will only sum if A8:A10000 = "Approved"

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 MadWoman Excel Discussion (Misc queries) 3 July 29th 08 10:21 PM
sumif for multi conditions. i.e sumif(A1:A10,"Jon" and B1:B10,"A" Harry Seymour Excel Worksheet Functions 9 June 12th 07 10:47 PM
Embedding a Sumif in a sumif C.Pflugrath Excel Worksheet Functions 5 August 31st 05 07:31 PM
nested sumif or sumif with two criteria dshigley Excel Worksheet Functions 5 April 5th 05 03:34 AM
SUMIF - Range name to used for the "sum_range" portion of a SUMIF function Oscar Excel Worksheet Functions 2 January 11th 05 11:01 PM


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