Help with writing an "IF" Statement

AChampagne

New Member
Joined
Jan 15, 2018
Messages
1
Hello, I need help writing an "IF" statement.

Cell C2 contains one of five possible responses: Exceptional, Highly Effective, Solid Performance, Needs Improvement, Not Effective

In cell C3, I would like to assign a numerical answer based on C2. For example: If C2 equals Exceptional I would like the number 5 to appear in cell C3. If C2 equals Highly Effective I would like the number 4 to appear in cell C3 and so on.

Help??
 

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.
Hi,

You can have the possible responses hard coded in the formula like in C3, or you can enter the possible responses in a column or row of cells (i.e. E1:E5) and reference it in the formula like in C6:


Excel 2010
CDE
1Exceptional
2Highly EffectiveHighly Effective
34Solid Performance
4Needs Improvement
5Solid PerformanceNot Effective
63
Sheet2
Cell Formulas
RangeFormula
C3=LOOKUP(C2,{"Exceptional","Highly Effective","Solid Performance","Needs Improvement","Not Effective"},{5,4,3,2,1})
C6=LOOKUP(C5,E1:E5,{5,4,3,2,1})
 
Upvote 0
You have the right idea with lookup, but the text array needs to be sorted in ascending order.

I might have chosen match instead..

=MATCH(C2,{"Not Effective","Needs Improvement","Solid Performance","Highly Effective","Exceptional"},0)
 
Upvote 0

Forum statistics

Threads
1,223,164
Messages
6,170,444
Members
452,326
Latest member
johnshaji

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top