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

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.
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,216,030
Messages
6,128,407
Members
449,448
Latest member
Andrew Slatter

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