I need the sum of 1 cell based on another cell which is blan

afs24

Board Regular
Joined
Sep 26, 2002
Messages
237
Trailer Count
56498 20
30
13544 65
16589 100
34163 800
200
13541 100

I'm trying to sum the count only for the count with a trailer # in the cell next to it. I only want those counts. If anyone could provide me with the answer with a formula and another with code it would be appreciated.
 

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.

Aladin Akyurek

MrExcel MVP
Joined
Feb 14, 2002
Messages
85,209
On 2002-10-03 18:49, afs24 wrote:
Trailer Count
56498 20
30
13544 65
16589 100
34163 800
200
13541 100

I'm trying to sum the count only for the count with a trailer # in the cell next to it. I only want those counts. If anyone could provide me with the answer with a formula and another with code it would be appreciated.

Let A2:B8 house the sample you provided...

Is this what you want:

=SUMPRODUCT(ISNUMBER(A2:A8)+0,B2:B8)
 

IML

MrExcel MVP
Joined
Feb 15, 2002
Messages
1,743
You may also be able to get away with
=SUMIF(A2:A8,"<>",B2:B8)

good luck
 

Forum statistics

Threads
1,144,510
Messages
5,724,782
Members
422,578
Latest member
annsalinas

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