I am taking over a 5 year old payrole record keeper project, where every employee manually enters their work hours. For individual records, each excel file has 28 sheets! A sheet for each pay period, a sheet defining the pay periods, and a summary sheet.
On each pay period sheet, there is a locked field [S1] that has the pay period number.
For example:
sheet1 has the value of 1 on [S1]
sheet2 has the value of 2 on [S1]
On my summary sheet, there is a spot to put the pay period number, (1-26).
What I want to do is the user to manually enter the pay period number on the summary sheet [H13] and it will search each sheet until the values are equal, then pull certain data back.
For example:
user enters 8 (for pay period 8), it searches sheet1-sheet26 until the values of [S1] and [H13] are equal, then returns a value that I am seeking.
The value on the sheet would be [I22] or some other value depending on what the summary sheet was requesting.
Below is a sample of what I am attempting to do.
Again [S1] is on the individual pay period sheets, [H13] is on the summary sheet, and [I22] is the value I am requesting from the pay period sheet.
Any thoughts?
On each pay period sheet, there is a locked field [S1] that has the pay period number.
For example:
sheet1 has the value of 1 on [S1]
sheet2 has the value of 2 on [S1]
On my summary sheet, there is a spot to put the pay period number, (1-26).
What I want to do is the user to manually enter the pay period number on the summary sheet [H13] and it will search each sheet until the values are equal, then pull certain data back.
For example:
user enters 8 (for pay period 8), it searches sheet1-sheet26 until the values of [S1] and [H13] are equal, then returns a value that I am seeking.
The value on the sheet would be [I22] or some other value depending on what the summary sheet was requesting.
Below is a sample of what I am attempting to do.
Code:
[FONT=Arial][SIZE=3]=IF(ISNA(VLOOKUP(H13="","",PP1!S1="","",I22)),IF(ISNA(VLOOKUP(H H13="","",PP2!S1="","",I22))[/SIZE][/FONT]
Again [S1] is on the individual pay period sheets, [H13] is on the summary sheet, and [I22] is the value I am requesting from the pay period sheet.
Any thoughts?