+ Reply to Thread
Results 1 to 7 of 7

Find last value in column and add +1 to the first empty cell in this column

  1. #1
    Forum Contributor
    Join Date
    08-01-2012
    Location
    rotterdam, holland
    MS-Off Ver
    Excel 2013
    Posts
    170

    Find last value in column and add +1 to the first empty cell in this column

    I want it to search for the last value in Column B, then I want it to copy this value to the first empty cell in this column B (so basically below the value that I just found) but add 1, so +1. So it found the value 1403 in B6 and I want it to become 1404 in B7 by a macro. Thanks!

    Project.xlsx

  2. #2
    Forum Expert
    Join Date
    12-10-2006
    Location
    Sydney
    MS-Off Ver
    Office 365
    Posts
    3,527

    Re: Find last value in column and add +1 to the first empty cell in this column

    Hi there,

    Try this single line command:

    Please Login or Register  to view this content.
    Regards,

    Robert
    ____________________________________________
    Please ensure you mark your thread as Solved once it is. Click here to see how
    If this post helps, please don't forget to say thanks by clicking the star icon in the bottom left-hand corner of my post

  3. #3
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Find last value in column and add +1 to the first empty cell in this column

    Try this.
    Please Login or Register  to view this content.
    If posting code please use code tags, see here.

  4. #4
    Forum Contributor
    Join Date
    08-01-2012
    Location
    rotterdam, holland
    MS-Off Ver
    Excel 2013
    Posts
    170

    Re: Find last value in column and add +1 to the first empty cell in this column

    I get the value 1 in B3016 (end of my table) , I want to get the value 1404 in B7. Probably I get thsi cus this is a table, how do I override this? Thanks

    Project2.xlsm

  5. #5
    Forum Contributor
    Join Date
    08-01-2012
    Location
    rotterdam, holland
    MS-Off Ver
    Excel 2013
    Posts
    170

    Re: Find last value in column and add +1 to the first empty cell in this column

    Dont worry Ill just get rid of the table and it works, thanks!

  6. #6
    Forum Expert
    Join Date
    12-10-2006
    Location
    Sydney
    MS-Off Ver
    Office 365
    Posts
    3,527

    Re: Find last value in column and add +1 to the first empty cell in this column

    Yes, the table range is throwing the macro out. That key piece of info would have been good to know from the start.

    Try this:

    Please Login or Register  to view this content.
    Robert

  7. #7
    Forum Expert millz's Avatar
    Join Date
    08-14-2013
    Location
    Singapore
    MS-Off Ver
    Excel, Access 2016
    Posts
    1,694

    Re: Find last value in column and add +1 to the first empty cell in this column

    If you want to keep the table
    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)

Similar Threads

  1. [SOLVED] Macro to find the empty cell in a column and copy a adjacent row to another column.
    By naga in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 07-18-2013, 07:44 AM
  2. [SOLVED] Find next empty cell in column
    By Scott Taylor in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 01-12-2013, 04:26 PM
  3. Find first empty cell in column.
    By dlw in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-26-2012, 12:16 PM
  4. [SOLVED] Find a empty cell in next column
    By Michael in forum Excel General
    Replies: 3
    Last Post: 06-15-2005, 10:05 AM
  5. How to find next empty cell within a column?
    By Rick in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 05-27-2005, 03:05 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