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 » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

SUMPRODUCT or SUMIF



 
 
Thread Tools Display Modes
  #1  
Old August 27th, 2004, 05:18 PM
filky
external usenet poster
 
Posts: n/a
Default SUMPRODUCT or SUMIF

I am trying to create a formulae to sum a column of numbers where they
correspond to two criteria.

Column to sum is Column 7
Fisrt criteria is that the text in column 3 must be equal to the value
of cell H29
Second criteria is that the date in column 1 must be less than or equal
to the date in cell H1

I have created the following formulae which returns a #REF! error

=SUMPRODUCT((INDEX(Bookings!C7:C500,7,3)=H29),(IND EX(Bookings!A7:A500,7,1)=H1),(INDEX(Bookings!E7:E 500,7,5)))

Can anyone help?


---
Message posted from http://www.ExcelForum.com/

  #2  
Old August 27th, 2004, 05:27 PM
Frank Kabel
external usenet poster
 
Posts: n/a
Default

Hi
try
=SUMPRODUCT(--(Bookings!C7:C500=H29),--(Bookings!A7:A500=H1),Bookings!
G7:G500)

If you want to sum column G (column #7)

Also see:
http://www.xldynamic.com/source/xld.SUMPRODUCT.html

--
Regards
Frank Kabel
Frankfurt, Germany

"filky " schrieb im Newsbeitrag
...
I am trying to create a formulae to sum a column of numbers where

they
correspond to two criteria.

Column to sum is Column 7
Fisrt criteria is that the text in column 3 must be equal to the

value
of cell H29
Second criteria is that the date in column 1 must be less than or

equal
to the date in cell H1

I have created the following formulae which returns a #REF! error


=SUMPRODUCT((INDEX(Bookings!C7:C500,7,3)=H29),(IND EX(Bookings!A7:A500,7
,1)=H1),(INDEX(Bookings!E7:E500,7,5)))

Can anyone help?


---
Message posted from http://www.ExcelForum.com/


  #3  
Old August 27th, 2004, 05:30 PM
Aladin Akyurek
external usenet poster
 
Posts: n/a
Default

When you have 2 more conditions that must drive the desires summing,
ordinarily you cannot use a SumIf formula.

Try...

=SUMPRODUCT(--(Bookings!$C$7:$C$500=H29),--(Bookings!$A$7:$A$500=H1),--ISNU
MBER(Bookings!$A$7:$A$500),Bookings!$E$7:$E$500)

The range to sum appears to be in column E (from your attempted formula)
while you also say: "Column to sum is Column 7". So, adjust to suit.

"filky " wrote in message
...
I am trying to create a formulae to sum a column of numbers where they
correspond to two criteria.

Column to sum is Column 7
Fisrt criteria is that the text in column 3 must be equal to the value
of cell H29
Second criteria is that the date in column 1 must be less than or equal
to the date in cell H1

I have created the following formulae which returns a #REF! error


=SUMPRODUCT((INDEX(Bookings!C7:C500,7,3)=H29),(IND EX(Bookings!A7:A500,7,1)=
H1),(INDEX(Bookings!E7:E500,7,5)))

Can anyone help?


---
Message posted from http://www.ExcelForum.com/



  #4  
Old August 27th, 2004, 05:43 PM
filky
external usenet poster
 
Posts: n/a
Default

That is excellent. A new function for me, so thanks for the tip.


---
Message posted from http://www.ExcelForum.com/

 




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

Similar Threads
Thread Thread Starter Forum Replies Last Post
SUMIF vs SUM(IF(..)) vs SUMPRODUCT Harlan Grove Worksheet Functions 7 July 1st, 2004 10:22 PM
SUMIF vs SUM(IF(..)) vs SUMPRODUCT Harlan Grove General Discussion 7 July 1st, 2004 10:22 PM
Sumif, Sumproduct or....? Ricky Worksheet Functions 6 June 17th, 2004 03:59 AM
SUMPRODUCT vs SUMIF Function Frank Kabel Worksheet Functions 6 June 4th, 2004 04:26 AM


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