+ Reply to Thread
Results 1 to 14 of 14

Assign a specific number to entering "x" in a table

  1. #1
    Registered User
    Join Date
    05-26-2013
    Location
    London
    MS-Off Ver
    Excel 2003
    Posts
    8

    Assign a specific number to entering "x" in a table

    Hi there,
    I cannot find the answer to my question in previous posts and I apologize in advance if this has been already asked elsewhere.

    I am doing an "evaluation table" where I have a list of criteria on the left column and scores on the top row from 1 to 5. I would like to create formula that would allow me to simply put a "x" in each cell and count automatically the above score value. Example:

    KKKKK.JPG




    Hope I explained myself well enough.

    Many thanks for your help!

    Bill
    Last edited by BillyBryant; 05-26-2013 at 09:11 PM. Reason: I attached an image

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

    Re: Assign a specific number to entering "x" in a table

    One way...

    =SUMIF(B2:F2,"x",B$1:F$1)

    Copy down as needed.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  3. #3
    Registered User
    Join Date
    05-26-2013
    Location
    London
    MS-Off Ver
    Excel 2003
    Posts
    8

    Re: Assign a specific number to entering "x" in a table

    AAhh!! This is awesome! Thanks so much Tony! You are star!

  4. #4
    Valued Forum Contributor
    Join Date
    10-29-2012
    Location
    Mojokerto,Indonesia
    MS-Off Ver
    Excel 2007
    Posts
    554

    Re: Assign a specific number to entering "x" in a table

    =MATCH("x",B2:F2)
    copy down

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

    Re: Assign a specific number to entering "x" in a table

    You're welcome. Thanks for the feedback!

  6. #6
    Registered User
    Join Date
    05-26-2013
    Location
    London
    MS-Off Ver
    Excel 2003
    Posts
    8

    Re: Assign a specific number to entering "x" in a table

    Hi guys,

    Thanks a again for the help. I need your hand once more! I now have to do something similar, or actually the inverse of the above. I have attached an image below to explain better.


    Immagine.png


    I will now assign with the formula you gave me an "x" to the value in TABLE 2 (sub-criteria). The sum of those values (weighted) will give me a total percentage (cell G16).

    Now, I want a formula in TABLE 1, ROW 7 (Crieteria 3), that will assign an "x" depending on the total percentage of TABLE 2, CELL G16.

    So, if cell G16 is between 91% and 100% I want an "x" in cell B7, if it's between 81% and 90% I want an "x" in cell C7, and so on. If it's lower than 60% then no "x" will be assigned.

    Is that possible to do? I hope I explained well enough...

    Thanks!!

    Bill

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

    Re: Assign a specific number to entering "x" in a table

    Try one of these entered in B7 and copied across to F7:

    =IF($G16<0.6,"",IF(B4=INDEX($B4:$F4,MATCH($G16,$B4:$F4,-1)),"X",""))

    =IF($G16<0.6,"",IF(MATCH($G16,$B4:$F4,-1)=COLUMNS($B7:B7),"X",""))

  8. #8
    Registered User
    Join Date
    05-26-2013
    Location
    London
    MS-Off Ver
    Excel 2003
    Posts
    8

    Re: Assign a specific number to entering "x" in a table

    Tony, it works! Awesome! I'm speechless

    Next time someone tells me that excel has its limitations I'll redirect them to you (after punching them in the face!). Good work!!

    I might come back with more questions in the next days...in the meanwhile: THANKS A LOT!!

    Bill

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

    Re: Assign a specific number to entering "x" in a table

    You're welcome. Thanks for the feedback!

  10. #10
    Registered User
    Join Date
    05-26-2013
    Location
    London
    MS-Off Ver
    Excel 2003
    Posts
    8

    Re: Assign a specific number to entering "x" in a table

    Tony,

    Sorry to bother again, but I have one more question.

    I used your formula in a large number of files and it helped dramatically. Thanks again for that.

    Now I am using it for a table that is linked to another table within the same file and the formula stops working.

    The formula you suggested =IF($G16<0.6,"",IF(B4=INDEX($B4:$F4,MATCH($G16,$B4:$F4,-1)),"X","")) works perfect. But let's say that cell G16 is itself a sum of percentages from another spreadhseet - in that case the formula doesn't work anymore.

    Any reason why that happens? Can it be fixed?

    THANKS!!

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

    Re: Assign a specific number to entering "x" in a table

    Can you be more specific as to what "doesn't work" means?

    Are you getting an error? An incorrect result? Something else?

    It would be easier to troubleshoot if you could post the file that shows the formula and what result it's returning.

  12. #12
    Registered User
    Join Date
    05-26-2013
    Location
    London
    MS-Off Ver
    Excel 2003
    Posts
    8

    Re: Assign a specific number to entering "x" in a table

    Tony,

    Thanks for your quick reply. I understood what was the problem.

    I added the values after the comma and realized my 60% was actually a 59,999%. That's why no X was showing up in the cell with the formula.

    A confirmation excel is again smarter than me.

    Thanks for your quick reply again though!

    Cheers,

    B.

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

    Re: Assign a specific number to entering "x" in a table

    Good deal. Thanks for the feedback!

  14. #14
    Registered User
    Join Date
    05-26-2013
    Location
    London
    MS-Off Ver
    Excel 2003
    Posts
    8

    Re: Assign a specific number to entering "x" in a table

    Hi Tony, All,

    I am back with a couple more questions regarding my analysis, which now became slightly more complex.

    I have attached an image to explain better my new challenges:

    Analysis.jpg

    As you can see the tables are similar as the ones before, but now I have different weights for each criteria and sub-criteria and I will have a raw score and a weighted score for each of them.

    Let's say, as before, that CRITERIA 1, gets an "X" according to the value in cell I18 (Sum of above values). The formula you provided before would work fine, but now I have two new challenges:

    1) Percentages are a bit more complex now and I might have figures such as 74%, 89%, etc. rather than the rounded 70%, 80%, 90%, etc. that I had before. With the formula you suggested before, if in cell I18 I have 62% an "X" goes in cell G6 "Poor", instead it should go to F6 "Fair". The new parameters are these:

    60-69% Poor
    70-79% Fair
    80-89% Good
    90-99% Very Good
    100% Excellent

    How can I change the parameters of the formula? (See my earlier post to understand what's the difference with the new parameters).

    2) My second challenge is that I should always keep the raw scores. So, if in cell I18 I get 72%, I want to see automatically in cell H6 72% as well.

    To summarize the two questions, I need a formula (or more than one) that

    1) Reports the value in cell I18 in cell H6 (I guess I can just put =I18)
    2) Depending on the value in cell I18 it assigns an "X" to the corresponding criteria values, keeping in mind the following parameters:

    60-69% Poor
    70-79% Fair
    80-89% Good
    90-99% Very Good
    100% Excellent

    I guess the first point is straight forward. The second probably needs refining of the formula previously suggested...

    I am stuck though...

    THANKS A LOT!!!

    Bill

+ 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