Shift column range to the right when dragging down

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
In E20 of your sample sheet:

=COUNTIF(OFFSET(Sheet1!$E$9:$K$9,MATCH(C20,Sheet1!$C$9:$C$14,0)-1,($E$19-1)*7),"v")

Change the ranges to match your sheet, drag down as needed.
 
Upvote 0
In E20 of your sample sheet:

=COUNTIF(OFFSET(Sheet1!$E$9:$K$9,MATCH(C20,Sheet1!$C$9:$C$14,0)-1,($E$19-1)*7),"v")

Change the ranges to match your sheet, drag down as needed.


Thank you! This works perfect :warning:

What if I would like to skip weekends - everytime I have 7 days the last 2 aren't included in the count - So v'es entered on saturday and sunday aren't included?

This kind of messes up things.
 
Upvote 0
Just one small change:

=COUNTIF(OFFSET(Sheet1!$E$9:$I$9,MATCH(C20,Sheet1!$C$9:$C$14,0)-1,($E$19-1)*7),"v")
 
Upvote 0
Just one small change:

=COUNTIF(OFFSET(Sheet1!$E$9:$I$9,MATCH(C20,Sheet1!$C$9:$C$14,0)-1,($E$19-1)*7),"v")


Perfect!

Is there a reason why this wouldn't work with more criteria, i.e. {"P";"V"}? I'm having some trouble
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,169
Members
453,021
Latest member
Justyna P

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