Hi all, i need help in subtraction from 2 different rows of data, but i have a few variables:
Project - A, B
Duration - 1Y, 2Y
Department - HR, Finance, Mktg
Country - UK, US
Input (this is for project A only)
Project | Duration | Department | Country | Jan | Feb | Mar | Apr | May | Jun | Jul | Aug | Sep | Oct | Nov | Dec |
A | 2Y | HR | UK | 10 | 11 | 9 | 1 | 3 | 12 | 14 | 11 | 10 | 7 | 4 | 3 |
A | 2Y | HR | US | 12 | 14 | 8 | 2 | 5 | 13 | 15 | 12 | 9 | 6 | 6 | 2 |
A | 1Y | HR | UK | 11 | 9 | 1 | 3 | 10 | 11 | 9 | 10 | 7 | 4 | 3 | 14 |
A | 1Y | HR | US | 14 | 8 | 2 | 5 | 12 | 14 | 8 | 9 | 6 | 6 | 2 | 15 |
A | 2Y | Finance | UK | 3 | 12 | 14 | 3 | 12 | 14 | 11 | 10 | 9 | 1 | 3 | 12 |
A | 2Y | Finance | US | 5 | 13 | 15 | 5 | 13 | 15 | 12 | 9 | 8 | 2 | 5 | 13 |
A | 1Y | Finance | UK | 9 | 1 | 3 | 10 | 11 | 9 | 14 | 11 | 11 | 9 | 10 | 7 |
A | 1Y | Finance | US | 8 | 2 | 5 | 12 | 14 | 8 | 15 | 12 | 14 | 8 | 9 | 6 |
A | 2Y | Mktg | UK | 7 | 4 | 3 | 3 | 10 | 11 | 11 | 10 | 9 | 14 | 11 | 14 |
A | 2Y | Mktg | US | 6 | 6 | 2 | 5 | 12 | 14 | 12 | 9 | 8 | 15 | 12 | 15 |
A | 1Y | Mktg | UK | 11 | 9 | 1 | 3 | 10 | 11 | 11 | 10 | 9 | 1 | 3 | 12 |
A | 1Y | Mktg | US | 14 | 8 | 2 | 5 | 12 | 14 | 12 | 9 | 8 | 2 | 5 | 13 |
Desired output (an additional line to find the delta, in red font)
Project | Duration | Department | Country | Jan | Feb | Mar | Apr | May | Jun | Jul | Aug | Sep | Oct | Nov | Dec |
A | 2Y | HR | UK | 10 | 11 | 9 | 1 | 3 | 12 | 14 | 11 | 10 | 7 | 4 | 3 |
A | 2Y | HR | US | 12 | 14 | 8 | 2 | 5 | 13 | 15 | 12 | 9 | 6 | 6 | 2 |
A | 2Y | HR | UK - US | -2 | -3 | 1 | -1 | -2 | -1 | -1 | -1 | 1 | 1 | -2 | 1 |
A | 1Y | HR | UK | 11 | 9 | 1 | 3 | 10 | 11 | 9 | 10 | 7 | 4 | 3 | 14 |
A | 1Y | HR | US | 14 | 8 | 2 | 5 | 12 | 14 | 8 | 9 | 6 | 6 | 2 | 15 |
A | 1Y | HR | UK - US | -3 | 1 | -1 | -2 | -2 | -3 | 1 | 1 | 1 | -2 | 1 | -1 |
A | 2Y | Finance | UK | 3 | 12 | 14 | 3 | 12 | 14 | 11 | 10 | 9 | 1 | 3 | 12 |
A | 2Y | Finance | US | 5 | 13 | 15 | 5 | 13 | 15 | 12 | 9 | 8 | 2 | 5 | 13 |
A | 2Y | Finance | UK - US | -2 | -1 | -1 | -2 | -1 | -1 | -1 | 1 | 1 | -1 | -2 | -1 |
A | 1Y | Finance | UK | 9 | 1 | 3 | 10 | 11 | 9 | 14 | 11 | 11 | 9 | 10 | 7 |
A | 1Y | Finance | US | 8 | 2 | 5 | 12 | 14 | 8 | 15 | 12 | 14 | 8 | 9 | 6 |
A | 1Y | Finance | UK - US | 1 | -1 | -2 | -2 | -3 | 1 | -1 | -1 | -3 | 1 | 1 | 1 |
A | 2Y | Mktg | UK | 7 | 4 | 3 | 3 | 10 | 11 | 11 | 10 | 9 | 14 | 11 | 14 |
A | 2Y | Mktg | US | 6 | 6 | 2 | 5 | 12 | 14 | 12 | 9 | 8 | 15 | 12 | 15 |
A | 2Y | Mktg | UK - US | 1 | -2 | 1 | -2 | -2 | -3 | -1 | 1 | 1 | -1 | -1 | -1 |
A | 1Y | Mktg | UK | 11 | 9 | 1 | 3 | 10 | 11 | 11 | 10 | 9 | 1 | 3 | 12 |
A | 1Y | Mktg | US | 14 | 8 | 2 | 5 | 12 | 14 | 12 | 9 | 8 | 2 | 5 | 13 |
A | 1Y | Mktg | UK - US | -3 | 1 | -1 | -2 | -2 | -3 | -1 | 1 | 1 | -1 | -2 | -1 |
I tried using transpose or multi-row but have no idea how to configure it correctly or i might be using the wrong tools.
Please help!
Thank you in advance!! 🙂
Solved! Go to Solution.
I think @echuong1 but since I did it too, please see my version attached.
@echuong1 Thank you! it works nicely! 🙂