Excelbaba. Powered by Blogger.
Excelbaba

VLOOKUP Function in Excel



VLOOKUP Function in Excel

VLOOKUP is the most powerful function in excel and used to search a value in another table like as we have a one table where Emp Code, Emp Name, Designation and Department, and another table where is Emp Code and want data emp name then we use VLOOKUP function. Example is given below.










Data Sheet 1








We have a table Emp Code, Emp Name, Department & Designation and another table where we have Emp Code..




















On the above table we need Employee Name, Department & Designation from table with the help of VLOOKUP function.


















Click on tab “Formula”à Lookup ReferenceàVLOOKUP
















After clicking VLOOKUP function this window will appear, and then we set Lookup_value for this we select cell (A2), then we select Table_array from Data Sheet 1 and select range A to B as mention below picture.












Col_index_num will be “2” for “Employee Name” and Range_lookup will be False for exact match and True for Approximate value, here we will show only False for Exact Match.














 Then press enter then copy the formula and paste from cell B2 to B18, and you got the Employee Name data from Data sheet 1 as below mention picture.





Read More
Excelbaba

How to use Datedif function in excel or difference between two dates

If you want to difference between two dates like as Year, Month & Days. The syntax is given below.

Datedif( start_date, end_date, unit)

Unit
Explanation
Y
Gives us number of years between two dates
M
Gives us number of Months between two dates
D
Gives us number of Days between two dates
YD
Gives us difference between days (Years and dates are ignored)
YM
Gives us difference between months (Years and days are ignored)
MD
Gives us difference between Days (Years and Months are ignored)

1- When we use unit no. “Y” then results are given below…
2- When we use unit no. “M” then results are given below…















3- When we use unit no. “D” then results are given below…













4- When we use unit no. “YD” then results are given below…

















5- When we use unit no. “YM” then results are given below…










6- When we use unit no. “MD” then results are given below…














Read More
Excelbaba

How to add current Date & Time in Excel

If you want to add current date quickly then press shortcut key “Ctrl+;” and output gives you only current Date in excel cell.
If you want to add current date and time stamp then you will use pre-defined function “=Now()” in excel. Follow below mention steps.
  1. Click on cell where you want to add current date and time stamp
  2. Right click on the selected cell and press “Format Cells” option
  3. Select Category “Custom” and select type “General” then click “OK” button
  4. Then type “=Now()” on cell where you want to add Date and Time Stamp








































Read More
Excelbaba

How to restrict value use of Data Validation

If you want to user enter value as per your criteria like price of product should be in between 50 to 150 and when user will enter wrong value then message will appear like as “You have entered wrong value”. Follow below mention steps.
Create list of products which price wants to enter by user








Select Column B1 to B6 and open Data Validation from Data Tab. Select validation criteria “Whole Number” and in Data field select “between”, in Minimum Field enter 50 and in Maximum field enter 150







you can set Error Alert when user will enter wrong value, Select Style “Warning” and Title “You have entered Wrong value” and in error Message “Please enter Value from 50 to 150”






When user will enter wrong value then message will appear as mention below.




Read More
Excelbaba

How to create Drop-Down box in Excel

If you want to user select item from your list instead of other value you can create drop-down box in sheet. Please follow below mention steps.

Create list of items which you want to appear in the box as mention below.






Select Column where you want to create Drop down Box and Open Data Validation from Data Tab ( Data -->Data Validation ), In data Validation click Setting Tab Please select “List”





Click on Source and select List which you have created earlier as mentioned below.






Click On "OK" button and you have created a Drop-Down Box as mention below.







Also you can hide column where you have created List




Read More
Excelbaba

How to Change Height & Width in excel

When you have opened multiple graphs in excel and want to align shape and size of graph please follow below mention steps.

  •           Select One Chart
  •           Hold Ctrl key and select second chart
  •          Select Right Click on the Chart
  •           Select Size & properties



Pop up window will appear as Format Shape here you can align both charts Height and Width.






Read More
Excelbaba

How to switch workbooks in Excel

When you have opened so many workbooks in excel and want to move from one workbook to another please follow below mentioned steps.

To switch from book1 (1st excel file), Book2 (2nd Excel File), Book3 (3rd Excel File)


1-  Open all excel File.






2- Select “View” from Menu bar then select “Switch Windows” Option. Also we can use shortcut "Alt+W+W" for speedy work












From this way, we can switch from Book1 to Book2 and book3


Read More