+ Reply to Thread
Results 1 to 5 of 5

more than one item group by date and calculate their totals

  1. #1
    Registered User
    Join Date
    11-10-2014
    Location
    LA, CA
    MS-Off Ver
    2010
    Posts
    7

    more than one item group by date and calculate their totals

    NEWBIE here....

    COL 1 COL 2 COL 3
    date dos total
    11/8/2014 OTP $341.02
    11/8/2014 OTS $682.04
    12/1/2014 SOP $341.02
    12/1/2014 SOS $682.04

    Hi -
    My data comes out like above. I want to group items in COL 2 together then rename them as well as have their totals in COL 3 be added together.

    so then it comes out looking like:

    COL 1 COL 2 COL 3
    date dos total
    11/8/2014 Overtime $1023.06
    12/1/2014 Shift Differential $1023.06

    would like a formula that can do these changes rather than making manual edits of find and replace. is it even possible?

    much appreciated!

  2. #2
    Valued Forum Contributor quekbc's Avatar
    Join Date
    01-18-2010
    Location
    Sydney, Australia
    MS-Off Ver
    2010, 2013, 2016
    Posts
    1,149

    Re: more than one item group by date and calculate their totals

    The dates and $ figures can be combined using the SUMIF function. The labels however, OTP / OTS = Overtime and/or SOP / SOS = Shift Differential however, is a little tougher. Are all codes with OT at the start Overtime and SO Shift Differential?

  3. #3
    Registered User
    Join Date
    11-10-2014
    Location
    LA, CA
    MS-Off Ver
    2010
    Posts
    7

    Re: more than one item group by date and calculate their totals

    Thank you for your response. How do I put the sumif statement together? To answer: Are all codes with OT at the start Overtime and SO Shift Differential? Yes, they all start that way.

    Your help is much appreciated!
    ~jo anne

  4. #4
    Valued Forum Contributor quekbc's Avatar
    Join Date
    01-18-2010
    Location
    Sydney, Australia
    MS-Off Ver
    2010, 2013, 2016
    Posts
    1,149

    Re: more than one item group by date and calculate their totals

    I've decided to go down the route of breaking calculations apart.

    Under the Combined header, I've combined the dates and the first 2 characters dos together.
    I then generate an unique list under the header Unique list.
    Using this unique list, I re-generated convert it back to dates and Type (Overtime or Shift Differential)
    Apply a SUMIF that I mentioned above to calculate the new totals.

    I've added more data to show all possible scenarios (i.e. same date different dos). See attached if it does what you need.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    11-10-2014
    Location
    LA, CA
    MS-Off Ver
    2010
    Posts
    7

    Re: more than one item group by date and calculate their totals


    thank you thank you - I can work with this!

+ 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] VBA to group totals of each category within each date range
    By Jim885 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 08-30-2015, 12:59 PM
  2. Calculate totals from a date range
    By lilsnoop in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-04-2012, 04:46 PM
  3. Calculate totals over a date range
    By reddwarf in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-12-2009, 05:15 PM
  4. Calculate totals based on date
    By shane24 in forum Excel General
    Replies: 4
    Last Post: 01-04-2007, 03:29 AM
  5. [SOLVED] Calculate PivotTable Item Totals Based On Cell Contents?
    By Teeroi in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 06-26-2006, 03:55 AM
  6. [SOLVED] Calculate PivotTable Item Totals Based On Cell Contents?
    By Teeroi in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 06-21-2006, 12:35 PM
  7. Calculate PivotTable Item Totals Based On Cell Contents?
    By Teeroi in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 06-21-2006, 12:32 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