+ Reply to Thread
Results 1 to 11 of 11

SUMIF with OFFSET

  1. #1
    Registered User
    Join Date
    06-26-2014
    Location
    Las Vegas, NV
    MS-Off Ver
    excel 2010, excel 2013
    Posts
    8

    SUMIF with OFFSET

    I need to sum parts of multiple columns from another worksheet with multiple criteria, using index/match as one of the criteria. Basically I need a way to sum the initial column and two columns immediately preceding it

  2. #2
    Valued Forum Contributor Hawkeye16's Avatar
    Join Date
    02-27-2013
    Location
    Holland
    MS-Off Ver
    ├•┤ Pew Pew
    Posts
    441

    Re: SUMIF with OFFSET

    In these instances a workbook example helps a lot. Just something simple with what your data layout looks like and your expected solution, or at least a good explanation.
    Despite the high cost of living, it remains very popular.

    Don't forget to mark threads SOLVED when you get an answer and rep all the geniouses that helped you today!

  3. #3
    Registered User
    Join Date
    06-26-2014
    Location
    Las Vegas, NV
    MS-Off Ver
    excel 2010, excel 2013
    Posts
    8

    Re: SUMIF with OFFSET

    Ok, so in the example I'm uploading, the column headers are dates, so for each date on Sheet2, I need to add up the values for the same date and the previous 3,12 months in sheet1 based on the criteria of the type of fruit(B2, criteria range 'sheet1'!Z2:Z7) and the date itself.
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    06-26-2014
    Location
    Las Vegas, NV
    MS-Off Ver
    excel 2010, excel 2013
    Posts
    8

    Re: SUMIF with OFFSET

    Also, each month the left most column is removed and a new column with the next month is inserted at the far right, so that's why I was thinking index/match is needed.

  5. #5
    Valued Forum Contributor Hawkeye16's Avatar
    Join Date
    02-27-2013
    Location
    Holland
    MS-Off Ver
    ├•┤ Pew Pew
    Posts
    441

    Re: SUMIF with OFFSET

    Hahah, oh man. I was so confused for a few moments. I didn't realize you had made the numbers random so each time I calculated the numbers changed on me.

    Attached is a sample of a solution. You do have 2 lines with apple and this will only sum the first line and not all lines. Do you need it to be able to sum all lines?
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    06-26-2014
    Location
    Las Vegas, NV
    MS-Off Ver
    excel 2010, excel 2013
    Posts
    8

    Re: SUMIF with OFFSET

    Yes, it needs to sum all lines.

  7. #7
    Valued Forum Contributor Hawkeye16's Avatar
    Join Date
    02-27-2013
    Location
    Holland
    MS-Off Ver
    ├•┤ Pew Pew
    Posts
    441

    Re: SUMIF with OFFSET

    Are they at least next to each other all the time, or can there be other lines between them... cause that would make it a lot more difficult. If they are always right next to each other that is an easy fix.

  8. #8
    Registered User
    Join Date
    06-26-2014
    Location
    Las Vegas, NV
    MS-Off Ver
    excel 2010, excel 2013
    Posts
    8

    Re: SUMIF with OFFSET

    Unfortunately they're scattered throughout hundreds of lines

  9. #9
    Valued Forum Contributor Hawkeye16's Avatar
    Join Date
    02-27-2013
    Location
    Holland
    MS-Off Ver
    ├•┤ Pew Pew
    Posts
    441

    Re: SUMIF with OFFSET

    Well, I would suggest either sorting the data first or you will probably have to resort to a vba solution.

  10. #10
    Registered User
    Join Date
    06-26-2014
    Location
    Las Vegas, NV
    MS-Off Ver
    excel 2010, excel 2013
    Posts
    8

    Re: SUMIF with OFFSET

    Yeah VBA was my last resort...How complex do you think the code would be?

  11. #11
    Valued Forum Contributor Hawkeye16's Avatar
    Join Date
    02-27-2013
    Location
    Holland
    MS-Off Ver
    ├•┤ Pew Pew
    Posts
    441

    Re: SUMIF with OFFSET

    Let me know if this works for you. Explanation is in the workbook.
    Attached Files Attached Files
    Last edited by Hawkeye16; 07-17-2014 at 07:59 AM.

+ 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. Offset + Sumif, #REF! when using range A:A
    By TylerB2 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 04-07-2014, 07:00 PM
  2. Sumif & Offset together
    By Dial1 in forum Excel General
    Replies: 3
    Last Post: 08-04-2010, 06:53 PM
  3. Sumif match offset
    By tbell in forum Excel General
    Replies: 1
    Last Post: 03-30-2010, 02:27 PM
  4. Sumif, Offset, ComboBox
    By KHubbard in forum Excel General
    Replies: 1
    Last Post: 12-25-2007, 07:04 AM
  5. Using sumif and offset together
    By katie1343 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-11-2007, 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