vlookups if

Public Schedule Face-to-Face & Online Instructor-Led Training - View dates & book

TrustPilot

starstarstarstarstar Excellent

  • Home
  • Courses
  • Promotions
  • Schedule
  • Formats
  • Our Clients

Forum home » Delegate support and help forum » Microsoft Excel Training and help » Vlookups with If

Vlookups with If

resolvedResolved · Urgent Priority · Version 2010

Luke has attended:
Excel Advanced course

Vlookups with If

How do you perform a V lookup which includes an If function such as the practise activity in unit 2.

RE: Vlookups with If

Hello Luke,

Hope you enjoyed your Microsoft Excel Advanced course with Best STL.

Thank you for your question regarding using VLOOKUP and IF functions in the same formula.

The exercise activity in unit 2 uses an IF function to work with blank cells. If you enter a VLOOKUP function into a cell that refers to a blank cell then you will get an #N/A error. To remove the error all you have to do is add an IF statement which examines a cell to see if it is blank ("") then returns a blank value (""). At first the formula which produces the #N/A error would look like the following:

=VLOOKUP(A16,Product_list,3,FALSE)

After adding the IF function the formula would look like this:

=IF(A16="","",VLOOKUP(A16,Product_list,3,FALSE))

Give it a try!

I hope this resolves your question. If it has, please mark this question as resolved.

If you require further assistance, please reply to this post. Or perhaps you have another Microsoft Office question?

Have a great day.
Regards,

Rodney
Microsoft Office Specialist Trainer


 

Excel tip:

Select only cell that contain text to lock format

For selecting cells that only contain Text in Excel

By selecting cells that only contain text, you can delete, fill or protect cells of this type.

Use short cut to Go to box (F5) or Edit, Go to
In the dialog box, click special button & select Constants and only check text or any other desired type.

Click OK.

And text cells will all be highlighted for you to apply format. Please note only works on one sheet at a time.

View all Excel hints and tips


Server loaded in 0.08 secs.