#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
yiota
 
Posts: n/a
Default sumif function

i have 3 columns (date, cash and check)

i would like to sum cash if date is eg 07/03/2006 and check is Ok

sorry for my english
thank you

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Dave Peterson
 
Posts: n/a
Default sumif function

=sumproduct(--(a1:a10=date(2006,3,7)),--(b1:b10="ok"),(c1:c10))

Adjust the range2 to match--but you can't use whole columns.

=sumproduct() likes to work with numbers. The -- stuff changes trues and falses
to 1's and 0's.

Bob Phillips explains =sumproduct() in much more detail he
http://www.xldynamic.com/source/xld.SUMPRODUCT.html

And J.E. McGimpsey has some notes at:
http://mcgimpsey.com/excel/formulae/doubleneg.html

Ps. I checked for March 7, 2006.

yiota wrote:

i have 3 columns (date, cash and check)

i would like to sum cash if date is eg 07/03/2006 and check is Ok

sorry for my english
thank you


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
CLR
 
Posts: n/a
Default sumif function

Nice explanation Dave......

=SUMPRODUCT(--(A1:A10=F1),--(B1:B10="ok"),(C1:C10))

This mod to your formula will allow the OP to put the date in cell F1 and
change it there without having to change it in the formula if desired.

Vaya con Dios,
Chuck, CABGx3



"Dave Peterson" wrote:

=sumproduct(--(a1:a10=date(2006,3,7)),--(b1:b10="ok"),(c1:c10))

Adjust the range2 to match--but you can't use whole columns.

=sumproduct() likes to work with numbers. The -- stuff changes trues and falses
to 1's and 0's.

Bob Phillips explains =sumproduct() in much more detail he
http://www.xldynamic.com/source/xld.SUMPRODUCT.html

And J.E. McGimpsey has some notes at:
http://mcgimpsey.com/excel/formulae/doubleneg.html

Ps. I checked for March 7, 2006.

yiota wrote:

i have 3 columns (date, cash and check)

i would like to sum cash if date is eg 07/03/2006 and check is Ok

sorry for my english
thank you


--

Dave Peterson

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Bob Phillips
 
Posts: n/a
Default sumif function

=SUMPRODUCT(--(A2:A20=--"2006-03-07"),--(C2:C20="Ok"),B2:B20)

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"yiota" wrote in message
...
i have 3 columns (date, cash and check)

i would like to sum cash if date is eg 07/03/2006 and check is Ok

sorry for my english
thank you



  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
yiota
 
Posts: n/a
Default sumif function

thank you all but i can't make it work

"Bob Phillips" wrote:

=SUMPRODUCT(--(A2:A20=--"2006-03-07"),--(C2:C20="Ok"),B2:B20)

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"yiota" wrote in message
...
i have 3 columns (date, cash and check)

i would like to sum cash if date is eg 07/03/2006 and check is Ok

sorry for my english
thank you






  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Duke Carey
 
Posts: n/a
Default sumif function

What do you mean by you "can't make it work"? Do you get an error? Are you
sure the dates are actually dates? Is "OK" the correct value to be looking
foor in the check column?

A little help from you allows us to better help you.

"yiota" wrote:

thank you all but i can't make it work

"Bob Phillips" wrote:

=SUMPRODUCT(--(A2:A20=--"2006-03-07"),--(C2:C20="Ok"),B2:B20)

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"yiota" wrote in message
...
i have 3 columns (date, cash and check)

i would like to sum cash if date is eg 07/03/2006 and check is Ok

sorry for my english
thank 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
Can I add and IF function to a SUMIF function? adscrim Excel Worksheet Functions 4 January 21st 06 12:32 PM
SUMIF Function Inside SUMPRODUCT Function Abdul Waheed Excel Worksheet Functions 17 September 19th 05 04:24 PM
SumIF function ACDenver Excel Discussion (Misc queries) 2 August 17th 05 09:47 PM
Sumif function with remote cell references hennis Excel Worksheet Functions 1 August 12th 05 01:54 AM
SUMIF function yak10 Excel Worksheet Functions 0 February 12th 05 05:12 PM


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