Professional Documents
Culture Documents
Excel For Payroll: Presented by Jackie Williams C.P.S. The Association For Payroll Specialists
Excel For Payroll: Presented by Jackie Williams C.P.S. The Association For Payroll Specialists
Excel For Payroll: Presented by Jackie Williams C.P.S. The Association For Payroll Specialists
This ensures the data is not missed when you run the pivot table
and will speed up the development time for the pivot table
Create Pivot Table
Activity 1
1. Open Excel workbook – Pivot table example
2. Click anywhere inside the data table in worksheet Pivot
table activity 1
3. Click anywhere within the data to select the table to apply
the Pivot Table format to.
4. In the Insert ribbon tab click the Pivot Tables icon. Excel will
automatically “guess” where the data is based on our earlier
tables rules
Create Pivot Table
6. Select “Existing Worksheet” to place the pivot table in your existing worksheet
7. Select cell A12 for the location of your pivot table, then, click OK
Create Pivot Table
8. Using the left mouse button, drag the State field down to the Row Labels section
9. Drag the Taxable Gross, Tax Amount and Net Pay fields down to the Values section
Create Pivot Table
8. Using the left mouse button, drag the State field down to the Row Labels section
9. Drag the Taxable Gross, Tax Amount and Net Pay fields down to the Values section
To pivot the Pivot Table
1 VLOOKUP- V = Vertical
2 VLOOKUP Delivers a value to a cell (exact match)
4 Using absolute references in a VLOOKUP formula
5 Copying and pasting a VLOOKUP formula
6 VLOOKUP Delivers a value to a cell (approximate match)
7 Using an IFERROR where VLOOKUP returns a #N/A error
VLOOKUP FUNCTION – Exact match
Activity 5
Open the file: Employee Details.xlsx
Go to the “Terminations” worksheet and select the cell
reference that you want to deliver the value to (B3). Click
the fx formula button and search for the VLOOKUP
function, then press OK
VLOOKUP FUNCTION – Exact match
VLOOKUP FUNCTION – Exact match
• The Look-up value is the ID Number (Cell B2), we will look up the
• ID Number in the Employee Details table and
• search for the Full Name of the employee located in column 2 (Col_index_num)
• then deliver it to cell reference B3 on the Terminations worksheet.
• For exact match we type FALSE next to Range_lookup
VLOOKUP FUNCTION – Exact match
VLOOKUP FUNCTION – Exact match
VLOOKUP FUNCTION – Using absolute references
If you want to copy and paste your VLOOKUP formula to other cells within the
Termination worksheet you will need to lock the Lookup value and Table array
range in your formula.
If you don’t do this the copy and paste function will relate the formula to the next
row down in the data and you will get an error message.
VLOOKUP FUNCTION – Using absolute references
You can create an absolute reference by highlighting the
range you want to lock in the formula bar and pressing the F4
formula button. This will place $ signs around the locked
data. We are locking the lookup value and table array.
Not locked
Locked
VLOOKUP FUNCTION – Copying & pasting a formula
Once the absolute references are set
You can now copy and paste your formula. This way the only
thing that I will need to change in the VLOOKUP formula is the
column index number for the relevant data that I am looking up.
VLOOKUP FUNCTION – Closest match
What if we don’t have an exact match and are referring to a
range of data?
In the example below we are calculating the preservation age of
the employee based on a particular date range. In this case when
we perform our VLOOKUP we will be looking for the closest
match. So in the range_lookup value we will enter TRUE.
VLOOKUP FUNCTION – Closest match
Excel will look up
the date of birth
in column G (first
column in the
table array) and if
the lookup value
at E2 is equal or
greater than the
value in column G
it will return the
value in column I
(Preservation Age)
to cell E3
(Preservation age).
It will search until
it finds the closest
match.
VLOOKUP returns an error message #N/A?
In this case I can use the IFERROR function in my VLOOKUP
formula so that if the error message comes up VLOOKUP will
return a required message e.g. “incorrect ID number”.
Example: ID number 21609 does not exist, so we have an error
message.
VLOOKUP returns an error message #N/A?
You can now see a drop down list box next to the cell B2 (ID Number).
ANY QUESTIONS?