excel 2003 visual basic intermediate course - excel vlookup if statements
The UK's Number 1 for Microsoft Office Training Add this page to your favourites/bookmarksBookmark page
 
View printable version of pagePrintable version
Plus One Google
Customer: Sign in
Delegate: Sign in
Trainer: Log in

Forum home » Delegate support and help forum » Microsoft Excel Training and help » excel 2003 visual basic intermediate course - Excel vlookup if statements

excel 2003 visual basic intermediate course - Excel vlookup if statements

resolvedResolved · Low Priority · Version Standard

replyReply Wed 5 Dec 2007, 11:29Delegate Frances said...

Frances has attended:
Visio Introduction course

Excel vlookup if statements

Can you use Vlookup within an IF statement?

For upcoming training course dates see: Pricing & availability

replyReply Thu 13 Dec 2007, 14:16Trainer Amanda said...

RE: excel vlookup if statements

Hi Frances

Thank you for your question. Sorry about the delay in replying.

The answer is yes, you can use IF statements in conjunction with Vlookups. For example, if you wanted to enter a value from a table into a cell, based on what was in another cell, you could start with an IF statement and then enter the Vlookup in the 'value if true' part of the IF statement.

I've attached an example that you can look at. The formula is in the yellow cell. If you enter anything less than 100 in cell A1, then the yellow cell should say 0. If you enter 100 in cell A1, it should say 1; if you enter 200 in cell A1, it should say 2; if you enter 300 in cell A1, it should say 3.

I hope this helps.
Amanda

 

Excel tip:

Difference between Two Dates

The DATEDIF function computes the difference between two dates. The DATEDIF function is as follows:

=DATEDIF (Date1,Date2,Interval)

Please note that Date1 must be less than (earlier) or equal to Date2

Please note that Interval must be one of the following codes: "d" (in days), "m" (in months), "y" (in years) expressed in quotes


View all Excel hints and tips


Microsoft Certified Partner Accredited Training Provider: Institute of IT Training Institute of Leadership and Management - Certified Courses Security Seal verified by visa, mastercard securecard