[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

NEED HELP FAST! Need to add vlookup formula to IF statement

Posted on 2012-08-24
4
Medium Priority
?
659 Views
Last Modified: 2012-08-24
Please see attached.  I have two tabs (DELETE CODE and UPDATE EXPENSE).

In column "D" in UPDATE EXPENSE, I have a formula looking in DELETE CODE tab which says "If column D in DELETE CODE tab = "Delete", then "Ignore" or else "Update Expense".

I need to add a vlookup to the IF statement in UPDATE EXPENSE tab to match Column C in  (Program Code) so it provides the value for the correct program.  

Please help!

Thanks!
sample-code-aug-24.xlsx
0
Comment
Question by:glabossi
  • 2
  • 2
4 Comments
 
LVL 39

Expert Comment

by:nutsch
ID: 38330635
in line 2

=IF(VLOOKUP(C2,'DELETE CODES'!$C$1:$D$5,2,0)="Delete","Ignore","Update Expense")

copy down.

Thomas
0
 

Author Comment

by:glabossi
ID: 38330697
This is perfect!  How can I add a 4th condition if its not applicable?

If a program code is not in the the DELETE CODE sheet at all I would need "Update Expense"  value to be populated in UPDATE EXPENSE sheet automatically?
0
 
LVL 39

Accepted Solution

by:
nutsch earned 2000 total points
ID: 38330721
=iferror(IF(VLOOKUP(C2,'DELETE CODES'!$C$1:$D$5,2,0)="Delete","Ignore","Update Expense"),"Update Expense")
0
 

Author Closing Comment

by:glabossi
ID: 38330737
PERFECT!!!! THANK YOU SO MUCH!!!!
0

Featured Post

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Freeze panes is an option within all variants of Excel to enable parts of a sheet to remain stationary when the cursor is in another part of the sheet. This is a very useful feature which is overlooked or under used.
In Part II of this series, I will discuss how to identify all open instances of Excel and enumerate the workbooks, spreadsheets, and named ranges within each of those instances.
This Micro Tutorial demonstrates how to create Excel charts: column, area, line, bar, and scatter charts. Formatting tips are provided as well.
This Micro Tutorial will demonstrate on a Mac how to change the sort order for chart legend values and decrpyt the intimidating chart menu.

873 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question