+ Reply to Thread
Results 1 to 9 of 9

how to get the total from combination of index and match function

  1. #1
    Registered User
    Join Date
    05-27-2012
    Location
    langkawi
    MS-Off Ver
    2007
    Posts
    46

    how to get the total from combination of index and match function

    Hi there
    i got 1 excel database.
    i currently try to get the total but i dont have an idea how to solve it.
    attach is my database.
    i want total (master record Qty Out(example n7)). what i try to do is i want the total of n7 and the result will be display at I7. Meaning if item N7
    is 3 times, i will get the total n7+n7+n7. I7 is the result of the total of N7 which i calculate from transaction out sheet.
    transaction out is where i key in all the data and master record will calculate the total if it got the match result.
    i hope someone can help me

    note, if this thread already got the same post with others, can someone give me the link. thanks

    thanks
    abu
    Attached Files Attached Files
    Last edited by alimamak; 06-25-2012 at 11:32 PM.

  2. #2
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: how to get the total from combination of index and match function

    Hi Abu,

    You can use below formula to get the sum for all matching records:-

    =SUMPRODUCT(('Transaction out'!$Q$2:$Q$20='Master Record'!$N7)*('Transaction out'!$B$2:$B20))

    see attached:- contoh inv movemnt.xlsx

    Regards,
    DILIPandey

    <click on below 'star' if this helps>
    DILIPandey, Excel rMVP
    +919810929744 (India), +971528225509 (Dubai), [email protected]

  3. #3
    Registered User
    Join Date
    05-27-2012
    Location
    langkawi
    MS-Off Ver
    2007
    Posts
    46

    Re: how to get the total from combination of index and match function

    thanks dili, it works.
    if i want it to be dynamic update automaticaly, can i change the Q2:Q20 to Q:Q as my database will get more row on the future?


    thanks
    abu

  4. #4
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: how to get the total from combination of index and match function

    I think you should use SUMIF()

    =SUMIF(Q:Q,'Master Record'!N7,B:B)

  5. #5
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: how to get the total from combination of index and match function

    Thanks Abu,

    For dynamic range, you can use defined names OR SumIF function as shared by Cutter... cheers

    Regards,
    DILIPandey

    <click on below 'star' if this helps>

  6. #6
    Registered User
    Join Date
    05-27-2012
    Location
    langkawi
    MS-Off Ver
    2007
    Posts
    46

    Re: how to get the total from combination of index and match function

    thanks guy for the formula

  7. #7
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: how to get the total from combination of index and match function

    You're welcome. Thanks for the 'star tap'. Please remember to mark your thread as SOLVED (instructions can be seen in rule #9 by clicking Forum Rules button @ top of page).

  8. #8
    Registered User
    Join Date
    05-27-2012
    Location
    langkawi
    MS-Off Ver
    2007
    Posts
    46

    Re: how to get the total from combination of index and match function

    hi dili, i want to ask, all the script above is base on 2 worksheet, how about i got more worksheet, how i going to add if got more sheet. can u give example for sum product and sum if


    thanks
    abu

  9. #9
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: how to get the total from combination of index and match function

    Hi Abu,


    See the formula part :-
    'Transaction out'!$Q$2:$Q$20='Master Record'!$N7

    Where two sheets are used which are "Transaction Out" and "Master Record" ... similarly you can add more references along with relevant criteria

    Regards,
    DILIPandey

    <click on below 'star' if this helps>

+ 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