+ Reply to Thread
Results 1 to 4 of 4

PLEASE HELP! How to display the last cell used in a column?

  1. #1
    Registered User
    Join Date
    01-31-2007
    Posts
    12

    PLEASE HELP! How to display the last cell used in a column?

    I'm hoping someone can help me with a problem i'm having. Basically i have a table, at the top is a summary, within that, cell D6, all i want it to do is display a value, the value i want it to display is from a range of cells (D11:D49). D11 has a value in it (the rest are empty) and every week another value will be added below the last, D12, D13 etc. So all i need is for the cell D6 to display the latest entry (which is the cell lowest down) in the column of cells.

    I thought this would be a simple thing to do but i cant work out how to do it. I have done some searches online but they come back with info about macros and the like which make no sense to me, i thought there would be a simple way to do this, please help!

    Paul

  2. #2
    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
    Hi,

    Try

    =LOOKUP(9.99999999999999E+307,D11:D65536)
    for last numeric entry in a column

    =LOOKUP(REPT("z",255),D11:D65536)
    for last text entry in a column

    or

    =INDEX(D11:D65536,MATCH(REPT("z",255),D11:D65536))

    =INDEX(D11:D65536,MATCH(9.99999999999999E+307,D11:D65536))

    VBA Noob
    _________________________________________


    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 !!!

  3. #3
    Registered User
    Join Date
    01-31-2007
    Posts
    12
    Thank you, that did the trick!

  4. #4
    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
    Your welcome

    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