+ Reply to Thread
Results 1 to 23 of 23

Help: Formula for automatic YTD adjustment for an income statement

  1. #1
    Registered User
    Join Date
    09-11-2013
    Location
    Suffolk, NY
    MS-Off Ver
    Excel 2019
    Posts
    38

    Help: Formula for automatic YTD adjustment for an income statement

    I am trying to design a spreadsheet for an a company's income statement that will show income by month from Jan-Dec.
    There will be a "Year to date (YTD)" column. Can someone tell me the formula I can use to give me a total upto current month in that column.

    So for example:

    If we need a YTD sum of revenues from January to August ....it will give me that....but in september , i don't wanna have to change the formulas for each cell and instead, if lets say I just plug in september as a month, it will automatically adjust to number of columns it needs to add up?

    Makes sense?

    It might be the IF function but how exactly i need to know.

    Thank in advance

  2. #2
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Help: Formula for automatic YTD adjustment for an income statement

    We would need to see how your data is structured.

    Can you post a SMALL sample file and show us what result you expect?
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  3. #3
    Registered User
    Join Date
    09-11-2013
    Location
    Suffolk, NY
    MS-Off Ver
    Excel 2019
    Posts
    38

    Re: Help: Formula for automatic YTD adjustment for an income statement

    Thanks for the quick reply! here's a sample file. So for example, YTD currently sums Jan to August but I would like the functionality where I can just punch in a date in one cell ..in cell A1 for example i punch in september, and it would automatically adjust the formula to sum Jan to Sep columns.
    Attached Files Attached Files

  4. #4
    Forum Expert
    Join Date
    09-20-2011
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    2,278

    Re: Help: Formula for automatic YTD adjustment for an income statement

    Hello
    One way using Sum, Index and Match:

    Please Login or Register  to view this content.
    In cell S12. Cell A1 would contain the month as in the table headers: 'Jan'; 'Feb' etc. If you wanted to punch-in actual dates in A1 the formula would need amending.

    Hope this helps.
    DBY

  5. #5
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Help: Formula for automatic YTD adjustment for an income statement

    Try this...

    =SUM(F12:INDEX(F12:Q12,MATCH(A1,F10:Q10,0)))

  6. #6
    Registered User
    Join Date
    09-11-2013
    Location
    Suffolk, NY
    MS-Off Ver
    Excel 2019
    Posts
    38

    Re: Help: Formula for automatic YTD adjustment for an income statement

    Works! but can you explain that formula? Is there an easier way to do this? Maybe SUMIF function?

  7. #7
    Registered User
    Join Date
    09-11-2013
    Location
    Suffolk, NY
    MS-Off Ver
    Excel 2019
    Posts
    38

    Re: Help: Formula for automatic YTD adjustment for an income statement

    See the attached file...im trying to use SUMIF function..what am i doing wrong?

    sample2.xls

  8. #8
    Forum Expert
    Join Date
    09-20-2011
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    2,278

    Re: Help: Formula for automatic YTD adjustment for an income statement

    Hello
    A1 is text. Sumif would need a numeric value for its <= criteria.

    DBY

  9. #9
    Registered User
    Join Date
    09-11-2013
    Location
    Suffolk, NY
    MS-Off Ver
    Excel 2019
    Posts
    38

    Re: Help: Formula for automatic YTD adjustment for an income statement

    Can you then assign numbers to those columns? And then use that as a ref. for example Jan =1 , Dec =12?

  10. #10
    Registered User
    Join Date
    09-11-2013
    Location
    Suffolk, NY
    MS-Off Ver
    Excel 2019
    Posts
    38

    Re: Help: Formula for automatic YTD adjustment for an income statement

    So this formula works

    =SUMIF(F9:Q9, "<="&A1, F12:Q12)

    I used F9:Q9 to list number 1-12 for Jan to Dec

  11. #11
    Forum Expert
    Join Date
    09-20-2011
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    2,278

    Re: Help: Formula for automatic YTD adjustment for an income statement

    You would still have to create a numerical reference for A1, for example:

    Please Login or Register  to view this content.

  12. #12
    Registered User
    Join Date
    09-11-2013
    Location
    Suffolk, NY
    MS-Off Ver
    Excel 2019
    Posts
    38

    Re: Help: Formula for automatic YTD adjustment for an income statement

    Can you explain what purpose is index function serving in your formula? Are both these formulas equally as useful?

  13. #13
    Registered User
    Join Date
    09-11-2013
    Location
    Suffolk, NY
    MS-Off Ver
    Excel 2019
    Posts
    38

    Re: Help: Formula for automatic YTD adjustment for an income statement

    Also, this formula

    =SUMIF(F9:Q9, "<="&A1, F12:Q12)


    Is working fine, so then what is the purpose of including "match" function in there?

    Sorry for these questions, I am kind of a n00b to excel functions.

  14. #14
    Forum Expert
    Join Date
    09-20-2011
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    2,278

    Re: Help: Formula for automatic YTD adjustment for an income statement

    Sorry the formula:

    Please Login or Register  to view this content.
    Doesn't work for me. It returns zero.

    The Index formula returns an array of values based on the array and Column/Row specified.

  15. #15
    Registered User
    Join Date
    09-11-2013
    Location
    Suffolk, NY
    MS-Off Ver
    Excel 2019
    Posts
    38

    Re: Help: Formula for automatic YTD adjustment for an income statement

    Quote Originally Posted by DBY View Post
    Sorry the formula:

    Please Login or Register  to view this content.
    Doesn't work for me. It returns zero.

    The Index formula returns an array of values based on the array and Column/Row specified.
    In A1...use a number that pertains to the month instead of the month e.g. 6 for june, 12 for december

  16. #16
    Forum Expert
    Join Date
    09-20-2011
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    2,278

    Re: Help: Formula for automatic YTD adjustment for an income statement

    Yes, then it will work. As I said the A1 reference needs to be numeric for the <= criteria.

  17. #17
    Registered User
    Join Date
    09-11-2013
    Location
    Suffolk, NY
    MS-Off Ver
    Excel 2019
    Posts
    38

    Re: Help: Formula for automatic YTD adjustment for an income statement

    ok so one more question,...what if we want a similar formula for "Quarter to Date (QTD)"? So lets say we are in august and I want to add numbers for Quarter to date..which would be July and August...how can we do so by using both those formulas?

  18. #18
    Forum Expert
    Join Date
    09-20-2011
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    2,278

    Re: Help: Formula for automatic YTD adjustment for an income statement

    Might need a little time to think this through. For example is Q1 Jan-Mar etc. and is A1 a numerical value?

  19. #19
    Registered User
    Join Date
    09-11-2013
    Location
    Suffolk, NY
    MS-Off Ver
    Excel 2019
    Posts
    38

    Re: Help: Formula for automatic YTD adjustment for an income statement

    One thing we can do is add bunch of sumif formulas so something like

    =SUMIF(F9:Q9, "="&A1, F12:Q12)+SUMIF(F9:Q9, "="&A2, F12:Q12)

    So for Q3 uptil august, we can have 7 in A1 and 8 in A2

    A better way of doing it?

  20. #20
    Forum Expert
    Join Date
    09-20-2011
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    2,278

    Re: Help: Formula for automatic YTD adjustment for an income statement

    Are you using Excel 2010? If so, we can use SUMIFS.

  21. #21
    Forum Expert
    Join Date
    09-20-2011
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    2,278

    Re: Help: Formula for automatic YTD adjustment for an income statement

    If you are using 2010, then maybe using a lookup table for the Quarters and a number of named ranges for ease of reference. See attachment.

    DBY
    Attached Files Attached Files

  22. #22
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Help: Formula for automatic YTD adjustment for an income statement

    Try this...

    Enter the quarter numbers in G10:R10...


    Data Range
    F
    G
    H
    I
    J
    K
    L
    M
    N
    O
    P
    Q
    R
    S
    T
    U
    10
    QTR
    1
    1
    1
    2
    2
    2
    3
    3
    3
    4
    4
    4
    11
    2011
    Jan
    Feb
    Mar
    Apr
    May
    Jun
    Jul
    Aug
    Sep
    Oct
    Nov
    Dec
    YTD
    QTD
    12
    Revenue
    10
    20
    30
    40
    50
    60
    70
    80
    90
    100
    110
    120
    450
    240
    13
    Exp
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    Op Inc.
    8
    17
    26
    35
    44
    53
    62
    71
    80
    89
    98
    107


    Then, this formula in U12:

    =SUMIF(G10:R10,CEILING(MONTH(NOW())/3,1),G12:R12)

  23. #23
    Forum Expert
    Join Date
    09-20-2011
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    2,278

    Re: Help: Formula for automatic YTD adjustment for an income statement

    Just to add another alternative to Tony's and my earlier example (which perhaps is a bit over engineered). If you were to use the Index function, then maybe as in this attachment, it doesn't require helper rows or lookup tables on the sheet. Once again it assumes you are inputting the month as a number rather than text.

    DBY
    Attached Files Attached Files

+ 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. [SOLVED] Formula for Income Statement in financial statement
    By Zunit in forum Excel General
    Replies: 6
    Last Post: 07-02-2012, 02:21 PM
  2. Automatic Target adjustment
    By TheRetroChief in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 11-03-2008, 12:27 PM
  3. automatic adjustment
    By daidipya in forum Excel General
    Replies: 1
    Last Post: 06-08-2006, 09:50 AM
  4. automatic field adjustment
    By Sabrick in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-12-2006, 10:25 AM
  5. formula for workbook showing daily income compared to goal income.
    By tittytatbratt in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-08-2005, 06:06 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