sumif Only if the first column contains Data

snjpverma

Well-known Member
Joined
Oct 2, 2008
Messages
1,584
Office Version
  1. 365
Platform
  1. Windows
Book1
ABCD
1159340423659
2142684491142
3134465256
41709156395408
5
6
7output#VALUE!
Sheet1
Cell Formulas
RangeFormula
D7D7=SUMIFS(A1:D4,A1:A5,">0")


Only the row 1, 2 and 4 should be added because these rows have data in the first column. Please assist.
Calculated manually, the desired outcome is 7103.
 

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)
How about
Excel Formula:
=SUMPRODUCT((A1:A4<>"")*(A1:D4))
 
Upvote 0
Solution
@Fluff, Thanks it works perfect.
Just curious to know if there is a way to do it through Sumif?
I was trying on my own to do it with sumif but didn't succeed.
 
Upvote 0
With sumifs, the ranges must all be the same size, which is why it didn't work.
 
Upvote 0

Forum statistics

Threads
1,215,514
Messages
6,125,272
Members
449,219
Latest member
daynle

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