+ Reply to Thread
Results 1 to 6 of 6

Use previous full cell in the subsequent empty cells in a range

  1. #1
    Registered User
    Join Date
    03-21-2013
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    3

    Use previous full cell in the subsequent empty cells in a range

    I have a single row range (row 1) where one cell will be filled followed by a number of empty cells, then another cell filled followed by another number of empty cells. How do I create a formula in a corresponding row below this range (row 2), where it will look up the range and fill in every cell with the value of the previous full cell's value in the range. Here is what it looks like;

    colA|colB|colC|colD|colE|colF|colG|
    1 12 |emp|emp|emp| 32 |emp|emp| (original data I have, where emp means empty cell)
    2 12 | 12 | 12 | 12 | 32 | 32 | 32 | (this is the row that will be populated with the formula I am trying to create)

    Hope it's clear.
    Thank you

  2. #2
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Use previous full cell in the subsequent empty cells in a range

    Try this

    Highlight the ENTIRE Range
    Press CTRL + G
    Click Special
    Select Blanks
    Click OK
    Press =
    Press LEFT Arrow Key
    Press CTRL + ENTER

    Hope that helps.

  3. #3
    Registered User
    Join Date
    03-21-2013
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Use previous full cell in the subsequent empty cells in a range

    Thank you very much for your response Jonmo1. Your solution works for populating the fields in an automated fashion, however, I was looking for a formula that I can plug in which would then calculate it. The ranges I defined here as an example are 8 column wide, while these ranges are more than 300 columns (ColA-ColD and ColE-ColG)for each of the 50+ data groups (12 and 32) in reality, which would make it more cumbersome and error-prone for the non-savvy users who would eventually use this sheet.

    Thank you

  4. #4
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Use previous full cell in the subsequent empty cells in a range

    Not sure what you are saying. The technique that Jon suggested puts a formula into each of the empty cells simultaneously. (i.e. if you're in former blank cell J22, it'll have =J21)

    As formulas can get screwed up (as you put it by the less savy users), I would add a final step (with all former blank cells still selected to Copy>Paste Special > Values to make them constants.
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  5. #5
    Registered User
    Join Date
    03-21-2013
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Use previous full cell in the subsequent empty cells in a range

    What I was trying to say earlier was that selecting 4 cells and following the steps Jon has outlined is easy; while selecting 300 cells, following the steps and doing this repeatedly over 50+ times will more than likely introduce human error. And, mind you, there are a few other formulas already in place to get the final result and this step is the only one so far I could not create a formula for. Ultimately and ideally, I will have the formula look up the source sheet and do all the calculation without any manual work.

    Thank you.

  6. #6
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Use previous full cell in the subsequent empty cells in a range

    Why would you have to do it 50+ times?

    The first step is to highlight the ENTIRE Range.

+ 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