0

At work, we have a spreadsheet that the data is copied from another uploaded spreadsheet. We need to convert:

Yes --> 1

No --> 0

NA --> 9

Is there any way to create a formula that will automatically do that?

3
  • In place? In different cell? Commented Dec 13, 2017 at 19:24
  • In place. We usually copy and paste the YES and NO responses and later use Find and Replace to change.. Commented Dec 13, 2017 at 19:48
  • In place will require vba. Commented Dec 13, 2017 at 19:49

1 Answer 1

1
=if(Cell="Yes",1,if(Cell="No",0,9))

Replace "Cell" with the cell you are referencing. You can drag this formula down and apply it to all cells in the given column. This assumes that your column or row can only take on the three listed values: "Yes", "No", and "NA". You'll need to nest more "if" functions to account for the addition of new values.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.