Closed Thread
Results 1 to 9 of 9

Calculation according to Assign Grid

  1. #1
    earthworm
    Guest

    Calculation according to Assign Grid

    Hi Guys ,

    I Have a DATA based on the grid according to the values which will be put
    ting

    Like if A = 0 AND U = 1 I Want the marks to be shows as 1

    but if the A=1 And U = 1 I want the marks to be shown as 0

    And if A = 2 AND U = 2 I want the marks to be shown according to grid

    and if A=2 And U = 1 I want the marks to be shown as -2

    i Tried one formula but i m not satisfied with the result plus also i dont want

    value to be shown as 2 if no values are entered in A or U

    WAITING


    Sample excel is attached
    Attached Files Attached Files

  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: Calculation according to Assign Grid

    Waiting ?????????
    "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

  3. #3
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Calculation according to Assign Grid

    I am confused...

    Are you just wanting to lookup A and U values in the grid and return the Marks values?
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

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

    Re: Calculation according to Assign Grid

    thats what i think just add all the possible values to grid and look them up
    try adding 0 1 1
    1,1,0 and so on to grid then in
    d5

    =IF(OR(B5="",C5=""),"",INDEX($H$6:$H$20, MATCH(B5 & C5, INDEX(F6:F20 & G6:G20, 0), 0)))

  5. #5
    earthworm
    Guest

    Re: Calculation according to Assign Grid

    i want to the marks to calculate according to grid.


    LIKE A = 0 AND B = 0 RESULT = 2

    A = 0 AND B = 1 RESULT = 1

    I tried this formula but when i enter 1 in a and 2 in b it shows #n/a

    =IF(OR(B5="",C5=""),"",INDEX($H$6:$H$20, MATCH(B5 & C5, INDEX(F6:F20 & G6:G20, 0), 0)))

    A = 2 B = 2 RESULT -2 and onwards

    Please share the excel . or check my formula if i m doing right ?

    i m confused that when i enter 4 in a and 0 in B Is it showing me the right result according to grid ?

  6. #6
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Calculation according to Assign Grid

    Try:

    =IF(OR(B5="",C5=""),"",SUMPRODUCT(--($F$6:$F$18=B5),--($G$6:$G$18=C5),H6:H18))

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

    Re: Calculation according to Assign Grid

    you have no value of 1,2 in grid! to match
    the sumproduct offered by nbvc will ignore that,and return 0 which is probably what you want

  8. #8
    earthworm
    Guest

    Talking Re: Calculation according to Assign Grid

    Quote Originally Posted by martindwilson View Post
    you have no value of 1,2 in grid! to match
    the sumproduct offered by nbvc will ignore that,and return 0 which is probably what you want
    OK Thanks for your help

    can you please explain this formula

    SUMPRODUCT(--($F$6:$F$18=B5),--($G$6:$G$18=C5),H6:H18))


    " -- " ARRAY . What does it do and is it same like " AND " Formula ?

    Can you please share the excel with simple array formula to complex for me to understand the concept.

    Secondly the formula u gave please explain the meaning

  9. #9
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Calculation according to Assign Grid


Closed 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