Consulting

Results 1 to 7 of 7

Thread: Solved: Add from Month of April Onward

  1. #1

    Solved: Add from Month of April Onward

    Hi All,

    I'm having some trouble with this one, a "higher up" has asked me to make what is already an automated file (created by me) include Fiscal Year totals. What I'm having an issue with is that whenever a new month of data comes in, my "April"(beginning of our fiscal year) column moves to a different column, thus I can't hard code any sort of sums or averages. I need a formula that scans the range of Month titles for April, and then sums up each row in the data set from april on. I've enclosed an example of what I mean. I REALLY hope someone can help me out with this!

    Thank you in advance, and I'll be here if there are any questions.

  2. #2
    Knowledge Base Approver VBAX Wizard p45cal's Avatar
    Joined
    Oct 2005
    Location
    Surrey UK
    Posts
    5,876
    Three solutions in the attached. Yellow cells with sumproduct formulae are easiest. I can't help thinking I've gone round the houses on this one. The other two formulae require array-entering or you'll get #Value errors.
    p45cal
    Everyone: If I've helped and you can't be bothered to acknowledge it, I can't be bothered to look at further posts from you.

  3. #3
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    Try

    =SUMIF(A4:H4,">="&MAX(INDEX((MONTH(A4:H4)=4)*(A4:H4),)),A5:H5)
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

  4. #4
    thank you p45 and XLD. These seem to work perfectly for what I need. One last question: are any of these formulas easy to modify into an "average"? I looked around online and don't see the existence of any sort of "averageif" to compliment the "sumif". I imagine that all I need is some sort of count from april and the remaining columns to the right, which I can then divide by the original formula provided.

    Does this seem right?



    **Edit** I ended up tinkering around with a portion of the second formula in P45's file and got it to work I think. Will test further before saying that the problem is solved, but thanks guys!
    Last edited by Eric58132; 08-04-2010 at 06:22 AM.

  5. #5
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    You could use this array formukla

    =AVERAGE(IF(A4:H4>=MAX(INDEX((MONTH(A4:H4)=4)*(A4:H4),)),A5:H5))
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

  6. #6
    that one looks even easier, thank you for the assistance.

    I love this forum, best place for access and excel help by far.

  7. #7
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    Quote Originally Posted by Eric58132

    I love this forum, best place for access and excel help by far.
    Can't argue with that
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •