+ Reply to Thread
Results 1 to 7 of 7

Sum of Cells from Vlookup

  1. #1
    Registered User
    Join Date
    06-22-2009
    Location
    OP,KS
    MS-Off Ver
    Excel 2003
    Posts
    17

    Sum of Cells from Vlookup

    I am making a personal expenses sheet to calculate my monthly expenses. i have each expense on my CC marked according to a validation list I have (for example Gas, Grocery, Shopping, etc)

    How do i combine the Sum and Vlookup formulas to return the total amount spent on Gas for instance. This will be used for each of my type of expenses.

    if its not possible, I can probably just write a macro

    Thanks
    Last edited by ngay528; 08-06-2009 at 09:38 AM.

  2. #2
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    14,704

    Re: Sum of Cells from Vlookup

    You can probably use SUMIF function, e.g. if expense type is in column A and amounts in column B try

    =SUMIF(A:A,"Gas",B:B)

  3. #3
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Sum of Cells from Vlookup

    A SUMIF() formula would work. Or a SUMPRODUCT() if you also wanted to see it categorized by months, too.

    Here's a sample sheet showing the fancier layout.
    Attached Files Attached Files
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  4. #4
    Registered User
    Join Date
    01-24-2009
    Location
    New Delhi, India
    MS-Off Ver
    Excel 2003, 2007
    Posts
    61

    Re: Sum of Cells from Vlookup

    JBeaucaire

    hi as sent a message please look at the excel file and tell me why i am getting an error...

    thx
    Attached Files Attached Files

  5. #5
    Forum Expert
    Join Date
    11-27-2007
    Location
    New Jersey, USA
    MS-Off Ver
    2013
    Posts
    1,669

    Re: Sum of Cells from Vlookup

    here's your file with formula fixed.
    modytrane
    Attached Files Attached Files

  6. #6
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Sum of Cells from Vlookup

    Have a look here, reformatted the summary section a little.
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    01-24-2009
    Location
    New Delhi, India
    MS-Off Ver
    Excel 2003, 2007
    Posts
    61

    Re: Sum of Cells from Vlookup

    thanks a lot for both of you.... me learning a lot...

    regards,

    naveen

+ 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