+ Reply to Thread
Results 1 to 6 of 6

Sum data based on two things

  1. #1
    Registered User
    Join Date
    09-22-2014
    Location
    England
    MS-Off Ver
    MS 365 Enterprise V2210
    Posts
    85

    Sum data based on two things

    Hi All,

    I am trying to add sales figures, by where I can change the employees names and weeks past resulting in a total figure of sales for all the previous weeks.

    This might make more sense when you see the attached.

    I want to change E15 and E16.

    If i change the week to 8 it will add all "Paul" data for Week 1-8

    Thanks
    Attached Files Attached Files
    Last edited by doylzer; 09-22-2014 at 08:36 AM.

  2. #2
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Sum data based on two things

    Perhaps

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  3. #3
    Registered User
    Join Date
    09-22-2014
    Location
    England
    MS-Off Ver
    MS 365 Enterprise V2210
    Posts
    85

    Re: Sum data based on two things

    Thanks for your time and help.
    prefect
    Last edited by doylzer; 09-22-2014 at 09:05 AM.

  4. #4
    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,669

    Re: Sum data based on two things

    Edit: Sorry, that should be:

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Rather than:

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    It needs to add 1 to the week number to get the correct row in INDEX($K:$K,$E$16+1)

    Regards


    Regards, TMS
    Last edited by TMS; 09-22-2014 at 09:03 AM.
    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


  5. #5
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Sum data based on two things

    Hi,

    Try

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  6. #6
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Sum data based on two things

    =AVERAGE(IF(A2:A11<=E16,IF(C1:K1=E15,C2:K11)))

    ...confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer. Press F2 on that cell and try again.
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  7. #7
    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,669

    Re: Sum data based on two things

    See the sample attached to compare the solutions.

    Regards, TMS
    Attached Files Attached Files

  8. #8
    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,669

    Re: Sum data based on two things

    Thanks for the rep

+ 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. Replies: 1
    Last Post: 04-28-2014, 11:34 AM
  2. [SOLVED] Using Data tables when there are MULTIPLE things that can change
    By rikkyshh in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 12-30-2013, 03:07 AM
  3. Replies: 1
    Last Post: 09-01-2013, 06:07 PM
  4. [SOLVED] How do I find and remove things from a data range?
    By theshaun in forum Excel General
    Replies: 2
    Last Post: 02-25-2013, 05:37 AM
  5. Allowing text based on a few things
    By rxwillow in forum Excel General
    Replies: 8
    Last Post: 04-21-2008, 01:20 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