Can I make the mode formula in numbers ignore blanks or zeros?
I have a spreadsheet with a dozen cells that uses sumifs to count instances which meet some regex criteria from another sheet.
I have another cell which uses the mode function to return the mode of those dozen cells.
The problem I have is some of those sumifs'd cells will be blank. They were often zero but I used custom formatting to replace zeros with nothing as per the advice I found on this community. One step forward, one step back.
I've tried putting an if condition in the sumifs formula to return "" if the result is 0 but the mode function errors as the data type is a string.
I've tried putting the same if statement into the mode function directly but it errors too as the if has to return true or false which also isn't a numeric data type, which mode needs.
To better visualise my setup, imagine a sheet with a years worth of bank account transactions. Then another sheet where I want to show the mode day that a specific transaction was made for each month. So one column for each month.
My problem is early in the year there is no data for later in the year (as in, in the future) therefore the mode function returns blank (or zero before the custom formatting).
I need a way to ignore blanks or zeros.
Thank you if you could be bothered to read the above boring essay. Thanks again if you have any insight toward a solution/workaround.
p.s. I'm still very much a novice so apologies if any of that terminology was wrong.
MacBook Pro 13″, macOS 12.7