PDA

View Full Version : Excel 2007 - IF function or LOOKUP function



dreinisch
2012-05-16, 07:51 PM
I am trying to create a conditional report. For example....if column E is "D" then what is displayed in column G will be "Account Requiring Adjustment". However, I do not know if the 'IF' function is the way to go or if the 'LOOKUP' function is the way to go. I've tried both, but with no success whatsoever. I am hoping someone may be able to help. The formula's I've created appear as follows:

IF FUNCTION:
=IF(E2=D,"Account Requiring Assist Code Adjustment",IF(E2=E,"Adjust Source Code",IF(E2=F,"Adjust LM Counselor",IF(E2=G,"Adjust Plan Type",IF(E2=H,"Email Assigned HOST or Negotiator")))))

LOOKUP FUNCTION:
=LOOKUP(E2,{E,E,F,G,H},{"Account Requiring Assist Code Adjustment","Adjust Source Code","Adjust LM Counselor","Adjust Plan Type","Email Assigned HOST or Negotiator"})

Bob Phillips
2012-05-16, 11:30 PM
IF FUNCTION:
=IF(E2="D","Account Requiring Assist Code Adjustment",IF(E2="E","Adjust Source Code",IF(E2="F","Adjust LM Counselor",IF(E2="G","Adjust Plan Type",IF(E2="H","Email Assigned HOST or Negotiator","")))))

LOOKUP FUNCTION:
=LOOKUP(E2,{"D","E","F","G","H"},{"Account Requiring Assist Code Adjustment","Adjust Source Code","Adjust LM Counselor","Adjust Plan Type","Email Assigned HOST or Negotiator"})

Simi
2012-05-16, 11:52 PM
I would personally use the IF function, so that you don't end up with #N/A if your check cell E2 is blank.

Bob Phillips
2012-05-17, 08:46 AM
I would personally use the IF function, so that you don't end up with #N/A if your check cell E2 is blank.

But you have to handle that situation, which the OPs formula didn't.

dreinisch
2012-05-17, 03:18 PM
Hey-Hey! That fixed it! Thank you! Thank you very much!!!!