Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Excel SUMIF formula statisfying two conditions

For all rows in other worksheet where column A = X and column B =
Y, sum column C.

I have tried numerous ways to do this, for instance the other posts'
formulas, however it was still not successful. Any other suggestions?

Sheet 1
Column 1 Column 2 Column 3
Title Date Amount
B Jan-08 10.00
A Feb-08 15.00
A Jan-08 25.00
B Jan-08 10.00

Sheet 2
Column 1 Column 2 Column 3 Column 4
Title Jan-08 Feb-08 Mar-08
A
B

Need forumla to sum if Title in sheet 1 = Title in sheet 2 and Date in sheet
1 = Date in sheet 2, then sum amount in sheet 1.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,047
Default Excel SUMIF formula statisfying two conditions

=sumproduct(--(a2:a1000="A")*(b2:b1000=jan/08),(c2:c1000))

the same concept for the second sheet.

hth
--
regards from Brazil
Thanks in advance for your feedback.
Marcelo



"Eva L" escreveu:

For all rows in other worksheet where column A = X and column B =
Y, sum column C.

I have tried numerous ways to do this, for instance the other posts'
formulas, however it was still not successful. Any other suggestions?

Sheet 1
Column 1 Column 2 Column 3
Title Date Amount
B Jan-08 10.00
A Feb-08 15.00
A Jan-08 25.00
B Jan-08 10.00

Sheet 2
Column 1 Column 2 Column 3 Column 4
Title Jan-08 Feb-08 Mar-08
A
B

Need forumla to sum if Title in sheet 1 = Title in sheet 2 and Date in sheet
1 = Date in sheet 2, then sum amount in sheet 1.

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default Excel SUMIF formula statisfying two conditions

My formula looks like this, but It returned with #NUM!.
=SUMPRODUCT(--(Input!A:A=A6)*(Input!B:B=B5),(Input!D:D))

Please let me know if there's any other ways. Thanks!

"Marcelo" wrote:

=sumproduct(--(a2:a1000="A")*(b2:b1000=jan/08),(c2:c1000))

the same concept for the second sheet.

hth
--
regards from Brazil
Thanks in advance for your feedback.
Marcelo



"Eva L" escreveu:

For all rows in other worksheet where column A = X and column B =
Y, sum column C.

I have tried numerous ways to do this, for instance the other posts'
formulas, however it was still not successful. Any other suggestions?

Sheet 1
Column 1 Column 2 Column 3
Title Date Amount
B Jan-08 10.00
A Feb-08 15.00
A Jan-08 25.00
B Jan-08 10.00

Sheet 2
Column 1 Column 2 Column 3 Column 4
Title Jan-08 Feb-08 Mar-08
A
B

Need forumla to sum if Title in sheet 1 = Title in sheet 2 and Date in sheet
1 = Date in sheet 2, then sum amount in sheet 1.

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,311
Default Excel SUMIF formula statisfying two conditions

The main reason for this is that you have to specify a range when using
SUMPRODUCT. I'm not sure of the reasoning behind combining double uranary
and the * multiplier.

Try this:
=SUMPRODUCT(--(Input!A2:A100=A6),--(Input!B2:B100=B5),(Input!D2:D100))

HTH,
Paul

--

"Eva L" wrote in message
...
My formula looks like this, but It returned with #NUM!.
=SUMPRODUCT(--(Input!A:A=A6)*(Input!B:B=B5),(Input!D:D))

Please let me know if there's any other ways. Thanks!

"Marcelo" wrote:

=sumproduct(--(a2:a1000="A")*(b2:b1000=jan/08),(c2:c1000))

the same concept for the second sheet.

hth
--
regards from Brazil
Thanks in advance for your feedback.
Marcelo



"Eva L" escreveu:

For all rows in other worksheet where column A = X and column B =
Y, sum column C.

I have tried numerous ways to do this, for instance the other posts'
formulas, however it was still not successful. Any other suggestions?

Sheet 1
Column 1 Column 2 Column 3
Title Date Amount
B Jan-08 10.00
A Feb-08 15.00
A Jan-08 25.00
B Jan-08 10.00

Sheet 2
Column 1 Column 2 Column 3 Column 4
Title Jan-08 Feb-08 Mar-08
A
B

Need forumla to sum if Title in sheet 1 = Title in sheet 2 and Date in
sheet
1 = Date in sheet 2, then sum amount in sheet 1.



  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default Excel SUMIF formula statisfying two conditions

I have modified a bit to satisfy my need, however it returned with zeros when
my input data satisfied the conditions.
=SUMPRODUCT(--(Input!$A$2:$A$500=$A6),--(Input!$B$2:$B$500=B$5),(Input!$D$2:$D$500))

If anything could help, I'd appreciate it. Thanks in advance.

"PCLIVE" wrote:

The main reason for this is that you have to specify a range when using
SUMPRODUCT. I'm not sure of the reasoning behind combining double uranary
and the * multiplier.

Try this:
=SUMPRODUCT(--(Input!A2:A100=A6),--(Input!B2:B100=B5),(Input!D2:D100))

HTH,
Paul

--

"Eva L" wrote in message
...
My formula looks like this, but It returned with #NUM!.
=SUMPRODUCT(--(Input!A:A=A6)*(Input!B:B=B5),(Input!D:D))

Please let me know if there's any other ways. Thanks!

"Marcelo" wrote:

