+ Reply to Thread
Results 1 to 5 of 5

Excel 2007 : Lookup word and sum and values

  1. #1
    Registered User
    Join Date
    07-07-2012
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    2

    Question Lookup word and sum and values

    I am trying to make a budget where I have a sheet of my source data, basically a list of the date, category, and amount of all my expenses. In another sheet I have make a budget of what I want to spend with the exact replica next to it except I want to have the number of what I actually spend in each category. So heres my problem... I want to write a formula that is very similar to a vlookup where I can say every time the word "lunch" comes up in my source data go one cell over and put the amount into my budget. However, as Im sure you can imagine I eat lunch everyday and there for do NOT have unique IDs for all my inputs. So I guess what I real want is a type of lookup where it finds every time the word "Lunch" shows up and sums them for a total amount spend on Lunch in my budget. Can anyone think of an easy way to do this. Thanks guys.
    ""
    Last edited by Excel Question; 07-07-2012 at 10:56 PM. Reason: Inappropriate title

  2. #2
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: Lookup word and sum and values

    hi Excel Question, welcome to the forum. i think you might find SUMIF useful in your scenario,
    =SUMIF(Range where you can find the word "Lunch","Lunch",Range you want to sum up)

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  3. #3
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: Lookup word and sum and values

    Take a look at the SUMIF function...

    =SUMIF(A:A,D1,B:B)

    =SUMIF(range,criteria,sum_range)

    The range >> column A which includes the type of transaction

    The criteria >> cell D1 which in this case equals >> Lunch

    The sum range >> column B which holds the amounts you spent on a transaction
    HTH
    Regards, Jeff

  4. #4
    Registered User
    Join Date
    07-07-2012
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Lookup word and sum and values

    That way easy haha. Thanks so much.

  5. #5
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: Lookup word and sum and values

    You are most welcome and now you are a forum pro...

    Glad it worked out for you and thanks for the feedback

    If you are satisfied with the solution(s) provided, please mark your thread as Solved.

    New quick method:
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

    Or you can use this way:

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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