+ Reply to Thread
Results 1 to 2 of 2

EXACT Functionality with nn-sequential coloumns

  1. #1
    Registered User
    Join Date
    11-17-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    31

    EXACT Functionality with nn-sequential coloumns

    My code for calculating alphabetic grade is below,it is working properly for sequential coloumns

    How to change this code ,when non-sequential columns are considered ,means how EXACT(R5:V5) will be change if R5,T5,V5 are only considered for EXACT function

    =IFERROR(IF(SUMPRODUCT(--EXACT($R5:$V5,"a"))>0,"a",IF(((COUNTIF(R5:V5,"A")*3)+(COUNTIF(R5:V5,"B")*2)+(COUNTIF(R5:V5,"C")*1))/COUNTA(R5:V5)>=2.1,"A",IF(((COUNTIF(R5:V5,"A")*3)+(COUNTIF(R5:V5,"B")*2)+(COUNTIF(R5:V5,"C")*1))/COUNTA(R5:V5)>=1.1,"B",IF(((COUNTIF(R5:V5,"A")*3)+(COUNTIF(R5:V5,"B")*2)+(COUNTIF(R5:V5,"C")*1))/COUNTA(R5:V5)>=0.1,"C","")))),"")

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

    Re: EXACT Functionality with nn-sequential coloumns

    why are you using that ridiculously long formula when i gave you a far shorter version ?
    AS LONG AS all CELLS ALL HAVE SOMETHING IN THEM
    =LOOKUP(SUMPRODUCT((ROUND(1/((CODE(R5:X5)-64)/3),0))*(MOD(COLUMN(R5:X5),2)=0))/4,{0,0.1,1.1,2.1},{"no grade","C","B","A"})
    for example will only consider cells r5,t5,v5,x5
    Last edited by martindwilson; 11-23-2012 at 08:49 AM.
    "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)

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