In this example, you will get a sample Excel file with employee data for practice. The problems are beginner-friendly and you will need to know the following features and functions: how to join two cell values, the Data Validation list, the VLOOKUP, and the IF functions. These features and functions are available from Excel 2007.
Download the Practice Workbook
Problem Overview
We have an Excel dataset with six columns for employee information. The first two columns are filled in. You will fill in the rest of the values in the dataset as per instructions. We have set today’s date in cell B28 to calculate date-related values.
Here’s how to fill the rest of the information.
- Email Address – The format will be “[email protected]”.
- Solution: We have used the ampersand operator to join the values from the Name column with the email domain. You can use other methods, such as the CONCATENATE, TEXTJOIN functions, or even VBA to do so.
- Department – You will need to create a Data Validation in this column. This Excel feature helps us to restrict data entry. The source for data validation is on the “Reference Table” Sheet (Range B5:B11).
- Salary – There is a lookup table in the “Reference Table” Sheet. Your task will be to match the department name and return the monthly salary in that. You can use any lookup function to do so.
The lookup table looks like this.
- Job Status – If an employee joined more than 180 days ago, they will be a permanent employee of the company. You need to use conditionals to solve this.
The completed Excel file will look similar to this.
Get FREE Advanced Excel Exercises with Solutions!
Should have been helpful if you have shown all the steps.
Vlookup has fetched some N/A errors in the Salary column. Not sure why as I have given same formula for all cells and some have shown correct results some N/A error.
Hi A
We haven’t shown step-by-step solutions because the underlying objective of this article is to help our users internalize these problems to the core. We strongly believe that this will be possible only if we give a generic guideline and let our users practice more.
Coming to your VLOOKUP issue, the formula you should use is =VLOOKUP(E5,’Reference Table’!$B$5:$C$11,2,0)
Please double-check that you have the cell references correct.
You can check the following articles
for VLOOKUP: https://www.exceldemy.com/excel-vlookup-function/
for referencing: https://www.exceldemy.com/difference-between-absolute-and-relative-reference-in-excel/
I think these two articles, along with the workbook attached to this article will solve your problem.
However, if these resources do not solve your problem, then please send us your workbook at [email protected]
Thank you for your patience.
how can i use the formulas 0f count if and average
Hello ASNATH
Thanks for reaching out and posting your comment. You want to know how to use the COUNT, IF and AVERAGE functions in a formula. I am presenting an example where I will form a formula using these functions.
OUTPUT OVERVIEW:
Suppose your dataset has Employee ID, Name, Department, Age, and Salary columns. You want to find out the average salary based on department. You can get the result using only the AVERAGEIF function, but if the department does not exist, it will provide a #DIV/0! Error. So, to handle this type of situation, you can combine COUNT, IF, SUM and AVERAGE functions:
Hopefully, the idea will help you. Good luck.
Regards
Lutfor Rahman Shimanto
ExcelDemy