+ Reply to Thread
Results 1 to 6 of 6

Formula that averages letters

  1. #1
    Registered User
    Join Date
    07-29-2009
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    5

    Formula that averages letters

    I have a formula that averages letters(See formula 1). The letters are TRUE argument results of another formula(See formula 2). However, Formula 1 will only work if all of my letter arguments are "true". Most of my cells have a letter, however some do not and are blank or "" since that was my 'false' statement. Does anyone have a work around for this?

    Formula 1
    =CHAR(ROUND(AVERAGE(IF(ISTEXT(BB3:BB24),CODE(BB3:BB24),"")),0))

    Formula 2
    =IF(BB5>74%,"A",IF(AND(BB5>=45%,BB5<=74%),"B",IF(BB5<45%,"C","")))

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Formula that averages letters

    Sorry, I don't understand quite where formula 2 is placed - formula 1 would imply the resulting letters appear in BB3:BB24 but formula 2 would imply otherwise (ie must be somewhere other than BB - unless some sort of iterative process is in operation)

    On an aside, Formula 2 can be simplified given the rule that an IF exits upon first TRUE being established and action completed:

    Please Login or Register  to view this content.
    If for args sake we assume letters are in fact in range BC3:BC24 (rather than BB) and that the range may include Nulls to be excluded and you want the most frequently occuring letter then perhaps:

    Please Login or Register  to view this content.
    I'm not quite sure how your Average will work given it will tend to give additional weight to the latter letters in the sequence (as they are worth more), ie a range containing 5 A's, 2 B's and 3 C's would using the Average method of:

    Please Login or Register  to view this content.
    generate a result of B as opposed to A (as generated by Mode method)... not sure which you want... (if either)
    Last edited by DonkeyOte; 07-29-2009 at 05:20 PM. Reason: reworded slightly

  3. #3
    Registered User
    Join Date
    07-29-2009
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: Formula that averages letters

    You are a genius!!! Thank YOU!!!!!!!!! My VP will appreciate this =)

  4. #4
    Registered User
    Join Date
    07-29-2009
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: Formula that averages letters

    I have four cells that need to be averaged together, but each cell is weighted differently.

    C8= A - worth 25%
    C13 = B - worth 30%
    C18 = A - worth 10%
    C24 = C - worth 35%

    Is there a formula that would take the values in each cell, weight them, then average them together to create a letter?

    I tried to do this on my own but the formula doesn't work:
    =CHAR(ROUNDUP(SUM((CODE(C8)*0.25),C13,C18,C24),0.5))

  5. #5
    Registered User
    Join Date
    07-29-2009
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: Formula that averages letters

    =CHAR(ROUNDUP(SUM(CODE((C8)*0.25),((C13)*0.30),((C18)*0.10),((C24)*0.35)),0.5))

    That is the complete formula I have and it gives me a result of #VALUE.

  6. #6
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Formula that averages letters

    Maybe =CHAR(ROUND(25%*CODE(C8) + 30%*CODE(C13) + 10%*CODE(C18) + 35%*CODE(C24), 0) )
    Entia non sunt multiplicanda sine necessitate

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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