# How can I extend the range of formula for multiple cells quickly

#### molonlabe

##### New Member
I have an attendance tracker and I need to stretch it to include 2017. One cell has the following formula. There are seven like it per employee. The other managers use this sheet so the easier the better because either they will do it themselves, or I will have to do it for them and would like to be able to do it quickly. Attached is a blank copy, each team has varying number of employees and that number will change. Maybe a macro that changes the formulas in the first row and then copies down? Only thing is that the most of the other managers don't know how to use macros, but it would be very easy for me. If you guys have a better idea, please let me know!

Code:
``[COLOR=#333333]=IF(ISBLANK(A9),"",SUMPRODUCT((D\$7=\$K9:\$NK9)*(\$K\$8:\$NK\$8>=EDATE(\$I\$1,-6))*(\$K\$8:\$NK\$8<=\$I\$1))-SUMPRODUCT((D\$7=\$L9:\$NK9)*(\$L\$8:\$NK\$8>=EDATE(\$I\$1,-6))*(\$K\$8:\$NJ\$8<=\$I\$1)*(D\$7=\$K9:\$NJ9)*(\$K\$8:\$NJ\$8>=EDATE(\$I\$1,-6))*(\$K\$8:\$NJ\$8<=\$I\$1)))[/COLOR]``

### Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.

Replies
4
Views
134
Replies
2
Views
159
Replies
3
Views
236
Replies
1
Views
402
Replies
1
Views
253

1,191,367
Messages
5,986,246
Members
440,012
Latest member
StumpedGump1987

### 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.

### Which adblocker are you using?

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

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