+ Reply to Thread
Results 1 to 5 of 5

Assigning a value to a letter.

  1. #1
    Registered User
    Join Date
    07-29-2007
    Posts
    8

    Assigning a value to a letter.

    My company sends out satisfaction surveys that have possible responses of A, B, C, or D. I would like to enter the customer responses into excell and have it assign numberical values to each number, then calculate overall satisfaction.

    So, a survey card may read (six questions):

    A, A, B, A, C, D

    i want "A" to be worth 100%, "B" to be worth 70%, "C" to be worth 40%, and "D" to be worth 10%,

    what i would like to do is input the survey results, one per field, and have a final field that calculates customer satisfaction. in this case, the overall satisfaction would be 70% (calculated from averaging 100, 100, 70, 100, 40, 10).

    is there anything that can do this, or must i just input the percentages manually?

    (i attached an example of what i'm trying to accomplish)
    Attached Files Attached Files

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Assigning a value to a letter.

    Like so:

    1) Create a table with the grades and the percentage values
    2) Use this kind of formula in H3:

    =SUMPRODUCT(($B3:$G3=$L$2:$L$5)*$M$2:$M$5) / COUNTA($B3:$G3)
    ...and copy down.

    3) In H8:

    =AVERAGE(H3:H7)
    Attached Files Attached Files
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Registered User
    Join Date
    07-29-2007
    Posts
    8

    Re: Assigning a value to a letter.

    thanks JB! the formula works perfectly. ok, in order that you can teach me to fish and not just give me a fish, i am going to ask for further clarification. The formula that you gave me is as follows.

    =SUMPRODUCT(($B3:$G3=$L$3:$L$6)*$M$3:$M$6) / COUNTA($B3:$G3)

    i understand that the "COUNTA" section is there in order to create the ratio.

    two things i don't understand.

    1) (easy i'm sure) how is the "SUMPRODUCT" formula prefix different than "SUM" one? what does it do differently, and why is it needed here?

    2) how does that whole middle of the formula work? "($B3:$G3=$L$3:$L$6)*$M$3:$M$6)" B3:G3 is obviously the data range, L3:L6 refers to the key, and M3:M6 is the corresponding value. what i don't understand is a) how does the "=" work in this area, why is it used here? b) why must the first half of this formula be multiplied by M3:M6?

    i tried dissecting the equation to extrapolate the different parts for future use, but could not get any variation to work.

    thanks again for your help

  4. #4
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Assigning a value to a letter.

    Here's a link to a primer that explains in complete detail all the various and sundry uses of the SUMPRODUCT().

    http://www.xldynamic.com/source/xld....T.html#classic

  5. #5
    Forum Expert ConneXionLost's Avatar
    Join Date
    03-11-2009
    Location
    Victoria, Canada
    MS-Off Ver
    2010
    Posts
    2,952

    Re: Assigning a value to a letter.

    SUMPRODUCT

    Cheers,
    Would you like to say thanks? Please click the: " Add Reputation" button, on the grey bar below the post.

+ 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