+ Reply to Thread
Results 1 to 14 of 14

displaying ongoing total in a fixed cell

  1. #1
    Registered User
    Join Date
    09-28-2007
    Posts
    6

    displaying ongoing total in a fixed cell

    hi - if possible i would like to have a fixed cell somewhere at the top of the page that displays the data from the latest addition to the total in a column..

    eg: say column U is a total column..each day a row is added to the sheet..this will give a a new total in column U on that row..at the moment to get the latest total to appear at the top of the page in the selected cell i manually alter the formula there to =U445 or =U446 etc etc..(or the latest addition to that column)

    could someone plaese tell me if there is way for this fixed cell to pick up data from the latest addition to column U automatically?

    i've had success with using MAX and AVERAGE formula in such ways but am unable to locate any way of doing the above

    many thanks in advance

    ob

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

    =Lookup(9.999999999e+307,U:U)
    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 VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Maybe

    =LOOKUP(MAX(U:U)+1,U:U)

    more options on link

    http://www.xldynamic.com/source/xld.LastValue.html

    VBA Noob
    Last edited by VBA Noob; 09-28-2007 at 03:10 PM.
    _________________________________________


    Credo Elvem ipsum etian vivere
    _________________________________________
    A message for cross posters

    Please remember to wrap code.

    Forum Rules

    Please add to your signature if you found this link helpful. Excel links !!!

  4. #4
    Registered User
    Join Date
    09-28-2007
    Posts
    6
    guys thanks for yoiur prompt replies...i've had a look and can't phathom it..

    i'm using office 2000 - dont know if that makes any difference to syntax?

    i fully understand the thinking behind the bignum now and the formula thanks..., but entering the references you gave does not fix...

    the totals in the column U i mention derive from a formula in the cells..will this inhibit?

    many thanks

    ob

  5. #5
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    Mine should work, as long as it is the last value in the column you are looking for and it is numeric.... not text string.

  6. #6
    Registered User
    Join Date
    09-28-2007
    Posts
    6
    thanks NBVC ..its financial ie: numeric preceeded by £...

    the cell just seems to spit the formula out...

    many thanks

    ob

  7. #7
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    so is it working, then.... it should work even if formatted as "financial" (or "currency")....

    don't know what you mean by
    the cell just seems to spit the formula out...

  8. #8
    Registered User
    Join Date
    09-28-2007
    Posts
    6
    sorry ..should have explained better...

    no it isn't working unfortunately

    i have made sure that the cell i want to display the last cell data in isnt in the same column just in case..though would prefer at top of column U..

    when i input the the formula into the cell i wish to use... the formula doesn't appear to take i have tried adding spaces (just in case there is some syntax difference somewhere) to no avail..the syntax just appears in the cell or displays name?...

    just to outline the sheet set up for this -
    column U has 3 rows of text and numeric data headers and the remainder is currency that are formula based (using the total above in column U in conjuction with a figure from the row T /cell beside) and is incremental..


    many thanks

    ob

  9. #9
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Just attach the file.

    Both formulas should work

    VBA Noob

  10. #10
    Registered User
    Join Date
    09-28-2007
    Posts
    6
    here you go guys...

    just a small snippet of the sheet...

    basically would just like U1 to display the last cell used data in column U automatically.

    at the moment it is done manually

    many thanks

    ob
    Attached Files Attached Files

  11. #11
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Try

    =LOOKUP(MAX(U4:U65536)+1,U4:U65536)

    You should of mentioned the circular message

    VBA Noob

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

    the formula I recommended works as described....
    Attached Files Attached Files

  13. #13
    Registered User
    Join Date
    09-28-2007
    Posts
    6
    would like to thank you both very much...thats great!!..

    its mad though becasue i copy pasted that syntax in from the links and replies on these threads...but hey..you solved it for me ..

    once again top stuff..thanks!!

    ob

  14. #14
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Glad it helped

    Sometimes easier for us if you add the worksheet from the start of the thread.

    VBA Noob

+ 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