John Caines
Well-known Member
- Joined
- Aug 28, 2006
- Messages
- 1,155
- Office Version
- 2019
- Platform
- Windows
Hi All.
I have a formula here that generates a number depending on the value in cell E2 which is;
Trouble is, if cell E2 is empty, I see a zero (0) in cell H2 where the formula is
Does anyone know if there is anyway to change the formula so it won't show a zero if cell E2 is empty?
PS, I know I can go into excel File/ options/advance and turn off 'Show a zero in cells that have a zero value' but I really don't want to uncheck this as it affects other cells in the sheet.
Hope there might be a way to tweak this formula so it doesn't show the zeros.
Many thanks in advance.
Hope someone can fathom it out, I just don't know the answer
Best regards
John C
I have a formula here that generates a number depending on the value in cell E2 which is;
Code:
=IF(ISBLANK(E2),,COUNTIF(B$7:$B13259, "*"&E2&"*")&" matches were found")
Trouble is, if cell E2 is empty, I see a zero (0) in cell H2 where the formula is
Does anyone know if there is anyway to change the formula so it won't show a zero if cell E2 is empty?
PS, I know I can go into excel File/ options/advance and turn off 'Show a zero in cells that have a zero value' but I really don't want to uncheck this as it affects other cells in the sheet.
Hope there might be a way to tweak this formula so it doesn't show the zeros.
Many thanks in advance.
Hope someone can fathom it out, I just don't know the answer
Best regards
John C