Urgent help please! sum ifs please help. Sum one column value if Column A is greater than Column B

donggri84

New Member
Joined
Jul 31, 2013
Messages
18
Hello,

I can't seem to create a correct formula for in cases where summing column D "sales target" of only "Division A" (Column A) if Value in column C is greater than value in Column B

This didn't work
=SUMIFS(D3:D60,A3:A160,"A",C3:C160,">B3:B160,B3")

Please help!

Division

<tbody>
</tbody>
Planned Launch Date

<tbody>
</tbody>
Actual Launch Date

<tbody>
</tbody>
Sales Target

<tbody>
</tbody>
A15$1
A11$6000
cAA$0
CAA$0
A70$25000
A35$4000
B21$5000
A22$4000
A23$3000
C45$5000
B34$2000
A12$3000
A21$2000
C34$1000

<tbody>
</tbody>
 

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.
Try:

Code:
=SUMPRODUCT(--(A3:A160="A"),--(C3:C160>B3:B160),D3:D160)
 
Upvote 0
Hello!

Thank you! But it isn't working and is giving me "0"
what is "--" if you be kind to inform?

Thank you!
 
Upvote 0
I tested AhoyNC's formula and it displays the proper result.

As a test, on a test page, change the values to $1 so it can be a bit more readable.
(The "--" changes a "True" into a "1" and a "False" into a 0, so it can used as a number)

Note: the formula starts calculating on A3, because your OP Formula started at A3
You can change it to A2 if need be.

AhoyNC's Formula tested & works (Excel 2010), starting with cell A2

Code:
=SUMPRODUCT(--(A2:A160="A"),--(C2:C160>B2:B160),D2:D160)

Hope this helps
 
Last edited:
Upvote 0
I tested AhoyNC's formula and it displays the proper result.

As a test, on a test page, change the values to $1 so it can be a bit more readable.
(The "--" changes a "True" into a "1" and a "False" into a 0, so it can used as a number)

Note: the formula starts calculating on A3, because your OP Formula started at A3
You can change it to A2 if need be.

AhoyNC's Formula tested & works (Excel 2010), starting with cell A2

Code:
=SUMPRODUCT(--(A2:A160="A"),--(C2:C160>B2:B160),D2:D160)

Hope this helps

Thank you!
with "--" seems to work.
but just for my learning experience, could you kindly inform me what "--" is?

Thank you!
Sorry! I'm very new!
 
Upvote 0
donrrri84
If you haven't been able to get it to work, please post a small sample of where it fails. Also, advise what answer you expect to see.
 
Upvote 0
I think you may need to confirm the formula with [Ctrl][Shift][Enter]<ctrl><shift><enter>, and not just [Enter]<enter>. That hasn't been mentioned in the thread to date, and is often a stumbling block.</enter></enter></shift></ctrl>
 
Last edited:
Upvote 0

Forum statistics

Threads
1,221,310
Messages
6,159,176
Members
451,543
Latest member
cesymcox

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top