That was very interesting I never thought in such a way. Given explanation was fantastic. To make that more simple,
Weight of Structure + weight of helium/hydrogen = floating
Weight of structure+ weight of nothingness (although loghter than the above) = no floating
here you only considering the weight. But you have to consider more on the volume as well as the pressure.