Convert multiple numbers into 0/1

ANTONIO MIELE 1 Reputation point
2022-05-31T17:46:14.167+00:00

hi everyone, I need your help.
I would like to convert all values from 1 to 50 in a column into 1 an other column and all tue values greater than 50 into 0, can I with a simple formula or whatever?

Microsoft 365 and Office | Development | Other
Microsoft 365 and Office | Excel | For business | Windows
{count} votes

2 answers

Sort by: Most helpful
  1. Michael Taylor 61,106 Reputation points
    2022-05-31T17:54:31.75+00:00

    Not sure quite what you're looking for but if makes sense here.

    =IF($A$1 > 50, 0, 1)
    
    0 comments No comments

  2. Emi Zhang-MSFT 30,126 Reputation points Microsoft External Staff
    2022-06-01T06:45:46.35+00:00

    Hi @ANTONIO MIELE ,
    Try this formula:

    =IF(A1>50,0,IF(AND(A1>0,A1<=50),1,""))  
    

    207404-12.png


    If the response is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.