Countif help

bakerman

Board Regular
Joined
Sep 9, 2005
Messages
188
I am using count if to look at a table containing letters ( no problems )
The countif i'm using looks in a block of 4 cells and returns the answer. In the next cell i want to to enter another count if formula that looks in the same row but misses out four colloums eg
A1=COUNTIF(BN34:BQ34,"L")
B1=COUNTIF(BV34:BY34,"L")

What I'm looking for is an easy way to get excel to create the formulas if I drag a cell across a sheet rather than me having to type each formula in seperatly
 

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.
Hi bakerman

In A1 try:

=COUNTIF(OFFSET($BN$34,0,8*(COLUMN()-COLUMN($A$1)),1,4),"L")
copy to right

Hope this helps
PGC
 
Upvote 0

Forum statistics

Threads
1,214,951
Messages
6,122,442
Members
449,083
Latest member
Ava19

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