I have (attempted) to create a function that will take a date as an argument, search for the number of occurrences of that date in a different sheet, increment a counter for each occurrence, and then return the counter. I keep getting 0 as the returned value.
Function code:
day is assigned the cell that contains the date being searched forPlease Login or Register to view this content.
area is the name of the sheet I'm searching in
area_range is the number of active rows in the sheet I'm searching in
Example function call:
=Misloads.xlsm!get_daily_misloads.get_daily_misloads(A2,"Day_Sort",day_sort_range)
Active sheet:
Active_Sheet.PNG
Target Sheet:
target_sheet.PNG
I've been wrestling with this for FAR too long so any help would be most appreciated.
Thanks
Bookmarks