Create a two column list excluding 0 values
<p>This seems extremely easy, but I just can't seem to get my head around it. So I have two columns. A has names and B has values. All I want to do is duplicate this list (into column D and E) just excluding 0 values in column B.(I put an example of what I am looking for below) </p>

<p><a href="https://i.stack.imgur.com/XG0xP.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/XG0xP.png" alt="enter image description here"></a></p>

<p>I am not that great at excel so this has been a bit of a challenge. I am trying to get it to work with a formula as I need it to automatically update when the values in column B change.
Any help would be greatly appreciated. </p>