+ Reply to Thread
Results 1 to 6 of 6

Fill empty cell with cell from above based on ID in colum A

  1. #1
    Forum Contributor
    Join Date
    07-31-2012
    Location
    Los Angeles, USA
    MS-Off Ver
    2003, 2010, 365
    Posts
    320

    Fill empty cell with cell from above based on ID in colum A

    Hi,

    Using excel 2003 I have rows that share the same ID in columnA but they have missing information in certain cells on that row and need the information from above cell for the matching ID in columnA.

    I have attached an example of the data before and after the VBA would be applied.

    Thanks for any help,

    David
    Attached Files Attached Files

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Fill empty cell with cell from above based on ID in colum A

    This should do it of the data set isn't too big:

    Please Login or Register  to view this content.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Forum Contributor
    Join Date
    07-31-2012
    Location
    Los Angeles, USA
    MS-Off Ver
    2003, 2010, 365
    Posts
    320

    Re: Fill empty cell with cell from above based on ID in colum A

    Thanks for your help JBeaucaire but it seems to copy from above for every empty cell and is not so dependant on the ID in column A.

    If the cell above is empty for the same ID in column A I would like that row to have the same cell below empty.

    Any suggestions is appreciated.

    Thanks

  4. #4
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Fill empty cell with cell from above based on ID in colum A

    Try this then:

    Please Login or Register  to view this content.

  5. #5
    Forum Contributor
    Join Date
    07-31-2012
    Location
    Los Angeles, USA
    MS-Off Ver
    2003, 2010, 365
    Posts
    320

    Re: Fill empty cell with cell from above based on ID in colum A

    That's perfect, thank you very much for your help.

  6. #6
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Fill empty cell with cell from above based on ID in colum A

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

+ 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] Delete cell based on same row Different Colum
    By DadaaP in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 07-11-2013, 05:12 AM
  2. MACRO to empty a range of cells based on whether specified cell is empty
    By TBJV in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-01-2013, 10:35 PM
  3. Fill an empty cell with first data cell in the same column, next row(s) down
    By aquavion in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 10-02-2009, 04:22 PM
  4. Pivot Table formatting - Fill empty cell with cell above
    By rmichaels55 in forum Excel General
    Replies: 2
    Last Post: 07-30-2008, 02:42 PM
  5. [SOLVED] fill cell value to the next empty row
    By adey v. in forum Excel General
    Replies: 2
    Last Post: 11-14-2005, 09:55 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