+ Reply to Thread
Results 1 to 4 of 4

VBA to loop and fill blanks with data from left column if values exist in 3 cells?

  1. #1
    Registered User
    Join Date
    03-06-2014
    Location
    Valparaiso, FL
    MS-Off Ver
    Excel 2013
    Posts
    73

    VBA to loop and fill blanks with data from left column if values exist in 3 cells?

    Hello gurus!

    My data is organized in columns starting at Column E. Each column represents a class and the data is read left to right.
    Sometimes in range E3:R4 the dates will be blank. Is there some type of loop that can fill blanks?

    I attached my sample workbook with the original tab and desired result tab.
    For example, the dates are missing from F3 & F4. I’d like the code to copy the dates from the column E, as long as there are class days in F5.

    Sometimes the data could extend past column R. Is it possible for the loop to be dynamic?

    I appreciate your help!
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,834

    Re: VBA to loop and fill blanks with data from left column if values exist in 3 cells?

    See if this works as you expect.
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    03-06-2014
    Location
    Valparaiso, FL
    MS-Off Ver
    Excel 2013
    Posts
    73

    Re: VBA to loop and fill blanks with data from left column if values exist in 3 cells?

    Jindon,

    Forum Guru indeed! Thank you so much---yet again you write such elegant VBA that works! Thank you!!

  4. #4
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,834

    Re: VBA to loop and fill blanks with data from left column if values exist in 3 cells?

    You are welcome and thanks for the rep.

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

+ 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] Need to find if duplicate values exist in a column, concatenate cells and then delete
    By Siemieniuk in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-22-2017, 07:22 PM
  2. Replies: 10
    Last Post: 01-02-2015, 11:05 AM
  3. [SOLVED] Find if duplicate values exist in a column, concatenate cells and then de
    By filky in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-15-2014, 10:14 PM
  4. [SOLVED] How to copy/paste column, only cells with values (non-blanks)
    By ChristopherH in forum Excel General
    Replies: 5
    Last Post: 02-03-2014, 03:14 PM
  5. [SOLVED] Macro to fill in missing blanks with data in a column
    By robertguy in forum Excel General
    Replies: 6
    Last Post: 10-19-2012, 02:49 AM
  6. fill in rows of blanks for left side of excel worksheet
    By kahook1 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 04-27-2011, 09:28 PM
  7. Loop that finds blanks, then subtotals values into different column
    By Bevy in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-24-2006, 11:45 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