+ Reply to Thread
Results 1 to 6 of 6

Trying to fill in Worksheet blanks by copying down previous cells

  1. #1
    Registered User
    Join Date
    03-01-2010
    Location
    Portland, OR
    MS-Off Ver
    Office 365
    Posts
    58

    Trying to fill in Worksheet blanks by copying down previous cells

    So I've tried to work on this myself, but haven't gotten very far.

    I have about a 18K line spreadsheet that is formatted similarly to the following:

    Cust # Name Date Sales
    Date Sales
    Date Sales
    Date Sales
    Date Sales
    Cus # Name Date Sales
    Date Sales
    Date Sales
    Date Sales

    So I want to copy down the the customer name and number to the blank cells in order to make the data actually usable. I've tried a number of formulas, but all of them require me to manually copy and paste the formulas in order to not copy over the other Customer names and numbers. Would this be more suitable for a VBA?

    Any Ideas? I've attached a test spreadsheet below.
    Attached Files Attached Files

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

    Re: Trying to fill in Worksheet blanks by copying down previous cells

    Select columns A & B, goto Find & Select>Goto Special..., select Blanks.

    Then in the formula bar enter =A1 and hit CTRL+ENTER.
    If posting code please use code tags, see here.

  3. #3
    Registered User
    Join Date
    03-01-2010
    Location
    Portland, OR
    MS-Off Ver
    Office 365
    Posts
    58

    Re: Trying to fill in Worksheet blanks by copying down previous cells

    Quote Originally Posted by Norie View Post
    Select columns A & B, goto Find & Select>Goto Special..., select Blanks.

    Then in the formula bar enter =A1 and hit CTRL+ENTER.
    Wow....That was easy. So what was the =A1 do combined with the control enter?

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

    Re: Trying to fill in Worksheet blanks by copying down previous cells

    Oh, forgot to add - you can replace the formulas with a quick Copy/Paste Special Values...

  5. #5
    Registered User
    Join Date
    03-01-2010
    Location
    Portland, OR
    MS-Off Ver
    Office 365
    Posts
    58

    Re: Trying to fill in Worksheet blanks by copying down previous cells

    Again much appreciated...so how exactly does that work? I get that the by saying =A1 for the first customer will copy the data down, but does excel just see a pattern and apply the formula to all the cells in the range?

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

    Re: Trying to fill in Worksheet blanks by copying down previous cells

    Not quite.

    Using CTRL+ENTER is puts the formula down/across the entire selected range.

    The reference change as needed, just as if you had copied down and across.

+ 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] Copying cells but not blanks
    By Cmorgan in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 05-28-2013, 05:18 AM
  2. Conditional formatting, macros, or formula to fill in new cells of previous cells?
    By greenfox74 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-26-2012, 03:46 PM
  3. skip NON blank cells and fill only blanks
    By donyc in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 02-01-2012, 11:33 AM
  4. 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
  5. Replies: 2
    Last Post: 03-16-2005, 02:06 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