ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   nno result if one cell empty (https://www.excelbanter.com/excel-discussion-misc-queries/204023-nno-result-if-one-cell-empty.html)

gazman

nno result if one cell empty
 
=IF(ISNA(H$12-G$12),"",(H$12-G$12))

Hi I would like no result, blank cell, if h12 or g12 is empty but keep
getting negatives if one cell is empty. The above formula does'nt work. Hope
someone can help. Thanks

Elisabeth D

nno result if one cell empty
 
One way:

=IF(G12="","",IF(H12="","",H12-G12))

Elisabeth

"Gazman" wrote:

=IF(ISNA(H$12-G$12),"",(H$12-G$12))

Hi I would like no result, blank cell, if h12 or g12 is empty but keep
getting negatives if one cell is empty. The above formula does'nt work. Hope
someone can help. Thanks


T. Valko

nno result if one cell empty
 
One way:

=IF(COUNT(G$12:H$12)<2,"",H$12-G$12)

--
Biff
Microsoft Excel MVP


"Gazman" wrote in message
...
=IF(ISNA(H$12-G$12),"",(H$12-G$12))

Hi I would like no result, blank cell, if h12 or g12 is empty but keep
getting negatives if one cell is empty. The above formula does'nt work.
Hope
someone can help. Thanks




gazman

nno result if one cell empty
 
Thankyou both very much for your help!

"T. Valko" wrote:

One way:

=IF(COUNT(G$12:H$12)<2,"",H$12-G$12)

--
Biff
Microsoft Excel MVP


"Gazman" wrote in message
...
=IF(ISNA(H$12-G$12),"",(H$12-G$12))

Hi I would like no result, blank cell, if h12 or g12 is empty but keep
getting negatives if one cell is empty. The above formula does'nt work.
Hope
someone can help. Thanks





T. Valko

nno result if one cell empty
 
You're welcome!

--
Biff
Microsoft Excel MVP


"Gazman" wrote in message
...
Thankyou both very much for your help!

"T. Valko" wrote:

One way:

=IF(COUNT(G$12:H$12)<2,"",H$12-G$12)

--
Biff
Microsoft Excel MVP


"Gazman" wrote in message
...
=IF(ISNA(H$12-G$12),"",(H$12-G$12))

Hi I would like no result, blank cell, if h12 or g12 is empty but keep
getting negatives if one cell is empty. The above formula does'nt work.
Hope
someone can help. Thanks








All times are GMT +1. The time now is 05:21 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com