+ Reply to Thread
Results 1 to 23 of 23

Assigning bandwidths to negative and positive scoring results

  1. #1
    Registered User
    Join Date
    05-25-2017
    Location
    Buchs, Switzlerand
    MS-Off Ver
    2019
    Posts
    75

    Assigning bandwidths to negative and positive scoring results

    Hello
    Excel is not new to me but with this I feel like a beginner…
    I have a scoring model in which scores must be categorized as follows (File "Excel Table"):

    This is the table I would like to base my excel formula on.
    As a guide, the actual bandwidths are (File "Bandwidths_table"):

    The tricky bandwidth is the „NEUTRAL“ one. Any values ranging from -0.38 to just under 0.63 must be assigned to the neutral category. Examples of desired results are as follows (file Table results):

    I have tried the lookup function as well as the index function but these either work for the positive OR the negative bandwidths, but never for both.
    Would be very grateful for a helping hand!!
    Attached Images Attached Images

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2404 Win 11 Home 64 Bit
    Posts
    23,855

    Re: Assigning bandwidths to negative and positive scoring results

    Hi and welcome to the forum

    Pictures are of little value. Honestly, no one wants to re-type your data to try and solve your issue. Additionally, we would only be guessing at how your data was structured, ie. formulas, formatting, etc. Additionally, due to how some browsers behave, many of our members cannot see uploaded pictures/images. Please do not take this route.

    Please attach a sample file that represents what you have. The structure of your attachment should be the same structure as your actual data. Any proprietary information should be changed.

    Include in the attachment any code you're currently using (whether it works or not) and an "After" of what you wish the output to be.

    To attach a file to your post,
    click advanced (next to quick post),
    scroll down until you see "manage file",
    click that and select "add files" (top right corner).
    click "select files" find your file, click "open" click "upload" click 'done" bottom right. click "submit reply"

    Once the upload is completed the file name will appear below the input boxes in this window.
    You can then close the window to return to the new post screen.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Registered User
    Join Date
    05-25-2017
    Location
    Buchs, Switzlerand
    MS-Off Ver
    2019
    Posts
    75

    Thumbs up Re: Assigning bandwidths to negative and positive scoring results

    Hi,
    My apologies for the pictures, I get it. I attached an Excel file. One problem, however, is that my Excel is in German, so my formula would not help. If I get the answer in English it is no problem for me to translate it back. Also other numbers can be taken (as these may change), as long as you have negative and positive ranges.
    So, Section A2:B13 is what I actully have on my Excel spreadsheet. These represent the boundaries for the bandwidths I mentioned. Examples (see the test section F18:G21): A score of -7 should be assigned the bandwidth "very good", whereas -0.38 should be in the "neutral" zone.
    The actual underlying bandwidths can be taken from the section E3:G13.
    Hope this helps! Please tell me if not.
    I appreciate your efforts!

    Best regards,
    Excel_Arate
    Attached Files Attached Files

  4. #4
    Forum Contributor
    Join Date
    03-22-2017
    Location
    Malaysia
    MS-Off Ver
    Excel 2010
    Posts
    230

    Re: Assigning bandwidths to negative and positive scoring results

    Hi,

    U may try this an array formula
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    PS: array formula is need to confirm by Ctrl + Shift + Enter

    If not understand, please follow below step:

    1, Paste the formula to the cell
    2, Double click on the cell
    3, press Ctrl + Shift + Enter
    It show { sign in front of formula. (ie "{=ind.....)


    I using Index and Match to return the words want.
    and to compare with the list in column A and seek for correct row.

    After a couple of try, the starting by neutral, the result is went wrong, hence I use if function to add in another formula after the neutral level.

    It went well, but in the second formula, the range have to delay one row (ie, from A3:A13 to A4:A14) because it compare the bottom.

    Additional, the value more than 29 is not able to show text, but is solved after add in the 1000000 in A14.

    attach is my try, J3:L13 is my checking.
    Attached Files Attached Files
    Last edited by BoredWorker; 05-26-2017 at 05:42 AM.

  5. #5
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Assigning bandwidths to negative and positive scoring results

    Another way.
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Dave

  6. #6
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Assigning bandwidths to negative and positive scoring results

    Also this which references H2:I13. It returns different than the expected. I believe it is correct.
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Can you explain how 29.00 is Record - low quality? Shouldn't it be Extremely bad? 29.00 is within that range.

    Row\Col
    E
    F
    G
    H
    1
    Actual bandwidths
    2
    Highest value Lowest Value
    3
    -1E+11
    -32.99
    Record - high quality
    4
    -32.98999
    -7.39
    Extremely good
    5
    -7.38999
    -2.20
    Very good
    6
    -2.19999
    -1.13
    Good
    7
    -1.12999
    -0.39
    Quite good
    8
    -0.38999
    0.62999
    NEUTRAL
    9
    0.63
    1.54999
    Quite bad
    10
    1.55
    2.69999
    Bad
    11
    2.70
    6.41999
    Very bad
    12
    6.42
    29.09999
    Extremely bad
    13
    29.10
    1E+11
    Record - low quality
    14
    15
    16
    Test
    17
    Value Result should be FlameRetired
    18
    -7.00
    Very good Very good
    19
    -0.38
    NEUTRAL NEUTRAL
    20
    29.00
    Record - low quality Extremely bad
    21
    31.00
    Record - low quality Record - low quality

  7. #7
    Registered User
    Join Date
    05-25-2017
    Location
    Buchs, Switzlerand
    MS-Off Ver
    2019
    Posts
    75

    Re: Assigning bandwidths to negative and positive scoring results

    Hi BoredWorker

    Thank you for your Approach. Unfortunately, it doesn't quite work. It seems alriht for the negative numbers, but Fails in the positive ranges. You will see my test results in tha attachment.

    Thanks and regards,
    Excel_Arate

  8. #8
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,984

    Re: Assigning bandwidths to negative and positive scoring results

    Am i missing something... isnt this simply:

    =VLOOKUP(H18,$G$3:$I$13,3,TRUE)
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  9. #9
    Registered User
    Join Date
    05-25-2017
    Location
    Buchs, Switzlerand
    MS-Off Ver
    2019
    Posts
    75

    Re: Assigning bandwidths to negative and positive scoring results

    Dear FlameRetired,

    First of all, thank you very much indeed! I never used the function "Frequency" before and it works on the table you used it on. And you were also right regarding your comment (29.0 belonging to "extremely bad" and not "Record - low quality".

    I don´t mean to be ungrateful, but could we get this to work on the multi-colored table as well (A2:B14)? You see, the problem is that these are all values are taken from a normal distribution and the "neutral" value of 0.11 sits exactly at the 50% mark. I tried to use an IF statement to define the neutral zone as an exception but then the part below ("extremy bad") goes awry. For clarification I have added in my results based on the multi-colored table, the red ones being wrong. Is there a way to straighten this out?

    Many thanks for your efforts!

    Excel_Arate
    Attached Files Attached Files

  10. #10
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,146

    Re: Assigning bandwidths to negative and positive scoring results

    Why is value of 8 "Record Low Quality"? and have you looked at Glenn's solution?

  11. #11
    Registered User
    Join Date
    05-25-2017
    Location
    Buchs, Switzlerand
    MS-Off Ver
    2019
    Posts
    75

    Re: Assigning bandwidths to negative and positive scoring results

    Hi FlameRetired,
    I checked this solution 2nd, so I've called the file FlameRetired II. There are some weak spots, if you care to check. I had to convert the formula into German, but you should be able to recognize your original formula ("Häufigkeit"=Frequency; "Wennfehler"=iferror).
    Is there any way you can either correct this solution or the previous one?

    Cheers,
    Excel_Arate
    Attached Files Attached Files

  12. #12
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,146

    Re: Assigning bandwidths to negative and positive scoring results

    Sorry to persist but the formula in post #8 from Glenn provides the answer.
    Attached Files Attached Files

  13. #13
    Registered User
    Join Date
    05-25-2017
    Location
    Buchs, Switzlerand
    MS-Off Ver
    2019
    Posts
    75

    Re: Assigning bandwidths to negative and positive scoring results

    Hi Glenn,

    Please see attchment. Results are all correct! However, the values should be taken from other table (A2:B14), as these are actual readings from a not-quite- perfect empirically derived normal distribution the "NEUTRAL" mark at 50% being the 0.11. Is there something that can be done about this?

    Best regards,
    Excel_Arate
    Attached Files Attached Files

  14. #14
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,984

    Re: Assigning bandwidths to negative and positive scoring results

    Look back in the UK morning.. .

  15. #15
    Registered User
    Join Date
    05-25-2017
    Location
    Buchs, Switzlerand
    MS-Off Ver
    2019
    Posts
    75

    Re: Assigning bandwidths to negative and positive scoring results

    Hi John,
    A value of 8 would be "extremely bad", you are right in pointing that out. Glenn's solution works if take the readings from the larger table, which was not intended. Instead, they should be taken from the mutli-coloured section, the values of whch represent readings from a normal distribution.
    Best regards,
    Excel_Arate

  16. #16
    Registered User
    Join Date
    05-25-2017
    Location
    Buchs, Switzlerand
    MS-Off Ver
    2019
    Posts
    75

    Re: Assigning bandwidths to negative and positive scoring results

    That's great, thank you for your efforts! Good night.

  17. #17
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Assigning bandwidths to negative and positive scoring results

    I think I see it now, and I believe Glenn has the right idea.

    Try array entering this formula and fill down. It references A2:B13, and it's a bit of a "cheat". It forces anything lower than the second smallest value to return "Record - high quality".
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  18. #18
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Assigning bandwidths to negative and positive scoring results

    This one doesn't have to be array entered. It still "cheats".
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  19. #19
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,984

    Re: Assigning bandwidths to negative and positive scoring results

    Or...

    =INDEX($B$3:$B$13,MATCH(H18,$A$2:$A$13,1)+IF(H18>0,-1,0))

    Your expected answer for 0.63 (neutral) is not consistent with the data in row 9 (Quite bad)
    Attached Files Attached Files

  20. #20
    Registered User
    Join Date
    05-25-2017
    Location
    Buchs, Switzlerand
    MS-Off Ver
    2019
    Posts
    75

    Re: Assigning bandwidths to negative and positive scoring results

    Hi Glenn,
    You did it!!!, thank you ever so much. I tested the values below and above the threhold values and it works! The only drawback is that now I feel like a real beginner. I did notice one Thing: in the ranges with negative numbers you had to surpass the threshhold to reach the next class, whereas with the positive numbers and the "neutral" area, reaching it was enough to qualify for the next segment. But this is negligible for my purposes.

    One question: what does the section +IF(H18>0,-1,0) in your formula actually do?

    Thanks again!

    Best regards,
    Excel_Arate

  21. #21
    Registered User
    Join Date
    05-25-2017
    Location
    Buchs, Switzlerand
    MS-Off Ver
    2019
    Posts
    75

    Re: Assigning bandwidths to negative and positive scoring results

    Hi FlameRetired,

    Thank you for thinking this through. As I see it, there are still one or two weak spots:
    e.g.
    -7.39 still gives you "record high quality" instead of Extremely good" and
    -0.30 results in "quite good" vs. "neutral"

    The formula Glenn provided me with does seem to work flawlessly, so I'm glad to say the case is closed.

    Thank you so much for contributing!

    Best regards,
    Excel_Arate

  22. #22
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,984

    Re: Assigning bandwidths to negative and positive scoring results

    Your other data block was nicely laid out However the column A and B stuff wasn't. "My" formula cheats as well... it's just a bit more hidden. For the negative values, the INDEX and MATCH formula are looking at ranges that are 1 row different. The IF(H18>0,-1,0) bit corrects that for the positive numbers, where the values and the descriptions are correctly aligned...

  23. #23
    Forum Contributor
    Join Date
    03-22-2017
    Location
    Malaysia
    MS-Off Ver
    Excel 2010
    Posts
    230

    Re: Assigning bandwidths to negative and positive scoring results

    Hi Arate,

    I see your attachment.

    The formula you using is where to paste from....

    It not exactly same with formula that I provide to you....

+ 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: 4
    Last Post: 05-03-2017, 10:11 AM
  2. Formula help needed please / positive vs negative results
    By SJR527 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-10-2015, 07:47 AM
  3. Split Positive and Negative results
    By andreasnw in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-26-2014, 12:37 PM
  4. Replies: 4
    Last Post: 03-05-2014, 08:53 AM
  5. Goals based on positive and negative results
    By dleslieca in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 01-03-2013, 03:41 PM
  6. Convert negative to positive in sheet containing both positive/negative numbers
    By sa02000 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-29-2010, 07:52 PM
  7. Help with IF function and positive or negative results
    By BallHawk in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-03-2005, 11:44 AM

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