Managing Department Salaries and Yearly Percent & Dollar Difference

DaRTH KiRo

New Member
Joined
Jan 24, 2018
Messages
39
Office Version
  1. 2016
Platform
  1. Windows
Before I give up and just use a pivot table to do this. Is there a way, without a pivot table, to calculate the percent salary (column F) difference in column H and the hourly dollar (column G) difference in column I, for the previous year? I know I can do this with a pivot table by only using A:G and then using the pivot table to calculate differences; however, I would rather not have to look in two different places.

Below are columns E:I, columns A:D contain personnel information (column A contains employee name). Also, please ignore the two spots with salary and hourly, they are wrong and I was only using to try and test a few things.

YearSalaryHourly% ChangeDollar Difference
2020​
$30,000.00​
$15.00​
2020​
2020​
2020​
2020​
2020​
2020​
2020​
2020​
2020​
2020​
2020​
2020​
2020​
2020​
2020​
2020​
2021​
$33,000.00​
$17.00​
2021​
2021​
2021​
2021​
2021​
2021​
2021​
2021​
2021​
2021​
2021​
2021​
2021​
2021​
2021​
2021​
 

Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.
Hi DaRTH KiRo,

Assuming the years are contiguous then this should work:


DaRTH KiRo.xlsx
ABCDEF
1NameYearSalaryHourly% ChangeDollar Difference
2Bob2020$30,000$15.00  
3Bill2020$25,000$12.50  
4Jim2020$22,000$11.00  
5Sarah2020$15,000$7.50  
6Vanessa2020$32,000$16.00  
7Julie2020$29,999$15.00  
8James2020$22,222$11.11  
9Bob2021$33,000$16.5010.00%$3,000
10Bill2021$25,000$12.500.00%$0
11Jim2021$20,000$10.00-9.09%($2,000)
12Sarah2021$30,000$15.00100.00%$15,000
13Vanessa2021$36,000$18.0012.50%$4,000
14Julie2021$30,500$15.251.67%$501
15James2021$33,333$16.6750.00%$11,111
16Jim2022$22,000$11.0010.00%$2,000
17Sarah2022$32,000$16.006.67%$2,000
Sheet1
Cell Formulas
RangeFormula
E2:E17E2=IFERROR((C2-INDEX($C$2:$C$9999,AGGREGATE(15,6,ROW($C$2:$C$9999)-ROW($C$1)/(($A$2:$A$9999=A2)*($B$2:$B$9999=B2-1)),1)))/INDEX($C$2:$C$9999,AGGREGATE(15,6,ROW($C$2:$C$9999)-ROW($C$1)/(($A$2:$A$9999=A2)*($B$2:$B$9999=B2-1)),1)),"")
F2:F17F2=IFERROR(C2-INDEX($C$2:$C$9999,AGGREGATE(15,6,ROW($C$2:$C$9999)-ROW($C$1)/(($A$2:$A$9999=A2)*($B$2:$B$9999=B2-1)),1)),"")
 
Upvote 0
Solution
Hi DaRTH KiRo,

Assuming the years are contiguous then this should work:


DaRTH KiRo.xlsx
ABCDEF
1NameYearSalaryHourly% ChangeDollar Difference
2Bob2020$30,000$15.00  
3Bill2020$25,000$12.50  
4Jim2020$22,000$11.00  
5Sarah2020$15,000$7.50  
6Vanessa2020$32,000$16.00  
7Julie2020$29,999$15.00  
8James2020$22,222$11.11  
9Bob2021$33,000$16.5010.00%$3,000
10Bill2021$25,000$12.500.00%$0
11Jim2021$20,000$10.00-9.09%($2,000)
12Sarah2021$30,000$15.00100.00%$15,000
13Vanessa2021$36,000$18.0012.50%$4,000
14Julie2021$30,500$15.251.67%$501
15James2021$33,333$16.6750.00%$11,111
16Jim2022$22,000$11.0010.00%$2,000
17Sarah2022$32,000$16.006.67%$2,000
Sheet1
Cell Formulas
RangeFormula
E2:E17E2=IFERROR((C2-INDEX($C$2:$C$9999,AGGREGATE(15,6,ROW($C$2:$C$9999)-ROW($C$1)/(($A$2:$A$9999=A2)*($B$2:$B$9999=B2-1)),1)))/INDEX($C$2:$C$9999,AGGREGATE(15,6,ROW($C$2:$C$9999)-ROW($C$1)/(($A$2:$A$9999=A2)*($B$2:$B$9999=B2-1)),1)),"")
F2:F17F2=IFERROR(C2-INDEX($C$2:$C$9999,AGGREGATE(15,6,ROW($C$2:$C$9999)-ROW($C$1)/(($A$2:$A$9999=A2)*($B$2:$B$9999=B2-1)),1)),"")
That was perfect, thank you! I couldn't get the year part to work out.
 
Upvote 0

Forum statistics

Threads
1,223,889
Messages
6,175,226
Members
452,620
Latest member
dsubash

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top