Memuat
Memuat
Price Lookup with VLOOKUP and XLOOKUP for employee attendance and payroll
0 views
Price and category are looked up from the Master sheet by item name. Differences from the recorded price are flagged.

Prices stay consistent and price typos show up immediately.
The real project file is available. It is not just the picture above: you get the working file with every formula in place. It can be downloaded after payment, and we send the download link by WhatsApp or email.
.xlsx workbook (.xlsx)
| Cell | Formula | What it does |
|---|---|---|
| H2 | =VLOOKUP(B2,Master!A:B,2,FALSE) | Unit price from Master. |
| I2 | =IFERROR(VLOOKUP(B2,Master!A:C,3,FALSE),"Tidak ada") | Category from Master, fallback text if missing (Sheets also supports XLOOKUP). |
| J2 | =IF(E2<>VLOOKUP(B2,Master!A:B,2,FALSE),"Harga beda","OK") | Flag when the Data price differs from Master. |
| K2 | =IFERROR(INDEX(Master!B:B,MATCH(B2,Master!A:A,0)),0) | Error-safe INDEX MATCH alternative. |
Columns of the Data sheet:
| Pay Component | Amount |
|---|---|
| Staff Base Salary | 4,500,000 |
| Supervisor Base Salary | 6,500,000 |
| Transport Allowance | 300,000 |
| Daily Meal Allowance | 25,000 |
| Overtime per Hour | 30,000 |
| Target Bonus | 750,000 |
| BPJS Health Contribution | 120,000 |
| BPJS Employment Contribution | 95,000 |
| Late Deduction | 20,000 |
| Holiday Allowance | 3,000,000 |
The sample data is synthetic.
Yes. The picture above is only a preview. After payment we send the download link of the real project file (an .xlsx workbook) by WhatsApp or email.
No. The sample data is synthetic and only shows how the formulas behave. Replace it with your own data and the formulas keep working.
Yes, as a separate order. Message us on WhatsApp with a short description of your columns and what you want to see.
Sample data is synthetic. Google Sheets is a trademark of Google LLC.
Back to Google Sheets portfolio