• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Problems with IF formula with 4 IFs

I have a column A with four different status descriptions. I want to convert this in to a number for each code.

Accepted = 1
Accepted with comments = 2
Not accepted, revise and resubmit = 3
For information only =4


I have tried this formula: '=IF(A2="Accepted";"1";IF(A2="Accepted with comments";"2";IFA2="Not accepted, revise and resubmit";"3";IF(A2="For information only";"4”))))

Can anyone hlp me solve this?
 

Attachments

  • Example file.xlsx
    9 KB · Views: 8
Or you could use Match function instead of 4 If function, as in:

=IFERROR(MATCH(A2;{"Accepted";"Accepted with comments";"Not accepted, revise and resubmit";"For information only"};0);"-")

Regards
 
Can use =IF(A2=$A$5,1,IF(A2=$A$4,2,IF(A2=$A$6,3,IF(A2=$A$9,4,"")))). Don't have to write out descriptions. Just reference the cell with the correct description and and lock it.
 
Back
Top