+ Reply to Thread
Results 1 to 6 of 6

using SUMIF based on entries in adjacent column.

  1. #1
    Registered User
    Join Date
    05-14-2014
    MS-Off Ver
    Excel 2003
    Posts
    3

    using SUMIF based on entries in adjacent column.

    Hi,
    I am composing a spreadsheet for employee expense reimbursement, which has a column for which department that line of expenses should be billed to.
    Column T has the total expenses for that row.
    Column U has the department (entered by the employee) that the particular row of expenses should be billed to.
    Question: On the bottom of column T, i would like to list only the departments that were entered above, and, in the adjacent cell, sum the amounts that relate to each department.
    Thanks!!!

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,464

    Re: using SUMIF based on entries in adjacent column.

    I would suggest you create a Pivot Table.


    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,939

    Re: using SUMIF based on entries in adjacent column.

    Perhaps it would help more if you provided a small sample workbook, showing what you are working with, and what you want?
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  4. #4
    Registered User
    Join Date
    05-14-2014
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: using SUMIF based on entries in adjacent column.

    Thanks
    I am attaching a sample.
    I would like the highlighted table on the bottom to automatically populate, based on the entries above.
    In my highlighted table, the departments in column H are based on the entries in column T. If more than one line has the same department, i would need to add those lines together.
    How do i populate column H in my table automatically? (once i do that, the rest is a SUMIF, i suppose)
    I cannot use a pivot table, as i want this to be built into the form so the AP department can quickly process it.
    Thanks very much!
    Attached Files Attached Files

  5. #5
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,939

    Re: using SUMIF based on entries in adjacent column.

    I used a helper column to do this, put this in V8 and copy down (you can hide this if you want...
    =IF(T8=0,V7,V7+1)
    Then to pull in your Depts, use this, copied down...
    =IFERROR(INDEX($T$8:$T$27,MATCH(ROW(A1),$V$8:$V$27,0)),"")

    You can use INDEX/MATCH to pull in teh rest of the data, too

  6. #6
    Registered User
    Join Date
    05-14-2014
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: using SUMIF based on entries in adjacent column.

    Excellent!
    Thanks very much!

+ 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. [SOLVED] How to search and remove a series of entries based on adjacent values.
    By Excel Trier in forum Excel General
    Replies: 16
    Last Post: 02-15-2014, 01:28 AM
  2. Replies: 4
    Last Post: 08-11-2013, 12:58 AM
  3. Locking column entries to an adjacent linked column
    By Steeljaw in forum Excel General
    Replies: 1
    Last Post: 01-23-2006, 06:50 PM
  4. Replies: 0
    Last Post: 03-09-2005, 06:47 AM
  5. Using COUNTIF to count column entries if adjacent column contains data
    By johnfullerroot in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 03-09-2005, 05:43 AM

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