How to Make Yes 1 and No 0 in Excel (2 Effective Methods)

Method 1 – Make Yes 1 and No 0 Using IF Function in Excel

Steps:

  • Click on cell D5.
  • Enter the following formula and press Enter.
=IF(C5="Yes",1,0)

Use the IF Function to Make Yes 1 and No 0 in Excel

  • You will get 1 as the command is yes for the first task.
  • Drag the Fill Handle to copy the formula for all the cells below.

Drag Fill Handle Below to Copy Formula

Making all yes into 1 and all no into 0 in Excel will give the output as shown in the image below.

Made Yes 1 and No 0 in Excel


Method 2 – Use Find & Replace Option

Steps:

  • Select cells C5 to C10 and Copy.

Copy Yes/No Commands

  • Select cell D5 and Paste.

Paste the Yes/No Commands

  • Select all the pasted cells from D5 to D10.
  • Go to the Home tab >> Editing group >> Find & Select tool >> Replace.

Access to the Find & Replace Dialogue Box to Make Yes 1 and No 0 in Excel

  • The Find and Replace window will appear.
  • Go to the Replace tab.
  • Enter Yes in the Find what: text box and insert 1 in the Replace with: text box.
  • Click on the Replace All button.

Replace Yes with 1 in Excel

  • A Microsoft Excel confirmation window will appear. Click OK.

Confirm the Yes Replacement

  • In the Replace tab, enter No in the Find what: text box and enter 0 in the Replace with: text box.
  • Click on Replace All.

Replace No with 0 in Excel

  • A Microsoft Excel confirmation window will appear. Click OK.

Confirm the Replacement

It will make 1 as yes and 0 as No in Excel as shown in the image below.

Made Yes 1 and No 0 in Excel

Read More: [Fixed!] IF Function Is Not Working in Excel


How to Make 1 as Yes and 0 as No in Excel?

Steps:

  • You are given 1 and 0 as commands. You need to have them as Yes and No.
  • Select C5:C10 cells and Copy.

Copy 1/0 Commands

  • Select the D5 cell and Paste.

Paste the Binary Commands

  • Select the cells D5:D10 and right-click to get the Format Cells option.

Choose the Format Cells Option to Make 1 as Yes and 0 as No in Excel

  • The Format Cells window will appear.
  • Go to the Number tab >> choose the Custom option from the Category: pane >> enter any of the following formats in the Type: text box.
[=1]"Yes";[=0]"No"

Or,

“Yes”;;”No”;
  • Click OK.

Type Custom Format to Make 1 as Yes and 0 as No in Excel

All the 1 and 0 will have Yes and No output.

Made 1 as Yes and 0 as No in Excel


Download Practice Workbook


Related Articles


<< Go Back to Excel IF Function | Excel Functions | Learn Excel

Get FREE Advanced Excel Exercises with Solutions!
Tanjim Reza
Tanjim Reza

Md. Tanjim Reza Tanim, a BUET graduate in Naval Architecture & Marine Engineering, contributed over one and a half years to the ExcelDemy project. As an Excel & VBA Content Developer, he authored 100+ articles and, as Team Leader, reviewed 150+ articles. Tanim, leading research, ensures top-notch content on MS Excel features, formulas, solutions, tips, and tricks. His expertise spans Microsoft Office Suites, Automating Finance Templates, VBA, Python, and Developing Excel Applications, showcasing a multifaceted commitment to the... Read Full Bio

We will be happy to hear your thoughts

Leave a reply

Advanced Excel Exercises with Solutions PDF

 

 

ExcelDemy
Logo