A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
You formula only specifies the "value-if-true" part. If the condition is false, Excel will then return FALSE.
Change the formula to either
=IF(G16>D16,"Yes","No")
or
=IF(G16>D16,"Yes","")
depending on your preference.