Well, I don't know if it needs a video!
Here's how it works though. The first SUMIF sums up everything in column C matching the PO in column A. Since according to your layout, you only show the available quantity in one place for each PO, this will return the starting available quantity for the PO, no matter which row of the PO you're looking at.
The next SUMIF adds up all the used amounts for the PO above the current line. See how the ranges have an absolute reference indicator $ for the top row, but not the bottom row. So as you drag the formula down, the range grows. Since I started 1 row above the current row, the SUMIFS will sum everything we've used so far.
Then when you take the difference of the 2 SUMIFS, you have the remaining amount for the PO.
Finally, let's say column B has a quantity of 5, and you have a remaining amount of 7. If you take the minimum of 5 and 7, you get 5, which is what the result is. On the next row, the 5 would be added to the used amount, so the remaining amount would change to 2. Let's say on that row column B has a quantity of 6, and there's a remaining amount of 2. Again, we take the minimum of 6 and 2, get 2 and that's the result. On the next row, 2 would be added to the used amount, so the remaining amount would become 0. You kind of have to work through the cases before you can really see how it works, but it's actually pretty easy. You just need to look at things from a different angle, which is why it took 2 attempts for me to get to it.
I'm glad I could help.