+ Reply to Thread
Results 1 to 6 of 6

Copy cells to fill in blank fields

  1. #1
    Registered User
    Join Date
    03-06-2006
    Location
    Clayton, NC
    MS-Off Ver
    MS Office 2010
    Posts
    61

    Copy cells to fill in blank fields

    Hi,

    I have a spreadsheet with company names in the Column A and items they ordered in Column B. The company name is only listed next to the first item they ordered, so if they have ordered multiple items, there are blank cells under the company name. Then the next company name is listed with the items they ordered. This continues for thousands of rows, leaving a lot of blank cells in Column A. My boss wants to fill in all of the blank cells with the company names. So my question is: Is there a feature/function that tells Excel to copy a cell into all of the blank cells below it until it reaches a non-blank cell?

    Thanks!

  2. #2
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: Copy cells to fill in blank fields

    hi RevJeff. assuming your data is from A1:B100
    1. select A1.
    2. click & drag the scroll bar to the end where the data of column A ends (row 100)
    3. press & hold the SHIFT key & left click on the last cell in column A (A100). you should see them all selected
    4. press CTRL + G -> Special -> Blanks -> OK. now only blanks are selected
    5. do not click anywhere else. press the "=" sign
    6. press the UP arrow key
    7. hit CTRL & ENTER

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  3. #3
    Valued Forum Contributor
    Join Date
    08-13-2012
    Location
    Gardony, Hungary
    MS-Off Ver
    Excel 2003
    Posts
    558

    Re: Copy cells to fill in blank fields

    Hi,

    there is a very simple and elegant way that I recently learned. Here are the steps:
    1. highlight the whole column A
    2. press ctrl+G or F5 to bring up "Go to" box
    3. click "Special" button
    4. Select "Blanks" and click "OK".
    5. type "=" (just an equals sign)
    6. press UP arrow
    7. press Ctrl+Enter

    Voilá! All the highlighted cells (empty cells in this case) are filled with the data above them. After this you should copy and paste column A back again with paste special (values) to make the functions disappear.

  4. #4
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Copy cells to fill in blank fields

    Hi Rev,

    Here is a quick way.
    Select the column A
    Press F5
    click on Special
    Select Blanks
    Ok
    press keys "=" and "up Arrow"
    Press Ctrl + Enter

    Regards,
    DILIPandey

    <click on below 'star' if this helps>
    DILIPandey, Excel rMVP
    +919810929744 (India), +971528225509 (Dubai), [email protected]

  5. #5
    Registered User
    Join Date
    03-06-2006
    Location
    Clayton, NC
    MS-Off Ver
    MS Office 2010
    Posts
    61

    Re: Copy cells to fill in blank fields

    WOW!!!! Thank you so much!!! I was scared I would have to copy/paste the whole thing.

  6. #6
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Copy cells to fill in blank fields

    Great..!!

    If that solves your query, suggest you to mark this thread as [SOLVED]... thanks.


    Regards,
    DILIPandey

    <click on below 'star' if this helps>

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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