+ Reply to Thread
Results 1 to 4 of 4

Adding up associated cells...probably easy

  1. #1
    Registered User
    Join Date
    01-14-2005
    Location
    Montreal, Canada
    MS-Off Ver
    Excel 2007
    Posts
    32

    Adding up associated cells...probably easy

    I have an expense report that I am trying to automate... and I have a small problem. It looks big from the size of this post, but it really isn't:

    Multiple entries on the expense report may come from the same receipt but must be posted to different accounts. For example, someone may go to the store and buy a pound of coffee and a ream of paper. The items will be on the same receipt but will need to be posted to different accounts (e.g., Food Expense and Office Supplies Expense).

    So I have 9 columns:
    A. receipt number (they manually number the receipt with a pen),
    B. entry number (generated automatically in sequence 1,2,3...),
    C. Vendor/store,
    D. Brief Description,
    E. $Amount of item,
    F. Sales tax local,
    G. Sales tax federal (both taxes calculate automatically, no problem),
    H. Total (E+F+G),
    I. Account to be charged (this is populated by a drop down list, no problem)

    Here is my question:
    I want excel to automatically audit. That is, I would like excel to look at all of the items that come from receipt number x, add all of the column H numbers associated with that receipt number and put the total in a row immediately under the last item associated with that receipt number. That way the manager making the entry can check to be sure that the total printed on the receipt is the same total that excel comes up with.

  2. #2
    Forum Expert dominicb's Avatar
    Join Date
    01-25-2005
    Location
    Lancashire, England
    MS-Off Ver
    MS Office 2000, 2003, 2007 & 2016 365
    Posts
    4,867
    Good afternoon.

    Hopefully this should do exactly what you want.

    =SUMIF(A:A,36244,H:H)

    This formula will look in column A for a receipt number 36244 and where it finds it, add up the corresponding figures in column H. That is to audit any single given receipt number.

    If you wanted to fo this to every single receipt, it would be easier to use the Data > Subtotals... facility. This would summarise the whole list by receipt number.

    Hope this is of some use to you.

  3. #3
    Registered User
    Join Date
    01-09-2005
    Location
    London, UK
    Posts
    47
    Better yet, try this:

    =SUMIF(A:A,A2,H:H)

    Assuming the formula is in cell J2.

    That way the formula can be filled down the whole of column J, and will automatically display the total amounts for the receipt listed.

  4. #4
    Registered User
    Join Date
    01-14-2005
    Location
    Montreal, Canada
    MS-Off Ver
    Excel 2007
    Posts
    32

    Thanks!

    WORKED LIKE A CHARM!

    Thanks folks!
    Alan

+ 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