"If" Formulas
Hi,
I have a spreadsheet that asks "yes" or "no" questions. I want to assign a value of 1 to all yes reponses and a value of 0 for all no responses. I also want to tabulate these (yes responses). I also want to be able to include a "Y" response as well as a "Yes" response to be the same value (1). Any help out there? Thanks, Steve |
=sumproduct(--(left(A1:A100,1)="y"))
Bob Umlas Excel MVP "Steve" wrote in message ... Hi, I have a spreadsheet that asks "yes" or "no" questions. I want to assign a value of 1 to all yes reponses and a value of 0 for all no responses. I also want to tabulate these (yes responses). I also want to be able to include a "Y" response as well as a "Yes" response to be the same value (1). Any help out there? Thanks, Steve |
Assuming your data is in column A, put this formula in B1 and copy
down......... =IF(OR(A1="Yes",A1="Y"),1,IF(OR(A1="No",A1="N"),0, "")) Then, wherever you want the total count of positives..........put =COUNTIF(A:A,"Yes")+COUNTIF(A:A,"Y") Vaya con Dios, Chuck, CABGx3 "Steve" wrote in message ... Hi, I have a spreadsheet that asks "yes" or "no" questions. I want to assign a value of 1 to all yes reponses and a value of 0 for all no responses. I also want to tabulate these (yes responses). I also want to be able to include a "Y" response as well as a "Yes" response to be the same value (1). Any help out there? Thanks, Steve |
All times are GMT +1. The time now is 09:00 AM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com