Hello,
I have a big database containing all the employees of a company (+1000 employees).
For each employee, I have several records (each record on a different row), each record corresponding to a change of the employment contract (change of position, change of location, change of salary), etc.
However I am interested only in the salary change:
The structure for employee Jackson looks like this:
A B C
Jack Jackson 09 October 2019 3047
Jack Jackson 10 January 2020 3047
Jack Jackson 16 March 2020 3047
Jack Jackson 01 April 2020 2438
Jack Jackson 01 May 2020 2133
Jack Jackson 01 June 2020 3047
Jack Jackson 07 September 2020 3047
Jack Jackson 14 September 2020 3047
Jack Jackson 05 October 2020 3047
Jack Jackson 12 October 2020 3047
Jack Jackson 26 October 2020 3047
Jack Jackson 31 October 2020 3047
Jack Jackson 01 November 2020 3047
Jack Jackson 09 November 2020 3047
Jack Jackson 12 December 2020 3047
Jack Jackson 21 December 2020 3047
Jack Jackson 25 December 2020 3047
Jack Jackson 04 January 2021 3047
Jack Jackson 09 January 2021 3047
Jack Jackson 18 January 2021 3047
Jack Jackson 23 January 2021 3047
Jack Jackson 01 February 2021 3047
Jack Jackson 06 February 2021 3047
Jack Jackson 15 February 2021 3047
Jack Jackson 20 February 2021 3047
Jack Jackson 01 March 2021 3047
Jack Jackson 06 March 2021 3047
Jack Jackson 15 March 2021 3047
Jack Jackson 20 March 2021 3047
Jack Jackson 29 March 2021 3047
Jack Jackson 03 April 2021 3047
Jack Jackson 09 April 2021 3047
Jack Jackson 17 April 2021 3047
Jack Jackson 23 April 2021 3047
Jack Jackson 30 April 2021 3047
Jack Jackson 10 May 2021 3047
Jack Jackson 15 May 2021 3047
Jack Jackson 24 May 2021 3047
Jack Jackson 29 May 2021 3047
Jack Jackson 07 June 2021 3047
Jack Jackson 12 June 2021 3047
Jack Jackson 21 June 2021 3047
Jack Jackson 26 June 2021 3047
Jack Jackson 05 July 2021 3047
Jack Jackson 10 July 2021 3047
Jack Jackson 19 July 2021 3047
Jack Jackson 24 July 2021 3047
Jack Jackson 02 August 2021 4096
Jack Jackson 07 August 2021 3047
Jack Jackson 16 August 2021 3047
Jack Jackson 21 August 2021 3047
Jack Jackson 30 August 2021 3047
Jack Jackson 06 September 2021 3047
Jack Jackson 15 September 2021 3047
I want to find a function on column D to do the following:
Check if A1=A2; if True Check if C1<>C2; if True display value C2; if False see bellow
Check if A1=A3; if True Check if C1<>C3; if True display value C3; if False see bellow
Check if A1=A4; if True Check if C1<>C4; if True display value C4; if False see bellow
........................................................................................................................................
Check if A1=An; if True Check if C1<>Cn; if True display value Cn; if False "" where n can be up to 100
I have tried to put IF inside another IF function but my Excel is limited to 64 nesting eggs.
Basically what I want is that on the first row of each employee to display on the columns to the right the salary changes from one salary to another.
However, for one particular employee, there can be 50 records with no salary change, whereas for another there can be only 3 records and all of them to have salary change.
I have a tried also IF + VLOOKUP:
=(IF(VLOOKUP(A1,A2:C100,1,FALSE)=A1,VLOOKUP(A1,A2:C100,3,FALSE),"")<>C1,VLOOKUP(A1,A2:C100,3,FALSE),"")
Basically this functions checks to see if the first VLOOKUPed value (Name) from the range A1:C100 is identical with the value from A1 (Jack Jackson);
If this condition is true, it check to see if the second VLOOKUPed value (Salary) from the range A1:C100 is different from the value in C1 (3047); if the condition is TRUE also it brings the value from the range A1:C100; however if not, it brings nothing.
If I want to use the same function inside it, I get to the same problem, that is the limit of nesting levels limited to 64.
Any ideas?
Bookmarks