+ Reply to Thread
Results 1 to 9 of 9

Fill cells between values

  1. #1
    Registered User
    Join Date
    03-26-2014
    Location
    Washington
    MS-Off Ver
    Excel 2010
    Posts
    61

    Fill cells between values

    Hi, in my workbook I have a sheet called "DATA" where users copy over data from a database into range B:X. The row depends on where the previous data ends. In column A the Month name is put in the first row of the added data and the last row of the added data due to the formatting from the source. I need to have a macro fill in the blank cells in column A between the two cells that already have the month.

    For example, if someone pastes data into cells B1:X55 where A1 is "JULY" and A55 is July. I need a macro to fill A2:A54 in with the same value automatically.

    Any help is appreciated.
    Attached Files Attached Files
    Last edited by gclode; 08-01-2019 at 09:24 AM.

  2. #2
    Forum Guru Sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2019 | 2021
    Posts
    15,023

    Re: Fill cells between values

    Upload a sample file depicting your scenario to make use of please...
    Good Luck...
    I don't presume to know what I am doing, however, just like you, I too started somewhere...
    One-day, One-problem at a time!!!
    If you feel I have helped, please click on the [★ Add Reputation] to left of post window...
    Also....Add a comment if you like!!!!
    And remember...Mark Thread as Solved...
    Excel Forum Rocks!!!

  3. #3
    Registered User
    Join Date
    03-26-2014
    Location
    Washington
    MS-Off Ver
    Excel 2010
    Posts
    61

    Re: Fill cells between values

    I have added a sample workbook to my original post. Thanks!

  4. #4
    Forum Expert nigelog's Avatar
    Join Date
    12-14-2007
    Location
    Cork, Ireland
    MS-Off Ver
    Office 365 Windows 10
    Posts
    2,293

    Re: Fill cells between values

    if as described in first post
    Please Login or Register  to view this content.

  5. #5
    Forum Expert nigelog's Avatar
    Join Date
    12-14-2007
    Location
    Cork, Ireland
    MS-Off Ver
    Office 365 Windows 10
    Posts
    2,293

    Re: Fill cells between values

    change to
    Please Login or Register  to view this content.

  6. #6
    Forum Guru Sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2019 | 2021
    Posts
    15,023

    Re: Fill cells between values

    Your file that you have uploaded has no depiction of what you want...
    This is my understanding...
    Please Login or Register  to view this content.

  7. #7
    Forum Expert mikerickson's Avatar
    Join Date
    03-30-2007
    Location
    Davis CA
    MS-Off Ver
    Excel 2011
    Posts
    6,229

    Re: Fill cells between values

    Your attached file does not show a before and desired result sheet, so this is only a guess, but maybe.

    Please Login or Register  to view this content.
    _
    ...How to Cross-post politely...
    ..Wrap code by selecting the code and clicking the # or read this. Thank you.

  8. #8
    Forum Expert dangelor's Avatar
    Join Date
    09-06-2011
    Location
    Indiana, USA
    MS-Off Ver
    MS365 V.2406
    Posts
    2,317

    Re: Fill cells between values

    Possibly...
    Please Login or Register  to view this content.

  9. #9
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 insider Version 2506 Win 11
    Posts
    24,903

    Re: Fill cells between values

    Using Power Query, here is the Mcode for your file. If you are unfamiliar with Power Query, click on the links in my signature.

    Please Login or Register  to view this content.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

+ 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] How to fill an Array with values from Range of cells, skip cells then add more values.
    By jrtraylor in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 08-04-2017, 06:27 PM
  2. Replies: 1
    Last Post: 07-08-2017, 01:41 PM
  3. [SOLVED] Fill in between cells with non linear values
    By Jamesera27 in forum Excel General
    Replies: 6
    Last Post: 10-24-2015, 07:32 AM
  4. How to fill values between two specific cells?
    By media-tel in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 11-16-2014, 11:55 PM
  5. Fill cells with values from other spreadsheets
    By synses in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 06-11-2013, 09:23 AM
  6. Replies: 1
    Last Post: 04-11-2013, 01:02 PM
  7. Fill cells based upon values
    By chrisnat in forum Excel General
    Replies: 2
    Last Post: 03-28-2011, 09:23 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