You are here:

Excel/If Command problems mind has gone blank


Hi Aiden

My mind has gone blank with the simple if command

I have a cell that can have up to number 1 to 5 and depending on which number is stated i want a text statement for each individual number and i cant think of how to do it.

This is what i have so far

=IF(F7=1,"Standard must be improved"),IF(F7=2,"Below average accepted standard"),IF(F7=3,"Average good accepted standard"),IF(F7=4,"Above average good standard"),IF(F7=5,"Superior Standard","Not answered")

However this keeps coming back with an error and i cant figure it out

Can you help
Ive been looking at this for three days



The IF statement is


In your case, the value if false is another if statement - so you don't close the brackets until the very end - which means a lot of brackets all together - like this

=IF(F7=1,"Standard must be improved",IF(F7=2,"Below average accepted standard",IF(F7=3,"Average good accepted standard",IF(F7=4,"Above average good standard",IF(F7=5,"Superior Standard","Not answered")))))

You MAY want to consider using a vlookup instead


where TestList is a 2 column table with the score (including zero) in the first column and the text to display in the second.
About Excel
This topic answers questions related to Microsoft Excel spreadsheet (or workbook) stand-alone or Mircrosoft Office Excel including Excel 2003, Excel 2007, Office 2000, and Office XP. You can get Excel help on Excel formulas(or functions), Excell macros, charting in Excel, advanced features, and the general use of Excel. This does not provide a general Excel tutorial nor the basics of using a spreadsheet. It provides specific answers to using Microsoft Excel only. If you do not see your Excel question answered in this area then please ask an Excel question here


All Answers

Answers by Expert:

Ask Experts


Aidan Heritage


I have provided first hand support since `95 for Microsoft Office majoring in Word and Excel - support for all versions from 2 onwards. I'm based in the UK, so please allow for time differences when asking me questions from other parts of the world!


My background is in the insurance industry and call centre areas, but have been called upon to provide many varied solutions.

I'm educated to UK A level standard, but as I left school some 30 years ago that is rather irrelevent - university of life has provided more of a background!

©2017 All rights reserved.