I'm kinda new to excel but not so much to programming however, I have run into a snag trying to complete a formula to remove cells from a different formula if they equal zero. The data in these cells change month to month and instead of removing the cells from the equation manually I'm trying to set up a formula to do it automatically.
So here is the original formula:
=MIN(M19:N49)
Simple right. Find the lowest number in the dataset. The issue is that cells that return 0 mean that no data was collected for that day. To give an example in February this year there is 29 days. That means days 30 and 31 will return 0. M19/N19 = day 1 and M49/N49 = day 31. So I tried to create a formula to fix this issue automatically by looking at the dataset for 0's and then removing them from the equation to give me a real minimum number.
This formula is where I'm at:
=IF(M19:N49=0,M50-(M19:N49=0))
I tried to amend the original formula ~=MIN(M19:N49)~ as well to include the removal of the cells that equal zero but I'm honestly at a loss. Can someone help me?
Bookmarks