+ Reply to Thread
Results 1 to 4 of 4

lookup data from table

  1. #1
    Forum Contributor
    Join Date
    09-22-2007
    Posts
    119

    lookup data from table

    Hi, I need some help of the code for lookup value of point 1 and point2 from the table ,if i key in the no.group and type of grade.
    eg.1 Group10 grade a value to be point1=75 point2=20
    eg.2 Group16 grade B value to be point1=125 point2=172
    How can i do it,please
    pichai.
    Attached Files Attached Files
    Last edited by NBVC; 12-06-2008 at 11:17 PM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    Try this formula in I8:

    =SUMPRODUCT(($B$4:$B$43=$G$8)*($C$4:$C$43=$H$8),D$4:D$43)

    and copy it to J8.
    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.

  3. #3
    Forum Contributor
    Join Date
    09-22-2007
    Posts
    119
    Hi,thank for your best code ,that it work.
    can by anyway to do this by the another code ,vlookup or not,please?

  4. #4
    Valued Forum Contributor
    Join Date
    11-11-2008
    Location
    Euro
    MS-Off Ver
    2007, 2010
    Posts
    470
    Quote Originally Posted by NBVC View Post
    Try this formula in I8:

    =SUMPRODUCT(($B$4:$B$43=$G$8)*($C$4:$C$43=$H$8),D$4:D$43)

    and copy it to J8.
    Quote Originally Posted by pichai View Post
    Hi,thank for your best code ,that it work.
    can by anyway to do this by the another code ,vlookup or not,please?
    OR we can use SUMIFS in Excel 2007

    cell I8
    PHP Code: 
    =SUMIFS(D$4:D$43,$B$4:$B$43,$G$8,$C$4:$C$43,$H$8
    Syntax is extracted from help of Microsoft:

    SUMIFS(sum_range,criteria_range1,criteria1,criteria_range2,criteria2…)

    Sum_range is one or more cells to sum, including numbers or names, arrays, or references that contain numbers. Blank and text values are ignored.

    Criteria_range1, criteria_range2, … are 1 to 127 ranges in which to evaluate the associated criteria.

    Criteria1, criteria2, … are 1 to 127 criteria in the form of a number, expression, cell reference, or text that define which cells will be added. For example, criteria can be expressed as 32, "32", ">32", "apples", or B4.
    Last edited by tigertiger; 12-06-2008 at 12:18 AM.

+ Reply to 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