+ Reply to Thread
Results 1 to 6 of 6

Lookup GL Code at another place and sum for that GL

  1. #1
    Registered User
    Join Date
    11-24-2013
    Location
    Mumbai
    MS-Off Ver
    Excel 2007
    Posts
    23

    Lookup GL Code at another place and sum for that GL

    Dear All,

    I have one GL Code name 41110000 and so on at one place. I have series of GL Code at another place with columns and values therein. I need formula where 41110000 GL Code is searched in the series of GL Codes and place sum values of columns corresponding to the same GL e.g. is given below.

    41110000 - sum = 24000
    41120000 - sum = 1700

    Series
    column A column B

    42033200 150000 20000
    41100000 8000 300
    41110000 20000 4000
    41120000 1500 200
    42020100 30 400

    Thanks in advance.

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Ipswich, England
    MS-Off Ver
    Excel 2016 (Win 10 - Work) & 365 Subscription (Win 10 - Home)
    Posts
    31,218

    Re: Lookup GL Code at another place and sum for that GL

    Try this: ...............
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!

    Forum Rules (updated September 2018): please read them here.
    How to use the Power Query code you've been given: help here. More about the Power suite here.
    Don't forget to say "thank you" to those who have helped you in your thread. If you wish, you can also reward them by clicking on their reputation star bottom left.

  3. #3
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Ipswich, England
    MS-Off Ver
    Excel 2016 (Win 10 - Work) & 365 Subscription (Win 10 - Home)
    Posts
    31,218

    Re: Lookup GL Code at another place and sum for that GL

    Try this:

    Excel 2016 (Windows) 32 bit
    [COLOR="rgb(255, 255, 255)"] [/COLOR]
    [COLOR="rgb(255, 255, 255)"]A[/COLOR]
    [COLOR="rgb(255, 255, 255)"]B[/COLOR]
    [COLOR="rgb(255, 255, 255)"]C[/COLOR]
    [COLOR="rgb(255, 255, 255)"]1[/COLOR]
    42033200
    150000
    20000
    [COLOR="rgb(255, 255, 255)"]2[/COLOR]
    41100000
    8000
    300
    [COLOR="rgb(255, 255, 255)"]3[/COLOR]
    41110000
    20000
    4000
    [COLOR="rgb(255, 255, 255)"]4[/COLOR]
    41120000
    1500
    200
    [COLOR="rgb(255, 255, 255)"]5[/COLOR]
    42020100
    30
    400
    Sheet: Sheet1

    Excel 2016 (Windows) 32 bit
    [COLOR="rgb(255, 255, 255)"] [/COLOR]
    [COLOR="rgb(255, 255, 255)"]F[/COLOR]
    [COLOR="rgb(255, 255, 255)"]1[/COLOR]
    =SUMPRODUCT([COLOR="rgb(255"]([COLOR=" 0"]A1:A5=E1[/COLOR])*([COLOR=" 0"]B1:C5[/COLOR])[/COLOR])
    Sheet: Sheet1

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Ipswich, England
    MS-Off Ver
    Excel 2016 (Win 10 - Work) & 365 Subscription (Win 10 - Home)
    Posts
    31,218

    Re: Lookup GL Code at another place and sum for that GL

    Sorry my Forum Tools add-in seems not to be working!

    With 41110000 in E1, this in F1:

    =SUMPRODUCT((A1:A5=E1)*(B1:C5))

  5. #5
    Registered User
    Join Date
    11-24-2013
    Location
    Mumbai
    MS-Off Ver
    Excel 2007
    Posts
    23

    Re: Lookup GL Code at another place and sum for that GL

    Thanks a lot. Resolved the problem.

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Ipswich, England
    MS-Off Ver
    Excel 2016 (Win 10 - Work) & 365 Subscription (Win 10 - Home)
    Posts
    31,218

    Re: Lookup GL Code at another place and sum for that GL

    You're welcome!

+ 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