+ Reply to Thread
Page 2 of 2 FirstFirst 12
Results 16 to 27 of 27
  1. #16
    Registered User
    Join Date
    08-27-2009
    Location
    Danbury
    MS-Off Ver
    Excel 2007
    Posts
    28

    Re: Offset Function -- description

    Thanks for your quick response! So basicallly I put next to my botched formula what the answers should be for each row... I want to add the total each row month cancels, but exclude the last 3 data points because they are not mature.
    Attached Files Attached Files

  2. #17
    Forum Moderator NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003, 2007, 2010
    Posts
    31,146

    Re: Offset Function -- description

    The result you show of 12,869 is the sum up to column L...don't you want to column Q which would be 16 columns?

    If so,

    =IF(AC$17<=0,0,SUMIF($B16:INDEX($B16:AA16,$AC$17),"<>",$B17:INDEX($B17:AA17,$AC$17)))

    gets 13,621.
    Microsoft MVP - Excel

    Where there is a will there are many ways. Pick One!


    Please read the Forum Rules

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

    Preferred Charities: Lupus Canada and Sick Kids Foundation.
    Feel Free to Donate if you want to, for the assistance you received today.

  3. #18
    Registered User
    Join Date
    08-27-2009
    Location
    Danbury
    MS-Off Ver
    Excel 2007
    Posts
    28

    Re: Offset Function -- description

    No I don't want Column Q. Column Q is a percentage. I am adding the numbers. For each row (17,19,21,23,etc) I want to add up the cancels (numbers under the month column) and subtract out the last two data points. So each row will be different.

    Row 17 -- would B,D,F,H,J and then next month would add L to the mix and so on.

    Row 19 would add B,D,F,H and then next month would add J to the mix and so on.

    Row 21 would add B,D,F and next month add H and so on.

    When I say next month I mean with the date change at the top of the page.

    Does that make sense?

  4. #19
    Forum Moderator NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003, 2007, 2010
    Posts
    31,146

    Re: Offset Function -- description

    Well you have merged column titles.. really I meant column P
    Microsoft MVP - Excel

    Where there is a will there are many ways. Pick One!


    Please read the Forum Rules

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

    Preferred Charities: Lupus Canada and Sick Kids Foundation.
    Feel Free to Donate if you want to, for the assistance you received today.

  5. #20
    Registered User
    Join Date
    08-27-2009
    Location
    Danbury
    MS-Off Ver
    Excel 2007
    Posts
    28

    Re: Offset Function -- description

    No I don't want P, it is not mature... I want as many data points for each row - two data points.

    Row 17 -- would B,D,F,H,J and then next month would add L to the mix and so on.

    Row 19 would add B,D,F,H and then next month would add J to the mix and so on.

    Row 21 would add B,D,F and next month add H and so on.

  6. #21
    Forum Moderator NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003, 2007, 2010
    Posts
    31,146

    Re: Offset Function -- description

    Then your "columns to grab" for row 17 is 12, not 16
    Microsoft MVP - Excel

    Where there is a will there are many ways. Pick One!


    Please read the Forum Rules

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

    Preferred Charities: Lupus Canada and Sick Kids Foundation.
    Feel Free to Donate if you want to, for the assistance you received today.

  7. #22
    Registered User
    Join Date
    08-27-2009
    Location
    Danbury
    MS-Off Ver
    Excel 2007
    Posts
    28

    Re: Offset Function -- description

    I understand that, but I don't know how to change that to make it automatic. That is the whole point of this string... I want it to automatically update every month -- how many rows to grab.

  8. #23
    Registered User
    Join Date
    08-27-2009
    Location
    Danbury
    MS-Off Ver
    Excel 2007
    Posts
    28

    Re: Excluding Non Mature Data

    Did you look at the spreadsheet I attached?
    Attached Files Attached Files

  9. #24
    Forum Moderator NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003, 2007, 2010
    Posts
    31,146

    Re: Excluding Non Mature Data

    I used this to get columns to pull:

    =MATCH(9.999999E+307,B16:Y16)-1

    and this to get sums

    you can copy down and delete the intermediate rows...

    I am not sure if the last 2 don't match the same logic of avoiding last 3 dates... but I get different number than you.
    Microsoft MVP - Excel

    Where there is a will there are many ways. Pick One!


    Please read the Forum Rules

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

    Preferred Charities: Lupus Canada and Sick Kids Foundation.
    Feel Free to Donate if you want to, for the assistance you received today.

  10. #25
    Registered User
    Join Date
    08-27-2009
    Location
    Danbury
    MS-Off Ver
    Excel 2007
    Posts
    28

    Re: Excluding Non Mature Data

    You didn't include the second formula?

  11. #26
    Forum Moderator NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003, 2007, 2010
    Posts
    31,146

    Re: Excluding Non Mature Data

    =if(ac$17<=0,0,sumif($b16:index($b16:aa16,$ac17-4),"<>",$b17:index($b17:aa17,$ac17-4)))
    Microsoft MVP - Excel

    Where there is a will there are many ways. Pick One!


    Please read the Forum Rules

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

    Preferred Charities: Lupus Canada and Sick Kids Foundation.
    Feel Free to Donate if you want to, for the assistance you received today.

  12. #27
    Registered User
    Join Date
    08-27-2009
    Location
    Danbury
    MS-Off Ver
    Excel 2007
    Posts
    28

    Re: Excluding Non Mature Data

    This works. Thanks!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

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.2.0