Confused - SumIf a range, if theres a value to the cell to the right of it

kltinaheart

New Member
Joined
Apr 20, 2018
Messages
14
Hey all!
Really stuck.

I want to take range, and add numbers together if there is a 5 digit number to the right of it.

So hypothetically, if I have 2 rows, and Column A,B and C,D And E,F, and G,H..
and column A, C, E, and G have numbers, and SOME of Column B, D, F, H have numbers..
I want to get a Full Sum of everything in A,C,E,G - IF there are ay 5 digit values t the right of each number (in BDFH)..

Tried Sum Ifs, tried If Sum, and im worse off than I was when I started
Best way to do this?
 

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.
Try:

ABCDEFGHI
1Header AHeader BHeader CHeader DHeader EHeader FHeader GHeader H
2151111191317
321234561012345146
435678971112345615
54822222121699999
6
744

<tbody>
</tbody>
Sheet5

Worksheet Formulas
CellFormula
A7=SUMPRODUCT(A2:H5*MOD(COLUMN(A1:H1),2)*(LEN(B2:I5)=5))

<tbody>
</tbody>

<tbody>
</tbody>
 
Upvote 0

Forum statistics

Threads
1,216,305
Messages
6,129,987
Members
449,550
Latest member
LML2892

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