+ Reply to Thread
Results 1 to 10 of 10

Revenue Rank & Date Calculations

Hybrid View

dlythgoe Revenue Rank & Date... 03-04-2009, 10:49 AM
JBeaucaire Re: Revenue Rank & Date... 03-04-2009, 12:41 PM
dlythgoe Re: Revenue Rank & Date... 03-05-2009, 12:49 PM
JBeaucaire Re: Revenue Rank & Date... 03-05-2009, 01:37 PM
dlythgoe Re: Revenue Rank & Date... 03-06-2009, 05:20 AM
JBeaucaire Re: Revenue Rank & Date... 03-06-2009, 10:58 AM
dlythgoe Re: Revenue Rank & Date... 03-06-2009, 11:12 AM
JBeaucaire Re: Revenue Rank & Date... 03-06-2009, 11:57 AM
dlythgoe Re: Revenue Rank & Date... 03-12-2009, 05:46 AM
JBeaucaire Re: Revenue Rank & Date... 03-12-2009, 06:22 AM
  1. #1
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Revenue Rank & Date Calculations

    Actually, I thought THAT was what I showed you. Dissect this formula and that's what it does:

    =SUMPRODUCT(--($A$2:$A$100=$G22),--($B$2:$B$100=YEAR(H$1)),--($C$2:$C$100=LEFT(H$1,3)),$D$2:$D$100)

    That formula from cell H22 in the sample sheet, breaks down as:

    =SUMPRODUCT(--(NameChosen),--(YearChosen),--(MonthChosen),Values)

    So how does this not provide the syntax for what you've asked here? You can adjust the ranges to suit, use named ranges as in your question, and use whatever cells you've designed as your "filter", but it works the same way.

    I apologize if I'm missing something obvious.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  2. #2
    Registered User
    Join Date
    02-24-2009
    Location
    Windsor, England
    MS-Off Ver
    Excel 2007
    Posts
    16

    Re: Revenue Rank & Date Calculations

    Hiya,

    That's all cool for selected month and year and summing up totals but it's the date calculation for YTD thats the problem.

    The financial year end is August 31st.

    So if the report was for Feb 2009, YTD would equal the sum of revenues for Sep 08, Nov 08, Dec 08, Jan 09, Feb 09.

    I noticed you hard coded the dates in the table and summed them up cummulatively across the row.

    For my presentation, I need to just output YTD value so my first intial logic thought was:

    If date of report > Aug 31st in the same year
    {

    //Condition True means it's the same year and include all months back to September

    } else {

    //Condition False means it's the year before and include all months back to September

    }

    So waht I'm finding confusing is the date calculations between 2 fields of just year and month and summing the corrosponding revenues back to September.

    Sorry if I'm missing a clue from your spreadsheet...

    Really appreciate your time though mate :D

+ Reply to Thread

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.6.0 RC 1