+ Reply to Thread
Results 1 to 5 of 5

Multiple lookup adding columns, then multiplying, then lookup, add, and subtract

  1. #1
    Registered User
    Join Date
    10-10-2006
    Posts
    29

    Multiple lookup adding columns, then multiplying, then lookup, add, and subtract

    Need a formula to do the following in the attached file (Games.xlsx):
    1. Look in COLUMN C for the entry "Deposit from games"
    2. Total the amounts in COLUMN D that match the criteria in step 1
    3. Multiply the total from step 2 by .7
    4. Look in COLUMN F for the entry 70
    5. Total the amounts in COLUMN G that match the criteria in step 4
    6. Take the results from step 3 and subtract the results from step 5
    ------------------------------------------------------------------------------------------
    Steps 1&2 results = $6171.00
    Step 3 results = $4319.70
    Steps 4&5 results = $500
    Step 6 results = $3819.70
    ------------------------------------------------------------------------------------------
    I have tried variations of sumproduct, sumif, and index match. I just can't figure it out. Formula will go in cell K3.
    Attached Files Attached Files

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,917

    Re: Multiple lookup adding columns, then multiplying, then lookup, add, and subtract

    Hi and welcome back to the forum after being away for almost 7 years

    Maybe you didnt quite get the sumif() syntax right?

    =SUMIF($C$5:$C$14,"deposit from games",D5:D14)*0.7-SUMIF($F$5:$F$14,70,G5:G14)
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Forum Expert icestationzbra's Avatar
    Join Date
    01-07-2004
    MS-Off Ver
    2007, 2010
    Posts
    1,421

    Re: Multiple lookup adding columns, then multiplying, then lookup, add, and subtract

    try:

    =(sumifs(d5:d14,c5:c14,"deposit from games")*0.7)-sumifs(g5:g14,f5:f14,70)
    - i.s.z -
    CSE, aka Array aka { }, formulae are confirmed with CONTROL+SHIFT+ENTER.
    Replace commas ( , ) with semicolons ( ; ) in formulae, if your locale setting demands.
    All good ideas are courtesy resources from this forum as well as others around the web.
    - e.o.m -

  4. #4
    Registered User
    Join Date
    10-10-2006
    Posts
    29

    Re: Multiple lookup adding columns, then multiplying, then lookup, add, and subtract

    Thank you very much. That works perfectly.

  5. #5
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,917

    Re: Multiple lookup adding columns, then multiplying, then lookup, add, and subtract

    Happy to help and thanks for the feedback

    @ icestationzebra, you can use sunif() here because there is only 1 criteria - not that it really makes a difference)

+ 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. [SOLVED] Lookup across multiple columns
    By Caradonguy in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-13-2013, 08:03 AM
  2. Replies: 7
    Last Post: 06-19-2011, 12:51 PM
  3. Adding multiple values for same lookup
    By dtcvxf in forum Excel General
    Replies: 13
    Last Post: 07-21-2009, 03:52 AM
  4. Lookup adjacent column to multiple lookup columns.
    By JAMES4228 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-13-2009, 03:19 PM
  5. [SOLVED] lookup across multiple columns
    By NHP in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-31-2006, 05:35 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