I have something like this:
And want to obtain these two columns:
Does anyone have an idea to do this using only formulas in Excel?