Sum up columns for those adjacent columns that are not blank

Stevekent

Board Regular
Joined
Jul 24, 2013
Messages
92
Office Version
  1. 365
Platform
  1. Windows
Hi,
I've 2 columns, say A and B, up to 10 rows. A1, A2, A4, A7 to A10 got name, A3, A5, A6 blank cells. B1 to B10 all got figures. How can I sum up column B only for those Column A that has name on it.
 

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.

hnsd24_CN

Board Regular
Joined
Oct 13, 2020
Messages
78
Office Version
  1. 2016
Platform
  1. Windows
= SUMIF(A1:A10,“ <>”&“”,B1:B10)
 

Stevekent

Board Regular
Joined
Jul 24, 2013
Messages
92
Office Version
  1. 365
Platform
  1. Windows
Your formula didn't work on my worksheet. My column A are paste as blank data from other worksheet.
 

hnsd24_CN

Board Regular
Joined
Oct 13, 2020
Messages
78
Office Version
  1. 2016
Platform
  1. Windows
The value in column A is the result of formula calculation?
 

hnsd24_CN

Board Regular
Joined
Oct 13, 2020
Messages
78
Office Version
  1. 2016
Platform
  1. Windows

ADVERTISEMENT

= SUMIF(A1:A10,“> =”&A1,B1)
 

Stevekent

Board Regular
Joined
Jul 24, 2013
Messages
92
Office Version
  1. 365
Platform
  1. Windows
It works for the 1st 2 columns A and B but when I copy and paste to the next column C and D, it didn't. Why?
 

Stevekent

Board Regular
Joined
Jul 24, 2013
Messages
92
Office Version
  1. 365
Platform
  1. Windows
Your formula works only if the first cell (in this case A1) has value in it. If you copy and paste to C and D column and if cell C1 is blank, your formula can't works.
 

Peter_SSs

MrExcel MVP, Moderator
Joined
May 28, 2005
Messages
48,560
Office Version
  1. 365
Platform
  1. Windows
I suggest that you
  • update your Account details (click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)
  • investigate XL2BB for providing sample data to make it easier for helpers by not having to manually type out sample data to test with or to guess what you actually have.
 

Watch MrExcel Video

Forum statistics

Threads
1,130,129
Messages
5,640,286
Members
417,135
Latest member
zeusmining

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
Top