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

molonlabe

New Member
Joined
Sep 7, 2016
Messages
17
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

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.

Forum statistics

Threads
1,214,614
Messages
6,120,525
Members
448,969
Latest member
mirek8991

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