excel 2003 visual basic intermediate course - excel vlookup if statements

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

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

Frances has attended:
Visio Introduction course

Excel vlookup if statements

Can you use Vlookup within an IF statement?

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:

Create own ribbon tab - Excel 2010

a. In Excel click on the File tab
b. Select Options from left hand side
c. Choose the Customize Ribbon section
d. Click the New Tab button (below the list of tabs on the right hand side of the dialog box)
e. Select the New Tab (Custom) and enter a name, by clicking the Rename button (below the list of tabs on the right hand side of the dialog box)
f. Select the New Group (Custom) and enter a name, by clicking the Rename button (below the list of tabs on the right hand side of the dialog box)
g. Add commands to your tab and group by locating them on the list on the right hand side (remembering that you can change the list using the drop down box at the top of the list of commands) and clicking the Add button between the two panes to add them to your tab and group
h. You can rearrange the commands in your group, the groups on any tab or the tabs, using the up and down arrow buttons beside the list of tabs.
i. Click OK to apply your changes

View all Excel hints and tips


Server loaded in 0.1 secs.