+ Reply to Thread
Results 1 to 8 of 8

Formula for balance forward

  1. #1
    Forum Contributor
    Join Date
    05-13-2009
    Location
    Lincoln, IL
    MS-Off Ver
    Excel 2003 and 2007
    Posts
    237

    Question Formula for balance forward

    I'm attaching a file that has a tab for Jan and a tab for Feb. I want to create a formula on Feb's B3 to auto pull the ending balance from the Jan tab. Then as I add a new tab each month, I want it to always pull the info from the prior month's tab. The ending balance may or may not always be in the same cell.
    Attached Files Attached Files

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Formula for balance forward

    If you are going to place the current month information in A1 for each new sheet, so that we can use that to reference previous months' sheet, then change the entry in A1 to a true date, like Feb 1, 2010 and format as mmm yyyy.

    Then assuming you want the last number entered in column B... try:

    =LOOKUP(9.999999E+307,INDIRECT("'"&TEXT(EOMONTH($A$1,-1),"mmmyyyy")&"'!B:B"))
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Forum Contributor
    Join Date
    05-13-2009
    Location
    Lincoln, IL
    MS-Off Ver
    Excel 2003 and 2007
    Posts
    237

    Re: Formula for balance forward

    While I was waiting, I found a UDF that works pretty well.
    Please Login or Register  to view this content.
    And then on the spreadsheet, I'm using this formula.
    Please Login or Register  to view this content.
    I have since discovered that B5 is not always the right cell since there may be more data some months. So I really need to incorporate some kind of EndUp type of statement so that instead of B5, I'm referencing the last cell in the column with data. How can I do that?

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Formula for balance forward

    You can use the method described here to get the previous sheet name:

    http://www.*****-blog.com/archives/2...revious-sheet/

    and then use formula:

    =Lookup(9.99999e+307,INDIRECT("'"&PrevSheet&"'!B:B"))

    oops. the forum screws up the link... if you google this exact phrase: Referring to Previous Sheet then pick the first link to Daily Dose of Excel, you will get to the same page.
    Last edited by NBVC; 02-16-2011 at 12:58 PM.

  5. #5
    Forum Contributor
    Join Date
    05-13-2009
    Location
    Lincoln, IL
    MS-Off Ver
    Excel 2003 and 2007
    Posts
    237

    Re: Formula for balance forward

    I cannot get the website to open.

  6. #6
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Formula for balance forward

    I added more information above....

  7. #7
    Forum Contributor
    Join Date
    05-13-2009
    Location
    Lincoln, IL
    MS-Off Ver
    Excel 2003 and 2007
    Posts
    237

    Re: Formula for balance forward

    Could you stick the lookup formula in code brackets.

  8. #8
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Formula for balance forward

    You mean?

    Please Login or Register  to view this content.

+ 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