+ Reply to Thread
Results 1 to 7 of 7

Excel 2007 : Budgeting question

Hybrid View

  1. #1
    Registered User
    Join Date
    01-30-2009
    Location
    Auburn, Alabama
    MS-Off Ver
    Excel 2003
    Posts
    7

    Budgeting question

    I would like to make it so that the Per Pay Period column (c2-c4) automatically adjusts to show the most recent pay period whenever I enter a new row into the payperiod table below(lines 8,9 etc…) Is that possible? Any other suggestions on how to make this budget more informative/useful/handy would be great.
    Attached Files Attached Files
    Last edited by djv0001; 02-02-2009 at 03:04 PM.

  2. #2
    Forum Expert sweep's Avatar
    Join Date
    04-03-2007
    Location
    Great Sankey, Warrington, UK
    MS-Off Ver
    2003 / 2007 / 2010 / 2016 / 365
    Posts
    3,454

    Re: Budgeting question

    Hi,

    You can replace G8 in your formulas with

    OFFSET(G7,COUNT(G8:G12),0)

    ie C2=OFFSET(G7,COUNT(G8:G12),0)*B2


    It may be a good idea to have a larger number of rows between headings and totals, in which case you should expand the range in the offset fuction, eg

    OFFSET(G7,COUNT(G8:G30),0)
    Rule 1: Never merge cells
    Rule 2: See rule 1

    "Tomorrow I'm going to be famous. All I need is a tennis racket and a hat".

  3. #3
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Budgeting question

    Given OFFSET is Volatile I think you would be best served setting up C such that:

    C2: =LOOKUP(9.99999999999999E+307,$G$8:$G$13)*$B2
    copied down for C3:C4

    D2: =$G$14*$B2
    copied down for D3:D4

    C8: =$B8*$F$4
    copied down to C13

    It's not clear how you're calculating the Tax so I will ignore D8:D13.

    Given G8:G13 is meant to represent periodic totals I think the formula should be:
    G8: =$E8-$F8
    copied down

  4. #4
    Forum Contributor
    Join Date
    10-11-2007
    Location
    Sweden
    MS-Off Ver
    365
    Posts
    251

    Re: Budgeting question

    See attached workbook
    Attached Files Attached Files

  5. #5
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Budgeting question

    Steve R,

    my point re: Volatiles would still hold true for your approach
    (though Indirect in this case)

    I think if one were to pursue a Volatile approach Sweep's OFFSET would be preferable given it is a non-array approach.

    Just my advice to OP based entirely on my own opinion (FWIW).

  6. #6
    Registered User
    Join Date
    01-30-2009
    Location
    Auburn, Alabama
    MS-Off Ver
    Excel 2003
    Posts
    7

    Re: Budgeting question

    Can some one explain to me what this formula is doing and how i do i modify it so it will take into account more rows?

    =INDIRECT("G"&MAX(IF($A$8:$A$10<>"",ROW($A$8:$A$10),"")))*B2

  7. #7
    Forum Contributor
    Join Date
    10-11-2007
    Location
    Sweden
    MS-Off Ver
    365
    Posts
    251

    Re: Budgeting question

    Can some one explain to me what this formula is doing and how i do i modify it so it will take into account more rows?

    =INDIRECT("G"&MAX(IF($A$8:$A$10<>"",ROW($A$8:$A$10),"")))*B2
    This formula is an array formula. You need to press Ctrl+ Shift + Enter after it is typed in the formula field.

    The formula checks if any row in $A$8:$A$10 is not empty. If it is not empty it will get the largest row value of the cells that are not empty. MAX(IF($A$8:$A$10<>"",ROW($A$8:$A$10)

    The formula will then get the value in column G with the same row number. At last it will multiply with B2.


    If you want to take account more rows you need to edit these parts of the formula: $A$8:$A$10

+ 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