NEWExcel AI Agents: use Copilot and Claude in Excel, and prove every number is right. Excel AI Agents course. See the course →

How to Calculate Pay with VLOOKUP and a PivotTable in Excel

Grab Your Free Workbook Now! 📥

 

Follow step-by-step and boost your learning.

It’s practical, easy, and totally free. Get started today!

 

🔔 SUBSCRIBE if you’d like more tips and tutorials like this

 

We respect your privacy. Unsubscribe at any time.

Watch: VLOOKUP and PivotTables combined in 4 minutes

Prefer reading? The same steps are written out below the video.

Step-by-step

The example: staff are sent to different locations and paid an hourly rate, plus a fixed stipend per location to cover parking and tolls. You need each person’s total pay. For instance, Amelia works 7 hours at Harbor Center at $40 an hour, plus Harbor Center’s $25 stipend.

The data has columns for employee, hours, location and rate, and a small separate table (I2:J5 in the example) listing each location and its stipend.

1. Calculate the basic pay

Insert three columns for the new calculations. Type Pay in E1, then in E2 multiply the rate by the hours: =D2*B2.

2. Turn the data into a table

Go to Home > Format as Table, check the range (A1:G22 in the example) and make sure My table has headers is ticked. Then double-click the fill handle in E2 so the formula fills the whole column.

3. Look up each location’s stipend

Type Stipend in F1, and in F2:

=VLOOKUP(C2,$I$2:$J$5,2,FALSE)

This takes the location in C2, finds it in the stipend table, and returns the value from the table’s second column. The dollar signs keep the table reference fixed as the formula fills down, and FALSE asks for an exact match.

4. Add the final pay

Type Final Pay in G1, and in G2 add the pay and the stipend together. The whole column fills automatically.

5. Total each person’s pay with a PivotTable

People appear on several rows, so summarise them: go to Insert > PivotTable and place it on a new worksheet. Drag the employee names into Rows and Final Pay into Values, then format the totals as currency. You now have exactly what each person should be paid, ready to send to payroll.

Go further

My Excel Dashboard & Data Analysis Masterclass course goes much deeper into lookups, PivotTables and reporting.

Delete Thousands of Numbers Instantly in Excel! #excel #shorts

Andreas Exadaktylos May 23, 2026 18:09

Your Excel Charts Are Wrong | Here's Why & How to Fix It

Andreas Exadaktylos May 9, 2026 16:21

Master the Excel FILTER Function in 30 Seconds 📊 #Excel

Andreas Exadaktylos April 27, 2026 16:53

Build a Budget in Excel in 10 Minutes — and See If You're Actually Broke

Andreas Exadaktylos April 19, 2026 16:13

The Excel Button You’ve NEVER Used 🤫 #exceltips

Andreas Exadaktylos April 17, 2026 14:00

STOP scrolling manually in Excel! 🛑

Andreas Exadaktylos April 3, 2026 17:04

WATCHING ON YOUTUBE?

The full courses go further

11 step-by-step courses on Excel, Power BI, Python and AI, all on Udemy with lifetime access.