Count Data in Range increment by 5 columns

bdtran

New Member
Joined
Oct 11, 2018
Messages
33
Hi All,

I encountered a situation where I need to create a formula get the result as in the Row5 by counting how many #5 in row3 range increment by 5 columns for the next result.

example below:

B5=COUNTIF($B3:F3,"5")
C5=COUNTIF($B3:K3,"5")
D5=COUNTIF($B3:P3,"5")
E5=COUNTIF($B3:U3,"5")

Is there a way to create a formula in B5 and drag along get the result automatically.

Thanks,
*BDT


ABCDEFGHIJKLMNOPQRSTU
11234567891011121314151617181920
2
3Data56565455525566534555
4
5Count how many "5" every 5 columns increment36912

<tbody>
</tbody>
 
Last edited:

Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.
Try this in B5 and copy rightwards.

Code:
[FONT=Verdana,Arial,Tahoma,Calibri,Geneva,sans-serif]=COUNTIFS(OFFSET($B$3,,,,COLUMNS($B$5:B5)*5),5)[/FONT]
 
Upvote 0

Forum statistics

Threads
1,215,328
Messages
6,124,299
Members
449,149
Latest member
mwdbActuary

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