+ Reply to Thread
Results 1 to 9 of 9

Translating Xs to number values

  1. #1
    Registered User
    Join Date
    08-22-2013
    Location
    US
    MS-Off Ver
    Office 2010
    Posts
    3

    Translating Xs to number values

    Hi all, just found this board trying to research a solution. I have a spreadsheet with two worksheets, "Questions" and "Scoring". Questions is a Likert (5-point) scale for people to rate their agreement with various statements. They will rate by placing an "X" under their level of agreement. I need to translate the X into a number value on the "Scoring" worksheet. ("Strongly Agree" = 5, "Mostly Agree" = 4, etc.)

    On the "Scoring" worksheet I want a function that says "if X exists in this cell put a 5 here; but if X exists in this cell put a 4 here; but if X exists in this cell put a 3 here" etc. All of said cells are within the same row.

    I can get it to properly function for a single cell with =IF(Questions!$C9="X","5","")

    With that, if "X" is placed under the Strongly Agree column, it reports a 5 back and if X is placed anywhere else the cell is blank. I've tried what I can think of to make it also work for the 4 other possible numerical values, but I can't get it quite right.

    I was told to try: =IF(ISERROR(FIND("x",Questions!C9)),"5",IF(ISERROR(FIND("x",Questions!D9)),"4")) and test to see if it correctly reported a 4 or 5 (and if so, copy the logic for 3 - 1). It actually reports a 5 regardless of where the X is.

    I've done a lot of single variable things, and I simply have no idea how to add in the "or if this then this, or if this then this, or if this then this" logic.

    Any help is greatly appreciated!

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

    Re: Translating Xs to number values

    How about:

    Please Login or Register  to view this content.
    Would you like to say thanks? Please click the: " Add Reputation" button, on the grey bar below the post.

  3. #3
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Translating Xs to number values

    Does the scale start from 5 to 1 or 1 to 5?

    Like this:

    5...4...3...2...1
    .....x..............

    Or this:

    1...2...3...4...5
    ..............x.....
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  4. #4
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Translating Xs to number values

    Try this..

    =IFERROR(6-MATCH("X",Questions!C9:G9,0),"")
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  5. #5
    Registered User
    Join Date
    08-22-2013
    Location
    US
    MS-Off Ver
    Office 2010
    Posts
    3

    Re: Translating Xs to number values

    Thank you for the replies!

    ConnieXionLost: I tried that (in my case it became =COUNTIF(Questions!$C9:G9,"X")*5) What that does is basically add 5 any time there's an X for any value. So I tested it by placing an X in the cell that' worth 1 and it gave me 5. I placed an X in another cell and it gave me 10. I removed all Xs and it gave me 0.

    Tony Valko: They go from 5 to 1. I'm using word values of Strongly Agree (which should be worth 5), Mostly Agree (worth 4), Agree (worth 3), Mostly Disagree (worth 2), and Strongly Disagree (worth 1).

    Ace_XL: Will try that right now...

  6. #6
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Translating Xs to number values

    I think Ace's suggestion should do what you want.

  7. #7
    Registered User
    Join Date
    08-22-2013
    Location
    US
    MS-Off Ver
    Office 2010
    Posts
    3

    Re: Translating Xs to number values

    Ace_XL: I feel kind of stupid reporting this, but all I can get from that is the actual function displayed in the cell. I've made sure there was no ' at the start, and that the initial = was there, I've made sure the cell was empty, tried pasting it, typing it, and even using the "wizard" to select =IFERROR and typing it out that way.

    Do IFERROR functions need to be ended in some way other than the standard <Enter>? (I've read about some that need ctrl+shift+enter or something like that)

    I've attached the spreadsheet (no functions at all) that I'm working with, for reference -- if I understood the upload utility, that is!

    Edited to add: on the Scoring worksheet, "answer 1" means the numerical value for the first question goes there; "answer 29" means for the 29th question, etc.
    Attached Files Attached Files

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

    Re: Translating Xs to number values

    Try this formula:

    Please Login or Register  to view this content.
    Last edited by ConneXionLost; 08-22-2013 at 06:54 PM.

  9. #9
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Translating Xs to number values

    the reason you can see the formula is some of the cells are formatted text
    select the area where you want the formulas to go ,right click /format cells select general
    then enter the formula
    here it is filled in
    Attached Files Attached Files
    Last edited by martindwilson; 08-22-2013 at 07:26 PM.
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 2
    Last Post: 06-15-2012, 10:55 AM
  2. Translating unique values
    By mrodsho in forum Excel General
    Replies: 1
    Last Post: 01-12-2011, 11:56 AM
  3. Translating formulas
    By Cameron in forum Excel General
    Replies: 9
    Last Post: 08-03-2006, 06:50 AM
  4. Translating numbers into number with color pattern
    By Harry88 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-11-2006, 03:32 PM
  5. "Translating" values in a cell
    By [email protected] in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 02-12-2005, 07:06 PM

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