# Sum up columns for those adjacent columns that are not blank

#### Stevekent

##### Board Regular
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

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).

#### hnsd24_CN

##### Board Regular
= SUMIF（A1：A10，“ <>”＆“”，B1：B10）

#### Stevekent

##### Board Regular
Your formula didn't work on my worksheet. My column A are paste as blank data from other worksheet.

#### hnsd24_CN

##### Board Regular
The value in column A is the result of formula calculation?

#### hnsd24_CN

##### Board Regular

ADVERTISEMENT

= SUMIF（A1：A10，“> =”＆A1，B1）

#### Stevekent

##### Board Regular
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
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
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.

Replies
3
Views
113
Replies
5
Views
133
Replies
3
Views
50
Replies
1
Views
253
Replies
5
Views
130

Threads
1,127,199
Messages
5,623,321
Members
415,966
Latest member
ctorohuamanchumo

### 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

### 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