Count every Nth collum

andes7

New Member
Joined
Jan 29, 2018
Messages
4
Hi, I have a formula that I'm struggling with.

I have 4 columns of data that repeat throughout a spreadsheet.

Column H, I, J and K that contain the following data types, Text, Number, Number and Currency. These 4 columns repeat a number of times, L, M, N, O, and P, Q, R, S, and T, U, V, W an so on.

In column D, E, F and G I wish to sum the columns.

In Column D, I wish to count all the instances of a particular instance of text (If the cell has a "x" in it)
In column E, I wish to sum all of the columns values (I, M, Q U and so on..)
In column F, I wish to sum all of the columns values (J, N, R, V and so on..)
In column G, I wish to sum all of the columns values (K, O, S, W and so on..)

Can anyone assist? This will then repeat for every ROW of values .
 
If you don't have headers that can guide the processing, try something lke:

=SUMPRODUCT(--(MOD(COLUMN(range)-COLUMN(INDEX(range,1,1)),4)=0),--(range="x"))

which allows you to count the x's at every 4th column.
 
Upvote 0

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.

Forum statistics

Threads
1,223,909
Messages
6,175,315
Members
452,634
Latest member
cpostell

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