+ Reply to Thread
Results 1 to 7 of 7

Fill in blanks with the value of the cell above

Hybrid View

  1. #1
    Registered User
    Join Date
    06-26-2008
    Location
    Rock Hill
    Posts
    41

    Question Fill in blanks with the value of the cell above

    I have a list of product codes. Some of the cells in this list are blank, and it is assumed that the blank row is the same product code as the one above it. Is there a formula I could use to have the cells fill themselves in?

    Example

    DO-566
    DO-566
    <Blank Cell>
    DG-233
    <Blank Cell>
    <Blank Cell>
    ..........
    I've tried the following, but it only yeilded each of the cells having the same values.

    =if(isblank(A2),A1,A2)

    With this, I allowed circular references, but it still yeilds that same result stated above.
    Last edited by oldchippy; 10-23-2008 at 04:21 PM.

  2. #2
    Forum Expert oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Home)
    Posts
    7,097
    Hi,

    Select the column, go to Edit > Go To > Special > Blanks, type = in the formula bars, hit the up arrow then Ctrl+Enter. you should now have the cells fill with the values above
    oldchippy
    -------------


    Blessed are those who can give without remembering and take without forgetting

    If you are happy with the help you have received, please click the <--- STAR icon on the left - Thanks.

    Click here >>> Top Excel links for beginners to Experts

    Forum Rules >>>Please don't forget to read these

  3. #3
    Valued Forum Contributor Richard Schollar's Avatar
    Join Date
    05-23-2006
    Location
    Hampshire UK
    MS-Off Ver
    Excel 2002
    Posts
    1,264
    Select the cells in this column and hit F5 then hit the Special button on the dialog that will open then in the next dialog that that opens check Blanks and hit OK. This will select all your blanks cells. Without doing anything else, type '=' (without the quotes) and hit the up arrow of the cursor keys and enter with Ctrl+Enter. This will enter a formula in each of the blank cells that point to the cell immediately above the blank cell. You can then use Copy and PasteSpecial>Values to fix these formula values if required.

    Richard

  4. #4
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689
    Select all the cells containing product codes and interspersed blanks.

    Do Edit > Go to > Special, Blanks

    In the formula bar, type =, hit the up arrow, press and hold the Ctrl key, and hit Enter.

    Copy the column and paste values over itself.

  5. #5
    Registered User
    Join Date
    06-26-2008
    Location
    Rock Hill
    Posts
    41
    That's cool!!!
    Thanks for the help.

  6. #6
    Registered User
    Join Date
    08-09-2012
    Location
    Pune
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: Fill in blanks with the value of the cell above

    Can u please provide the macro for same?

    Thanks.

  7. #7
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: Fill in blanks with the value of the cell above

    Hello tejvilsan, and welcome to the forum.

    Unfortunately you have inadvertently broken one of the forum rules. Please read the following and make the necessary change. Thanks.

    Your post does not comply with Rule 2 of our Forum RULES. Don't post a question in the thread of another member -- start your own thread. If you feel it's particularly relevant, provide a link to the other thread. It makes sense to have a new thread for your question because a thread with numerous replies can be off putting & difficult to pick out relevant replies.

+ 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. Remove cell fill option
    By Sharp in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-24-2008, 11:55 AM
  2. Repeat a charatcter to fill a cell
    By brade in forum Excel General
    Replies: 1
    Last Post: 12-13-2007, 11:40 AM
  3. Fill across a cell (Mac OSX)
    By paulwelburn in forum Excel General
    Replies: 1
    Last Post: 11-09-2007, 07:07 PM
  4. Conditionally Fill Cell With Text
    By Freezerburn in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-21-2007, 10:43 PM
  5. Formatting Cell Fill Based on Adjacent Value
    By bmossman in forum Excel General
    Replies: 2
    Last Post: 11-22-2006, 02:44 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