+ Reply to Thread
Results 1 to 9 of 9

Sum with lookup condition

  1. #1
    Forum Contributor
    Join Date
    02-15-2012
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2019
    Posts
    435

    Sum with lookup condition

    Hi,

    Need help in putting formula of sum with lookup condition.

    An excel file attached with necessary details.

    Pl. help.

    Thanks,
    Nagesh.
    Attached Files Attached Files

  2. #2
    Forum Contributor
    Join Date
    02-15-2012
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2019
    Posts
    435

    Re: Sum with lookup condition

    Sorry. The answer will be 880 only. I indicated 960 in the comment wrongly.

  3. #3
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2503 (Windows 11 Home 24H2 64-bit)
    Posts
    90,381

    Re: Sum with lookup condition

    See if this works for you:

    =SUMPRODUCT(1*SUMIF(I3:I6,A3:A8,K3:K6))
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2503 (Windows 11 Home 24H2 64-bit)
    Posts
    90,381

    Re: Sum with lookup condition

    Why 880? Please explain the calculation. 960 looks correct to me:

    4*150 = 600
    2*180 = 360

    TOTAL: 960

  5. #5
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Sum with lookup condition

    Try this:

    =SUMPRODUCT(G3:G8,SUMIF(I3:I6,A3:A8,K3:K6))

  6. #6
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2024
    Posts
    6,175

    Re: Sum with lookup condition

    Or try:

    =SUMPRODUCT(VLOOKUP(N(IF({1},A3:A8)),I3:K6,3,0)*G3:G8)

  7. #7
    Forum Expert avk's Avatar
    Join Date
    07-12-2007
    Location
    India
    MS-Off Ver
    Microsoft Office 2013
    Posts
    3,277

    Re: Sum with lookup condition

    Also : Add column "H" as Total Cost "H2"
    In "H3"
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    copy paste down


    atul


    If my answer (or that of other members) has helped you, please say "Thanks" by clicking the Add Reputation button at the foot of one of their posts.

    Also: if your problem is solved, please take the time to mark your thread as SOLVED by going to the top of your first post, selecting "Thread Tools" and then "Mark thread as solved".

  8. #8
    Forum Contributor
    Join Date
    02-15-2012
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2019
    Posts
    435

    Re: Sum with lookup condition

    Thank you 63falcondude. It is working fine now.

  9. #9
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Sum with lookup condition

    You're welcome. Happy to help.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. lookup with condition
    By minhtien1900 in forum Excel General
    Replies: 3
    Last Post: 12-28-2017, 10:49 PM
  2. Lookup condition
    By hanif in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-07-2015, 11:00 AM
  3. If or Lookup condition
    By zeez36 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-22-2014, 02:49 AM
  4. multi condition format? lookup and date condition valid for.
    By D_Rennie in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 08-13-2009, 11:37 AM
  5. Max value if condition lookup
    By robotball in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-12-2007, 11:27 PM
  6. [SOLVED] Sumproduct - Condition based on lookup of a Lookup
    By Hari in forum Excel General
    Replies: 13
    Last Post: 05-31-2006, 04:30 AM
  7. [SOLVED] condition Lookup help
    By Paul T in forum Excel General
    Replies: 6
    Last Post: 07-24-2005, 01:05 PM

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