sumif non blank depending on criteria

sachin483

Board Regular
Joined
Mar 31, 2015
Messages
157
Office Version
  1. 2019
Platform
  1. Windows
how can i sum column D of non blank column C depending criteria of column A i have tried sumif but it totaling full column


COL ACOL BCOL CCOL D
AATTTQ146228
AATTTQ276700
AATTTQ367967
AATTTQ467967
AATTTAC30443
AATTTAG606220
AATTT Total 895525
AATTT Avg 316068
BBTTTQ146228
BBTTTQ276700
BBTTTQ367967
BBTTTQ467967
BBTTTAC30443
BBTTTAG606220
BBTTT Total 895525
BBTTT Avg 316068
AA
BB

<colgroup><col><col><col><col></colgroup><tbody>
</tbody>

=SUMIF(C1:C17,"<>",D1:D17)
 

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"
try

=SUM(IF($A$2:$A$17="AA",IF(LEN($C$2:$C$17)>0,$D$2:$D$17)))

confirm with shift-control-enter together
 
Upvote 0

Forum statistics

Threads
1,214,901
Messages
6,122,157
Members
449,068
Latest member
shiz11713

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