=sumproduct(--(a2:a1000="A")*(b2:b1000=jan/08),(c2:c1000))

the same concept for the second sheet.

hth
--
regards from Brazil
Thanks in advance for your feedback.
Marcelo



"Eva L" escreveu:

For all rows in other worksheet where column A = X and column B =
Y, sum column C.

I have tried numerous ways to do this, for instance the other posts'
formulas, however it was still not successful. Any other suggestions?

Sheet 1
Column 1 Column 2 Column 3
Title Date Amount
B Jan-08 10.00
A Feb-08 15.00
A Jan-08 25.00
B Jan-08 10.00

Sheet 2
Column 1 Column 2 Column 3 Column 4
Title Jan-08 Feb-08 Mar-08
A
B

Need forumla to sum if Title in sheet 1 = Title in sheet 2 and Date in
sheet
1 = Date in sheet 2, then sum amount in sheet 1.






  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,311
Default Excel SUMIF formula statisfying two conditions

You might want to check to see if the conditions are, in fact, satisfied.
For example: Are the values Sheet1 column B formatted as dates, or are they
just text?

Find a row that you think matches the criteria and then test it with a
formula.
Enter this formula (replace "B2" with the cell reference that you think is a
match).
=Input!B2=B5

If the two cells are a match, it will return TRUE. If not, it returns
FALSE.

Do the same thing for column A (replace "A" with the cell reference that you
think is a match).
=Input!A2=A6

For text fields, check for possible trailing spaces that in your data.

HTH,
Paul



--

"Eva L" wrote in message
...
I have modified a bit to satisfy my need, however it returned with zeros
when
my input data satisfied the conditions.
=SUMPRODUCT(--(Input!$A$2:$A$500=$A6),--(Input!$B$2:$B$500=B$5),(Input!$D$2:$D$500))

If anything could help, I'd appreciate it. Thanks in advance.

"PCLIVE" wrote:

The main reason for this is that you have to specify a range when using
SUMPRODUCT. I'm not sure of the reasoning behind combining double
uranary
and the * multiplier.

Try this:
=SUMPRODUCT(--(Input!A2:A100=A6),--(Input!B2:B100=B5),(Input!D2:D100))

HTH,
Paul

--

"Eva L" wrote in message
...
My formula looks like this, but It returned with #NUM!.
=SUMPRODUCT(--(Input!A:A=A6)*(Input!B:B=B5),(Input!D:D))

Please let me know if there's any other ways. Thanks!

"Marcelo" wrote:

=sumproduct(--(a2:a1000="A")*(b2:b1000=jan/08),(c2:c1000))

the same concept for the second sheet.

hth
--
regards from Brazil
Thanks in advance for your feedback.
Marcelo



"Eva L" escreveu:

For all rows in other worksheet where column A = X and column B =
Y, sum column C.

I have tried numerous ways to do this, for instance the other posts'
formulas, however it was still not successful. Any other
suggestions?

Sheet 1
Column 1 Column 2 Column 3
Title Date Amount
B Jan-08 10.00
A Feb-08 15.00
A Jan-08 25.00
B Jan-08 10.00

Sheet 2
Column 1 Column 2 Column 3 Column 4
Title Jan-08 Feb-08 Mar-08
A
B

Need forumla to sum if Title in sheet 1 = Title in sheet 2 and Date
in
sheet
1 = Date in sheet 2, then sum amount in sheet 1.






  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,047
Default Excel SUMIF formula statisfying two conditions

you can not use the entire column in sumproduct functions, use a defined
range eg a2:a65530

hth
--
regards from Brazil
Thanks in advance for your feedback.
Marcelo



"Eva L" escreveu:

My formula looks like this, but It returned with #NUM!.
=SUMPRODUCT(--(Input!A:A=A6)*(Input!B:B=B5),(Input!D:D))

Please let me know if there's any other ways. Thanks!

"Marcelo" wrote:

=sumproduct(--(a2:a1000="A")*(b2:b1000=jan/08),(c2:c1000))

the same concept for the second sheet.

hth
--
regards from Brazil
Thanks in advance for your feedback.
Marcelo



"Eva L" escreveu:

For all rows in other worksheet where column A = X and column B =
Y, sum column C.

I have tried numerous ways to do this, for instance the other posts'
formulas, however it was still not successful. Any other suggestions?

Sheet 1
Column 1 Column 2 Column 3
Title Date Amount
B Jan-08 10.00
A Feb-08 15.00
A Jan-08 25.00
B Jan-08 10.00

Sheet 2
Column 1 Column 2 Column 3 Column 4
Title Jan-08 Feb-08 Mar-08
A
B

Need forumla to sum if Title in sheet 1 = Title in sheet 2 and Date in sheet
1 = Date in sheet 2, then sum amount in sheet 1.

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 function in excel for multiple conditions instead of one curious44 Excel Worksheet Functions 3 March 26th 08 11:17 PM
SUMIF with two conditions (or) [email protected] Excel Worksheet Functions 7 November 12th 07 06:09 PM
Sumif with n conditions Caio Milani Excel Worksheet Functions 1 March 28th 07 03:53 PM
SUMIF conditions AAMIFC Excel Worksheet Functions 3 March 15th 06 03:24 AM
SUMIF with 2 conditions 1990 Excel Worksheet Functions 8 January 4th 06 10:39 PM


All times are GMT +1. The time now is 08:20 AM.

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"