+ Reply to Thread
Results 1 to 8 of 8

Populating cells with preceding value

  1. #1
    Forum Contributor
    Join Date
    11-20-2009
    Location
    Melbourne
    MS-Off Ver
    Excel 365
    Posts
    262

    Populating cells with preceding value

    Is there a way that I can have Excel fill in the highlighted blank columns with the preceding value above.
    I know that if I press F5 and select blanks, I can then press the equal sign and select the above cell and hit CTRL Enter.
    This is fine for a few records, but I have many spanning across many columns.
    I have also shown the desired outcome in my Sample spreadsheet.
    Attached Files Attached Files

  2. #2
    Forum Expert Crooza's Avatar
    Join Date
    10-19-2013
    Location
    Hunter Valley, Australia
    MS-Off Ver
    Excel 2003 /7/10
    Posts
    2,082

    Re: Populating cells with preceding value

    If you're trying to populate column O then put this in O2 and drag down. You can use similar syntax in the other two columns

    =IF(B2="",O1,B2)
    Happy with my advice? Click on the * reputation button below

  3. #3
    Forum Contributor
    Join Date
    11-20-2009
    Location
    Melbourne
    MS-Off Ver
    Excel 365
    Posts
    262

    Re: Populating cells with preceding value

    My apologies. The data in column 'O' is the desired outcome. There are just too many columns to enter the formula for each one.
    I was hoping there was a Macro that could have made the job easier.

  4. #4
    Forum Expert Crooza's Avatar
    Join Date
    10-19-2013
    Location
    Hunter Valley, Australia
    MS-Off Ver
    Excel 2003 /7/10
    Posts
    2,082

    Re: Populating cells with preceding value

    i'd just copy column O (after applying the formula) then paste back to column A as values

    But if you want a macro try this

    Please Login or Register  to view this content.
    You can update for the other columns (or let me know if you can't and I'll update for you)

  5. #5
    Forum Contributor
    Join Date
    11-20-2009
    Location
    Melbourne
    MS-Off Ver
    Excel 365
    Posts
    262

    Re: Populating cells with preceding value

    Thank you very much Crooza. That's spot on!

  6. #6
    Forum Contributor
    Join Date
    11-20-2009
    Location
    Melbourne
    MS-Off Ver
    Excel 365
    Posts
    262

    Re: Populating cells with preceding value

    I jumped the gun too quickly. Would you be so kind as to update the other columns so I can understand the code please

  7. #7
    Forum Expert Crooza's Avatar
    Join Date
    10-19-2013
    Location
    Hunter Valley, Australia
    MS-Off Ver
    Excel 2003 /7/10
    Posts
    2,082

    Re: Populating cells with preceding value

    Just repeat for columns C/D and E/F like this

    Please Login or Register  to view this content.

  8. #8
    Forum Contributor
    Join Date
    11-20-2009
    Location
    Melbourne
    MS-Off Ver
    Excel 365
    Posts
    262

    Re: Populating cells with preceding value

    Thank you. I thought that might be the case. Just wanted to confirm. Thank you once again for your guidance.

+ 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. Summing cells with the same preceding cell value
    By yugo23 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-23-2015, 04:39 AM
  2. [SOLVED] Conditional format cells in column, RAG, based on preceding cell value
    By Smudge.Smith in forum Excel General
    Replies: 8
    Last Post: 11-08-2013, 05:21 AM
  3. [SOLVED] Formula to insert text in new column if preceding more than one of the preceding have val
    By aimeecrystalaid in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 09-04-2013, 11:47 PM
  4. Replies: 7
    Last Post: 08-14-2013, 05:41 AM
  5. [SOLVED] Populating subcategory cells with adjacent text from category cells
    By MrRed in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-25-2012, 08:21 AM
  6. Replies: 1
    Last Post: 03-21-2012, 01:20 PM
  7. My formula cell has stopped adding the preceding cells.
    By Miriam in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-02-2006, 10:40 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