Home |
Search |
Today's Posts |
#1
|
|||
|
|||
"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 |
#2
|
|||
|
|||
=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 |
#3
|
|||
|
|||
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 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
paste formulas between workbooks without workbook link | Excel Discussion (Misc queries) | |||
Help, Urgent Excel Formulas are not calculating | Excel Discussion (Misc queries) | |||
Problem with named formula's | Excel Worksheet Functions | |||
Way to make Excel only run certain formulas on a worksheet? | Excel Discussion (Misc queries) | |||
calculating formulas for all workbooks in a folder | Excel Worksheet Functions |