#1   Report Post  
Steve
 
Posts: n/a
Default "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   Report Post  
Bob Umlas
 
Posts: n/a
Default

=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   Report Post  
CLR
 
Posts: n/a
Default

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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
paste formulas between workbooks without workbook link ron Excel Discussion (Misc queries) 3 April 22nd 23 08:11 AM
Help, Urgent Excel Formulas are not calculating maashoff Excel Discussion (Misc queries) 1 May 3rd 05 12:25 AM
Problem with named formula's nathan Excel Worksheet Functions 0 January 21st 05 04:07 PM
Way to make Excel only run certain formulas on a worksheet? jrusso Excel Discussion (Misc queries) 0 January 12th 05 04:23 PM
calculating formulas for all workbooks in a folder Chad Excel Worksheet Functions 3 November 13th 04 05:22 PM


All times are GMT +1. The time now is 10:45 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"