+ Reply to Thread
Results 1 to 6 of 6

a forumla to check sum of letters and give a result and change cell colour?

  1. #1
    Registered User
    Join Date
    11-18-2015
    Location
    London, England
    MS-Off Ver
    2010
    Posts
    6

    a forumla to check sum of letters and give a result and change cell colour?

    Hi, I'm very new to Excel and not really sure if I'm going about this the right way or not.

    I have to do a task every day and it's very repetitive and boring, so just trying to speed it up!

    In a column in a table I have to enter 'H' (for high) 'M' (for middle) or 'L' for low - for each cell in the column, 9 rows in height. Then I have to read back up and add up all the 'H', all the 'L' and all the 'M'. If there are 6 or more 'H' its considered 'H' overall, so that gets entered in a cell at the bottom and the cell turned blue. If it's got 6 or more 'L' in the column, it's 'L' overall and that gets entered in the bottom cell and it's turned red. If there are 6 'M', it's 'M' in the bottom and the cell turned white.

    Then I have to do that for another 20 columns...

    How can I automate this so I can type in the H L and M's and the last bit is calculated and done for me? I was thinking of assigning H as +1, L as -1 and M as zero and then adding up the result to see if it's plus 6 minus 6 or somewhere inbetween

  2. #2
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: a forumla to check sum of letters and give a result and change cell colour?

    In the attached is my attempt as what I think you're after for this. I may be way off.

    It uses a formula to work out which letter appears the most in each respective column and if that letter appears 6 or more times the corresponding letter will be placed in the bottom row. Conditional formatting takes care of the colour change dependent on the result in the bottom row.

    My question would be, would there be a scenario where a given letter does not appear at least 6 times? And what should happen if that were the case?

    BSB
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    11-18-2015
    Location
    London, England
    MS-Off Ver
    2010
    Posts
    6

    Re: a forumla to check sum of letters and give a result and change cell colour?

    Hmmm replied but it disappeared, I'll try again...

    First off, that's amazing, many thanks!

    Yes there are cases where there won't be more than 6 of each group - in which case the ideal result would be to have 'M' at the bottom - it's basically comparing sets of variables as a group, so each variable (cell) having a result of 'high', 'low' or 'following median', if H or L appears more than 6 times then that 'group' is considered to be H or L, but if say there were 3 H, 3 L and 3 M, then the group overall is following median (what M stands for)

  4. #4
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: a forumla to check sum of letters and give a result and change cell colour?

    In that case, change the ,"") at the end of the formula to ,"M") and all should work as expected.

    BSB

  5. #5
    Registered User
    Join Date
    11-18-2015
    Location
    London, England
    MS-Off Ver
    2010
    Posts
    6

    Re: a forumla to check sum of letters and give a result and change cell colour?

    You're a star mate, done, works perfectly, many many thanks! Just saved me countless wasted hours and boredom

  6. #6
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: a forumla to check sum of letters and give a result and change cell colour?

    Happy to help mate

    Thanks for the rep point and don't forget to mark the thread as SOLVED

    BSB

+ 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: 11-27-2014, 02:48 PM
  2. check multiple columns data & give result
    By bilal_id in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-06-2013, 09:08 AM
  3. How do I change the cell colour depending on if statement result?
    By bahamasanita in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-04-2013, 05:10 PM
  4. Change cell colour with a check box within that cell
    By KENWITT in forum Excel General
    Replies: 1
    Last Post: 03-04-2013, 03:17 PM
  5. [SOLVED] How to change the colour of a 3rd cell depending on result of 2 others
    By BBoyAl in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-08-2012, 03:13 AM
  6. conditional formatting to change colour of cell based on formula result
    By gideong in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-15-2009, 09:35 AM
  7. Change cell colour based on formula result
    By fixednfinal in forum Excel - New Users/Basics
    Replies: 3
    Last Post: 04-29-2005, 05:29 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