+ Reply to Thread
Results 1 to 3 of 3

Auto populate cells with number according to previous cell

  1. #1
    Registered User
    Join Date
    06-16-2015
    Location
    New York
    MS-Off Ver
    2011 (mac)
    Posts
    6

    Auto populate cells with number according to previous cell

    Hello, and thanks for having a look at this post. I am trying to create a macro that will auto-populate empty cells with the number of the previous cell until the next unique number. Example below... Thanks in advance!

    Screen Shot 2015-06-29 at 1.01.48 PM.png

  2. #2
    Forum Expert tigeravatar's Avatar
    Join Date
    03-25-2011
    Location
    Colorado, USA
    MS-Off Ver
    Excel 2003 - 2013
    Posts
    5,361

    Re: Auto populate cells with number according to previous cell

    Hello kcarth,

    Does this need to be VBA? Using your shown example, in cell B2 and copied down you could use this formula:
    Please Login or Register  to view this content.

    If you need the results to be in the same column as the original data, you could then copy the formula cells, Right-click cell A2 -> PasteSpecial -> Values. Then delete the formula cells/column.
    Hope that helps,
    ~tigeravatar

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Forum Expert
    Join Date
    08-28-2014
    Location
    Texas, USA
    MS-Off Ver
    2016
    Posts
    1,796

    Re: Auto populate cells with number according to previous cell

    VBA solution, might need to adjust the range:

    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. Auto populate next cell depending on previous column
    By ngocpdn in forum Excel General
    Replies: 3
    Last Post: 01-09-2015, 01:08 AM
  2. Auto-populate lookup formula based on previous cells
    By Homeslice01 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-23-2013, 11:09 PM
  3. Auto Populate Cells Dependent on Information in Previous Cell
    By senescu in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 07-21-2010, 11:50 AM
  4. Replies: 2
    Last Post: 07-21-2010, 09:10 AM
  5. Macro to auto populate the destination cell based on the values of the previous cell
    By Avinash Kumar in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-05-2009, 02:06 AM

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