+ Reply to Thread
Results 1 to 15 of 15

vlookup and sum functions.

Hybrid View

  1. #1
    Registered User
    Join Date
    11-02-2016
    Location
    brazil
    MS-Off Ver
    2016
    Posts
    7

    Unhappy vlookup and sum functions.

    vlookup gives only the first matching value. How to get all matching values summed up in a single cell?

  2. #2
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: vlookup and sum functions.

    Try the SUMIF function.

  3. #3
    Registered User
    Join Date
    11-02-2016
    Location
    brazil
    MS-Off Ver
    2016
    Posts
    7

    Re: vlookup and sum functions.

    Thanks, but I am still having problem! here is a better explanation:

    Acount 01 Acount 02 Acount 03
    Actual ($250,00) ($100,00) ($800,00)
    foreseen (350,00) ($500,00) (500,00)

    Date: 11/2/2016
    So, I want excel to summ up and display from a table, all the values of Actual and Foreseen
    to any date I type on a cell linked to the Date Cell. is it clear? thanks

  4. #4
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: vlookup and sum functions.

    Can you post the Vlookup formula which returns the first matching value ?

  5. #5
    Registered User
    Join Date
    11-02-2016
    Location
    brazil
    MS-Off Ver
    2016
    Posts
    7

    Re: vlookup and sum functions.

    Sr. I didn't do any lookup. I did them manually. my point is, can you help me with a formula that will give me these sums...?

  6. #6
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    30,820

    Re: vlookup and sum functions.

    Please post a sample file (not image) showing expected results.

    To Attach a File:

    1. Click "Go Advanced"
    2. In the frame Attach Files you will see the button Manage Attachments
    3. Click the button.
    4. A new window will open titled Manage Attachments - Excel Forum.
    5. Click the Browse... button to locate your file for uploading.
    6. This will open a new window File Upload.
    7. Once you have located the file to upload click the Open button. This window will close.
    8. You are now back in the Manage Attachments - Excel Forum window.
    9. Click the Upload button and wait until the file has uploaded.
    10. Close the window and then click Submit.

  7. #7
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: vlookup and sum functions.

    You started your thread with, Quote
    vlookup gives only the first matching value
    I take that to mean that your data is setup in such a way that vlookup will successfully return the value of the first match.

    If I can see what that vlookup would look like, I can transate it to sumif instead so it will add all the matching values together.

  8. #8
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: vlookup and sum functions.

    Sumif is basically like this

    =SUMIF(A1:A100,"Actual",B1:B100)

    This will sum all the values in B1:B100 corresponding to the cells that contain 'Actual' in A1:A100

  9. #9
    Registered User
    Join Date
    11-02-2016
    Location
    brazil
    MS-Off Ver
    2016
    Posts
    7

    Re: vlookup and sum functions.

    Here is my excel file attached... still the same question on Vlookup, Left, and If.
    Thank you so much!
    Attached Files Attached Files
    Last edited by benetty; 11-02-2016 at 05:27 PM. Reason: the file is not attaching!!

  10. #10
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    30,820

    Re: vlookup and sum functions.

    No file attached.

  11. #11
    Registered User
    Join Date
    11-02-2016
    Location
    brazil
    MS-Off Ver
    2016
    Posts
    7

    Re: vlookup and sum functions.

    Sorry! do you see it now? I just edit the same previouse message and attached it.

  12. #12
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 365 version 2501
    Posts
    18,938

    Re: vlookup and sum functions.

    OK, I feel rather confident that the formula for C4:C11 could be:
    Formula: copy to clipboard
    =SUMIFS(E$26:E$95,H$26:H$95,B4)
    Similarly D4:D11 could be:
    Formula: copy to clipboard
    =SUMIFS(G$26:G$95,H$26:H$95,B4)
    I am a bit less confident about the formulas for E21:F22 which I feel may be similar to:
    Formula: copy to clipboard
    =SUMIFS(E$26:E$95,D$26:D$95,"<="&$B$20)
    Which by the way I am totally guessing could also be the formula that populates B21.
    If I am off on any of these I would suggest that you manually insert the value that you expect to see in that cell so that we'll have a target.
    Let us know if you have any questions.
    Attached Files Attached Files
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  13. #13
    Registered User
    Join Date
    11-02-2016
    Location
    brazil
    MS-Off Ver
    2016
    Posts
    7

    Re: vlookup and sum functions.

    Thank you so much for your help!

  14. #14
    Registered User
    Join Date
    11-02-2016
    Location
    brazil
    MS-Off Ver
    2016
    Posts
    7

    Re: vlookup and sum functions.

    What should I learn to be able to work with a lot of datas in a single excel sheet like this example attached?
    Attached Files Attached Files
    Last edited by benetty; 11-05-2016 at 02:23 PM.

  15. #15
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 365 version 2501
    Posts
    18,938

    Re: vlookup and sum functions.

    Not sure what it is that you want to do with the data in the file attached to post #14. My suggestion is that you start a new thread asking for specific help with the question(s) that you have about using the data.
    Responding to post #13: Your Welcome and thank you for the feedback. Please take a moment to mark the thread as 'Solved' using the thread tools link above your first post. I hope that you have a blessed day.

+ 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. VLOOKUP and IF functions or COUNTIF and AND functions?
    By MHayward in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-02-2015, 11:11 AM
  2. [SOLVED] VLOOKUP and RIGHT functions
    By Darko42 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 10-01-2014, 03:49 PM
  3. Nesting Vlookup Functions with IF Functions and possibly more
    By Anitarizzo in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 03-27-2014, 12:50 AM
  4. [SOLVED] Vlookup with If Functions
    By vegobu in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 09-01-2013, 09:59 PM
  5. Multiple IF Functions or VLOOKUP functions
    By yinka00000 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-15-2012, 11:29 PM
  6. vlookup functions within if functions.
    By sjhill60 in forum Excel General
    Replies: 1
    Last Post: 10-13-2011, 11:10 PM
  7. VLookup with IF Functions
    By NoiCe in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 05-05-2008, 04:38 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