Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
PeterHad
 
Posts: n/a
Default convert drop down text into result

I Have created a drop down box with Yes,No in it, this will be used multiple
times to collate information, if yes is selected i want it to represent the
number 1 and be diplayed as number 1 in a seperate sheet,this is the same for
"no" i then want to be able to add up the yes's & no's for each queastion
which, so i need to know how i can keep a running total many thanks
  #2   Report Post  
JulieD
 
Posts: n/a
Default

Hi

in your other sheet you can use a formula such as
=IF(Sheet1!A1="yes",1,0)
which will display 1 for yes values and 0 for everything else or
=IF(Sheet1!A1="yes",1,IF(Sheet1!A1="no",0,""))

you can then add up these numbers using the SUM function

However, you can also use the COUNTIF function to count the number of yes
and no without coverting them to 1 and 0 respectively

=COUNTIF(A1:A10,"yes")
will give you the number of yes within the range A1:A10
likewise
=COUNTIF(A1:A10,"no")

hope this helps
cheers
JulieD


"PeterHad" wrote in message
...
I Have created a drop down box with Yes,No in it, this will be used
multiple
times to collate information, if yes is selected i want it to represent
the
number 1 and be diplayed as number 1 in a seperate sheet,this is the same
for
"no" i then want to be able to add up the yes's & no's for each queastion
which, so i need to know how i can keep a running total many thanks



  #3   Report Post  
Peo Sjoblom
 
Posts: n/a
Default

You don't need to display it as number 1, you can use

=COUNTIF(Range,"Yes")


Regards,

Peo Sjoblom

"PeterHad" wrote:

I Have created a drop down box with Yes,No in it, this will be used multiple
times to collate information, if yes is selected i want it to represent the
number 1 and be diplayed as number 1 in a seperate sheet,this is the same for
"no" i then want to be able to add up the yes's & no's for each queastion
which, so i need to know how i can keep a running total many thanks

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
link to result from drop down list dcruickshank Links and Linking in Excel 1 January 20th 05 10:57 PM
Convert text to numbers gennario Excel Discussion (Misc queries) 6 January 10th 05 11:56 PM
Convert data of cells to any type: Number, Date&Time, Text Kevin Excel Discussion (Misc queries) 0 December 30th 04 06:55 AM
how do I easily convert a single column of text (multiple rows si. philmah Excel Discussion (Misc queries) 2 December 16th 04 12:24 AM
Convert text file to MS_Excel Aqua Flow Excel Discussion (Misc queries) 1 November 30th 04 02:55 AM


All times are GMT +1. The time now is 01:33 AM.

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"