+ Reply to Thread
Results 1 to 3 of 3

convert drop down text into result

  1. #1
    PeterHad
    Guest

    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. #2
    JulieD
    Guest

    Re: convert drop down text into result

    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" <PeterHad@discussions.microsoft.com> wrote in message
    news:B150705A-9C2C-4632-B87B-BA5958645E7D@microsoft.com...
    >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. #3
    Peo Sjoblom
    Guest

    RE: convert drop down text into result

    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 to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1