I tried this but it doesn't work for me using this formula =Occurrences(A:A,E:E,"A")No, you can reference another sheet in the range part of the formula, a custom function works just like an inbuilt function in that respect.
So I've just written a little custom function that counts non blank cells, called ws.
I've then got a sheet of data called other_sheet and then a 'report sheet'.
In the report sheet I can put
=ws(other_sheet!A1:A6)
and it will count the non blanks in that range on that sheet.
Or do I have to start with A1 to the end I wonder rather than the entire column?
I tried on sheet 3 to do the same =Occurrences('Staff Absence'!A:A,'Staff Absence'!E:E,"A")
But both sheets give me an error. On the same sheet it shows #VALUE! (former) and on sheet 3 (latter) it gives me #NAME?
Last edited: