Hi all
I'm creating a database for employee's attendance. I have created a sheet called "Raw Overview" whereby the totals of sickness/holiday etc are calculated according to the employee and month.
The code I currently have is
but it returns "#VALUE!"![]()
Please Login or Register to view this content.
'Employee' is a range I made just by ctrl + shift + down arrow in the column, same with 'date' but I am constantly adding data - is there anywhere I can tell excel to rename the range when a new field is added?
The information will be pulled from worksheet "Raw Data" where new entries are added daily using a userform, so I'm finding it hard defining where excel needs to look.
"Raw Data" sheet Raw Data to use.PNG
"Raw Overview" sheet Overview.PNG
I have attached the workbook for any who can help me.
Attendance Master - EXCEL HELP.xlsm
SO:
1. Can somebody confirm that the above formula I am using is correct? It seems to work but I can't copy and paste it. It should be pulling data from the dates between 1st jan and 31st.
2. Can excel rename a range after it adds a new row of data to it?
Bookmarks