+ Reply to Thread
Results 1 to 8 of 8

YTD total but really showing the Current Month data

  1. #1
    Registered User
    Join Date
    01-18-2008
    Posts
    23

    YTD total but really showing the Current Month data

    In the YTD total it's really displaying the Current month data such as if the last month entered was Mar 2008, then it would show only March 2008 data, not the summary of Jan - Mar 2008.

    I tried inputing a Nested If statement for YTD but it errors on row 6. Could you take a look and let me know of a way to accomplish this from Dec 2008 backwards to Jan 2008 for all months?

    Thank you,

    CC
    Attached Files Attached Files

  2. #2
    Forum Contributor
    Join Date
    01-13-2006
    Location
    Texas
    Posts
    161
    rather than nested IFs, why are you not using SUM or SUBTOTAL?

  3. #3
    Registered User
    Join Date
    01-18-2008
    Posts
    23
    Because the requirement is to display the Current Month's data, not the summary or subtotal.

  4. #4
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200
    There's some YTD formula examples in this workbook
    Attached Files Attached Files
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  5. #5
    Registered User
    Join Date
    01-18-2008
    Posts
    23
    That isn't what they want. The YTD total is not YTD really, it's Current Month. So in your example the YTD would have been 5 for April because that is the last month with data. They don't want any summaries, ONLY the current month's data. In my case it would show $0 for the unfilled months.

  6. #6
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200
    Two suggestions and not one word of thanks! Maybe you should just solve your own problems

  7. #7
    Registered User
    Join Date
    01-18-2008
    Posts
    23
    I didn't mean to be rude, I was just trying to explain so you would understand. Sorry!

    CC

  8. #8
    Forum Expert
    Join Date
    09-09-2005
    Location
    England
    MS-Off Ver
    2007
    Posts
    1,500
    well if you enter the following as an array ( instead of pressing enter, hold down ctrl and shift together and with them still held down press enter)

    =INDEX(B3:B14,MAX(IF(B3:B14>0,ROW(A1:A12),0)))

    That should work

    Let me know

    Regards

    Dav

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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