Hello,
I have a large spreadsheet which contains multiple rows of rate data by employee. I have sorted by effective date with most recent date on the top to get the most recent rate of pay, however, is there a way or formula to be able to identify or extract the previous rate of pay after that? I have included a sample below, any guidance or info would be greatly appreciated. There are different #'s of rows of rate of pay based on how long someone has been in company, as well as different rates of pay and effective dates.
[TABLE="width: 341"]
<TBODY>[TR]
[TD]Employee #</SPAN>[/TD]
[TD]Name</SPAN>[/TD]
[TD]Rate of Pay</SPAN>[/TD]
[TD]Eff Date</SPAN>[/TD]
[/TR]
[TR]
[TD]655220</SPAN>[/TD]
[TD]John Smith</SPAN>[/TD]
[TD] $ 99,000.00 </SPAN>[/TD]
[TD]1/1/2014</SPAN>[/TD]
[/TR]
[TR]
[TD]655220</SPAN>[/TD]
[TD]John Smith</SPAN>[/TD]
[TD] $ 95,000.00 </SPAN>[/TD]
[TD]1/1/2013</SPAN>[/TD]
[/TR]
[TR]
[TD]655220</SPAN>[/TD]
[TD]John Smith</SPAN>[/TD]
[TD] $ 97,000.00 </SPAN>[/TD]
[TD]1/1/2012</SPAN>[/TD]
[/TR]
[TR]
[TD]722109</SPAN>[/TD]
[TD]Jane Smith</SPAN>[/TD]
[TD] $ 75,000.00 </SPAN>[/TD]
[TD]1/1/2011</SPAN>[/TD]
[/TR]
[TR]
[TD]722109</SPAN>[/TD]
[TD]Jane Smith</SPAN>[/TD]
[TD] $ 70,000.00 </SPAN>[/TD]
[TD]1/1/2010</SPAN>[/TD]
[/TR]
[TR]
[TD]555444</SPAN>[/TD]
[TD]Ken Jones</SPAN>[/TD]
[TD] $ 40,000.00 </SPAN>[/TD]
[TD]1/1/2014</SPAN>[/TD]
[/TR]
[TR]
[TD]555444</SPAN>[/TD]
[TD]Ken Jones</SPAN>[/TD]
[TD] $ 38,000.00 </SPAN>[/TD]
[TD]5/1/2013</SPAN>[/TD]
[/TR]
[TR]
[TD]555444</SPAN>[/TD]
[TD]Ken Jones</SPAN>[/TD]
[TD] $ 36,000.00 </SPAN>[/TD]
[TD]6/1/2012</SPAN>[/TD]
[/TR]
[TR]
[TD]555444</SPAN>[/TD]
[TD]Ken Jones</SPAN>[/TD]
[TD] $ 34,000.00 </SPAN>[/TD]
[TD]7/1/2011</SPAN>[/TD]
[/TR]
[TR]
[TD]555444</SPAN>[/TD]
[TD]Ken Jones</SPAN>[/TD]
[TD] $ 32,000.00 </SPAN>[/TD]
[TD]8/1/2010</SPAN>[/TD]
[/TR]
[TR]
[TD]789444</SPAN>[/TD]
[TD]Mike Adams</SPAN>[/TD]
[TD] $ 95,000.00 </SPAN>[/TD]
[TD]1/1/2014</SPAN>[/TD]
[/TR]
[TR]
[TD]111222</SPAN>[/TD]
[TD]Walter Matthews</SPAN>[/TD]
[TD] $ 80,000.00 </SPAN>[/TD]
[TD]1/1/2014</SPAN>[/TD]
[/TR]
[TR]
[TD]111222</SPAN>[/TD]
[TD]Walter Matthews</SPAN>[/TD]
[TD] $ 75,000.00 </SPAN>[/TD]
[TD]2/11/2013</SPAN>[/TD]
[/TR]
[TR]
[TD]111222</SPAN>[/TD]
[TD]Walter Matthews</SPAN>[/TD]
[TD] $ 72,000.00 </SPAN>[/TD]
[TD]3/24/2012</SPAN>[/TD]
[/TR]
[TR]
[TD]111222</SPAN>[/TD]
[TD]Walter Matthews</SPAN>[/TD]
[TD] $ 68,000.00 </SPAN>[/TD]
[TD]4/19/2011</SPAN>[/TD]
[/TR]
[TR]
[TD]239448</SPAN>[/TD]
[TD]Charles Hughes</SPAN>[/TD]
[TD] $ 120,000.00 </SPAN>[/TD]
[TD]1/1/2014</SPAN>[/TD]
[/TR]
[TR]
[TD]239448</SPAN>[/TD]
[TD]Charles Hughes</SPAN>[/TD]
[TD] $ 110,000.00 </SPAN>[/TD]
[TD]2/19/2013</SPAN>[/TD]
[/TR]
[TR]
[TD]239448</SPAN>[/TD]
[TD]Charles Hughes</SPAN>[/TD]
[TD] $ 100,000.00 </SPAN>[/TD]
[TD]3/22/2012</SPAN>[/TD]
[/TR]
[TR]
[TD]239448</SPAN>[/TD]
[TD]Charles Hughes</SPAN>[/TD]
[TD] $ 90,000.00 </SPAN>[/TD]
[TD]4/8/2011</SPAN>[/TD]
[/TR]
[TR]
[TD]239448</SPAN>[/TD]
[TD]Charles Hughes</SPAN>[/TD]
[TD] $ 80,000.00 </SPAN>[/TD]
[TD]5/6/2010</SPAN>[/TD]
[/TR]
[TR]
[TD]239448</SPAN>[/TD]
[TD]Charles Hughes</SPAN>[/TD]
[TD] $ 70,000.00 </SPAN>[/TD]
[TD]6/8/2009</SPAN>[/TD]
[/TR]
[TR]
[TD]239448</SPAN>[/TD]
[TD]Charles Hughes</SPAN>[/TD]
[TD] $ 60,000.00 </SPAN>[/TD]
[TD]7/29/2008</SPAN>[/TD]
[/TR]
[TR]
[TD]239448</SPAN>[/TD]
[TD]Charles Hughes</SPAN>[/TD]
[TD] $ 50,000.00 </SPAN>[/TD]
[TD]8/10/2007</SPAN>[/TD]
[/TR]
[TR]
[TD]239448</SPAN>[/TD]
[TD]Charles Hughes</SPAN>[/TD]
[TD] $ 40,000.00 </SPAN>[/TD]
[TD]9/15/2006</SPAN>[/TD]
[/TR]
[TR]
[TD]239448</SPAN>[/TD]
[TD]Charles Hughes</SPAN>[/TD]
[TD] $ 30,000.00 </SPAN>[/TD]
[TD]10/12/2005</SPAN>[/TD]
[/TR]
</TBODY><COLGROUP><COL><COL><COL><COL></COLGROUP>[/TABLE]
I have a large spreadsheet which contains multiple rows of rate data by employee. I have sorted by effective date with most recent date on the top to get the most recent rate of pay, however, is there a way or formula to be able to identify or extract the previous rate of pay after that? I have included a sample below, any guidance or info would be greatly appreciated. There are different #'s of rows of rate of pay based on how long someone has been in company, as well as different rates of pay and effective dates.
[TABLE="width: 341"]
<TBODY>[TR]
[TD]Employee #</SPAN>[/TD]
[TD]Name</SPAN>[/TD]
[TD]Rate of Pay</SPAN>[/TD]
[TD]Eff Date</SPAN>[/TD]
[/TR]
[TR]
[TD]655220</SPAN>[/TD]
[TD]John Smith</SPAN>[/TD]
[TD] $ 99,000.00 </SPAN>[/TD]
[TD]1/1/2014</SPAN>[/TD]
[/TR]
[TR]
[TD]655220</SPAN>[/TD]
[TD]John Smith</SPAN>[/TD]
[TD] $ 95,000.00 </SPAN>[/TD]
[TD]1/1/2013</SPAN>[/TD]
[/TR]
[TR]
[TD]655220</SPAN>[/TD]
[TD]John Smith</SPAN>[/TD]
[TD] $ 97,000.00 </SPAN>[/TD]
[TD]1/1/2012</SPAN>[/TD]
[/TR]
[TR]
[TD]722109</SPAN>[/TD]
[TD]Jane Smith</SPAN>[/TD]
[TD] $ 75,000.00 </SPAN>[/TD]
[TD]1/1/2011</SPAN>[/TD]
[/TR]
[TR]
[TD]722109</SPAN>[/TD]
[TD]Jane Smith</SPAN>[/TD]
[TD] $ 70,000.00 </SPAN>[/TD]
[TD]1/1/2010</SPAN>[/TD]
[/TR]
[TR]
[TD]555444</SPAN>[/TD]
[TD]Ken Jones</SPAN>[/TD]
[TD] $ 40,000.00 </SPAN>[/TD]
[TD]1/1/2014</SPAN>[/TD]
[/TR]
[TR]
[TD]555444</SPAN>[/TD]
[TD]Ken Jones</SPAN>[/TD]
[TD] $ 38,000.00 </SPAN>[/TD]
[TD]5/1/2013</SPAN>[/TD]
[/TR]
[TR]
[TD]555444</SPAN>[/TD]
[TD]Ken Jones</SPAN>[/TD]
[TD] $ 36,000.00 </SPAN>[/TD]
[TD]6/1/2012</SPAN>[/TD]
[/TR]
[TR]
[TD]555444</SPAN>[/TD]
[TD]Ken Jones</SPAN>[/TD]
[TD] $ 34,000.00 </SPAN>[/TD]
[TD]7/1/2011</SPAN>[/TD]
[/TR]
[TR]
[TD]555444</SPAN>[/TD]
[TD]Ken Jones</SPAN>[/TD]
[TD] $ 32,000.00 </SPAN>[/TD]
[TD]8/1/2010</SPAN>[/TD]
[/TR]
[TR]
[TD]789444</SPAN>[/TD]
[TD]Mike Adams</SPAN>[/TD]
[TD] $ 95,000.00 </SPAN>[/TD]
[TD]1/1/2014</SPAN>[/TD]
[/TR]
[TR]
[TD]111222</SPAN>[/TD]
[TD]Walter Matthews</SPAN>[/TD]
[TD] $ 80,000.00 </SPAN>[/TD]
[TD]1/1/2014</SPAN>[/TD]
[/TR]
[TR]
[TD]111222</SPAN>[/TD]
[TD]Walter Matthews</SPAN>[/TD]
[TD] $ 75,000.00 </SPAN>[/TD]
[TD]2/11/2013</SPAN>[/TD]
[/TR]
[TR]
[TD]111222</SPAN>[/TD]
[TD]Walter Matthews</SPAN>[/TD]
[TD] $ 72,000.00 </SPAN>[/TD]
[TD]3/24/2012</SPAN>[/TD]
[/TR]
[TR]
[TD]111222</SPAN>[/TD]
[TD]Walter Matthews</SPAN>[/TD]
[TD] $ 68,000.00 </SPAN>[/TD]
[TD]4/19/2011</SPAN>[/TD]
[/TR]
[TR]
[TD]239448</SPAN>[/TD]
[TD]Charles Hughes</SPAN>[/TD]
[TD] $ 120,000.00 </SPAN>[/TD]
[TD]1/1/2014</SPAN>[/TD]
[/TR]
[TR]
[TD]239448</SPAN>[/TD]
[TD]Charles Hughes</SPAN>[/TD]
[TD] $ 110,000.00 </SPAN>[/TD]
[TD]2/19/2013</SPAN>[/TD]
[/TR]
[TR]
[TD]239448</SPAN>[/TD]
[TD]Charles Hughes</SPAN>[/TD]
[TD] $ 100,000.00 </SPAN>[/TD]
[TD]3/22/2012</SPAN>[/TD]
[/TR]
[TR]
[TD]239448</SPAN>[/TD]
[TD]Charles Hughes</SPAN>[/TD]
[TD] $ 90,000.00 </SPAN>[/TD]
[TD]4/8/2011</SPAN>[/TD]
[/TR]
[TR]
[TD]239448</SPAN>[/TD]
[TD]Charles Hughes</SPAN>[/TD]
[TD] $ 80,000.00 </SPAN>[/TD]
[TD]5/6/2010</SPAN>[/TD]
[/TR]
[TR]
[TD]239448</SPAN>[/TD]
[TD]Charles Hughes</SPAN>[/TD]
[TD] $ 70,000.00 </SPAN>[/TD]
[TD]6/8/2009</SPAN>[/TD]
[/TR]
[TR]
[TD]239448</SPAN>[/TD]
[TD]Charles Hughes</SPAN>[/TD]
[TD] $ 60,000.00 </SPAN>[/TD]
[TD]7/29/2008</SPAN>[/TD]
[/TR]
[TR]
[TD]239448</SPAN>[/TD]
[TD]Charles Hughes</SPAN>[/TD]
[TD] $ 50,000.00 </SPAN>[/TD]
[TD]8/10/2007</SPAN>[/TD]
[/TR]
[TR]
[TD]239448</SPAN>[/TD]
[TD]Charles Hughes</SPAN>[/TD]
[TD] $ 40,000.00 </SPAN>[/TD]
[TD]9/15/2006</SPAN>[/TD]
[/TR]
[TR]
[TD]239448</SPAN>[/TD]
[TD]Charles Hughes</SPAN>[/TD]
[TD] $ 30,000.00 </SPAN>[/TD]
[TD]10/12/2005</SPAN>[/TD]
[/TR]
</TBODY><COLGROUP><COL><COL><COL><COL></COLGROUP>[/TABLE]