+ Reply to Thread
Results 1 to 9 of 9

Home accounts formula help... Retrieve & add data ($) from one column, if category code is

  1. #1
    Registered User
    Join Date
    08-25-2014
    Location
    Vienna, Austria
    MS-Off Ver
    Office 2007
    Posts
    5

    Home accounts formula help... Retrieve & add data ($) from one column, if category code is

    Hi, this is my first usage of this forum, it's been helpful and this one I can't find a solution for.

    I have a category field, and a money spent field in a table.

    Category Money spent
    1 $12
    2 $19
    2 $122
    1 $5
    4 $65
    5 $34
    5 $12
    3 $26

    Category 1: $17
    Category 2: $$$
    and so on..

    So I'm looking for a formula that returns information to one cell. A formula that looks if in 'this' column you see the category code '1' for example, then return to me the money spent for ALL the 1's. It should return $17...

    The table above is small just for demo purpose, my table has 8 category codes at the moment and the number of rows can be between 15 and 50 I guess... it's a monthly break down.
    I would like to see how much is spent in total for each category...

    In addition if possible, can this be done for two separate tables... We are two people, and I have two table recording expenditure.
    So the formula would need to, from these tables:

    Person A Person B
    Category Money spent Category Money spent
    1 $12 2 $14
    2 $192 4 $25
    2 $122 4 $65
    1 $5 1 $32
    4 $65 3 $75
    5 $34 3 $85
    5 $12 2 $12
    3 $26 2 $11

    Category 1: $49
    Category 2: $$$
    and so on...

    Look up in both tables, search the two category columns for category '1' for example, then return all the $'s added together... So for Category 1 now it would show $49...

    Thanks for help, it's really appreciated.
    Chris.

  2. #2
    Valued Forum Contributor
    Join Date
    01-19-2012
    Location
    Barrington, IL
    MS-Off Ver
    Excel 2007/2010
    Posts
    1,211

    Re: Home accounts formula help... Retrieve & add data ($) from one column, if category cod

    =sumif(b1:b50,a1)

    Where A1 contains the "1" representing Category 1
    You should hit F5, because chances are I've edited this post at least 5 times.
    Example of Array Formulas
    Quote Originally Posted by Jacc View Post
    Sorry, your description makes no sense. I just made some formula that looks interesting cause I had nothing else to do.
    Click the * below on any post that helped you.

  3. #3
    Registered User
    Join Date
    08-25-2014
    Location
    Vienna, Austria
    MS-Off Ver
    Office 2007
    Posts
    5

    Re: Home accounts formula help... Retrieve & add data ($) from one column, if category cod

    Excel.jpg

    So I hope the photo uploaded & explains my request a little better perhaps? It seems simple, so I'm sure someone out there is capable...
    Obviously not me

  4. #4
    Registered User
    Join Date
    07-30-2011
    Location
    Michigan
    MS-Off Ver
    Excel 2007
    Posts
    83

    Re: Home accounts formula help... Retrieve & add data ($) from one column, if category cod

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

    Where C3 is your first criteria (A), and then you could drag down to the others (c4 and then c5).

  5. #5
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Home accounts formula help... Retrieve & add data ($) from one column, if category cod

    or use a pivot table for that kind of work.

    then you don't have to worry about all criteria.
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  6. #6
    Registered User
    Join Date
    08-25-2014
    Location
    Vienna, Austria
    MS-Off Ver
    Office 2007
    Posts
    5

    Re: Home accounts formula help... Retrieve & add data ($) from one column, if category cod

    Pivot Table. Done - thank you very much.
    Cheers,

  7. #7
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Home accounts formula help... Retrieve & add data ($) from one column, if category cod

    Thanks for the reply.

    Glad I could help.

    Will you mark the question as closed.

  8. #8
    Registered User
    Join Date
    08-25-2014
    Location
    Vienna, Austria
    MS-Off Ver
    Office 2007
    Posts
    5

    Re: Home accounts formula help... Retrieve & add data ($) from one column, if category cod

    I will do, I can't find the button though

  9. #9
    Registered User
    Join Date
    08-25-2014
    Location
    Vienna, Austria
    MS-Off Ver
    Office 2007
    Posts
    5

    Re: Home accounts formula help... Retrieve & add data ($) from one column, if category cod

    Done. Thread has been solved.

    Quote Originally Posted by ChrisWhite1980 View Post
    I will do, I can't find the button though

+ 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. Need Formula to Match Text In a column And Retrieve adjacent column value
    By excel_joel in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 03-06-2014, 02:08 AM
  2. Replies: 17
    Last Post: 12-29-2013, 10:28 PM
  3. array formula to return sum of values based on date and category code
    By usmc0331 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 05-18-2013, 08:24 PM
  4. Find Code and Retrieve Data
    By joshw in forum Excel General
    Replies: 2
    Last Post: 01-10-2011, 06:47 PM
  5. Replies: 4
    Last Post: 01-07-2010, 02:06 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