Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1096785
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T00:19:54+00:00 2026-05-17T00:19:54+00:00

I have a column like the following: 1 red 2 blue 3 red 4

  • 0

I have a column like the following:

1 red
2 blue
3 red
4 
5 blue
6
7
8 white

The blanks refer to the record above it. So #4 would be associated with red
and 6 and 7 would be blue.

Is there an easy way to fill in the blanks for entire column?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-17T00:19:55+00:00Added an answer on May 17, 2026 at 12:19 am
    • Select A1:A8.
    • Press F5 to show the Goto dialog.
    • Click Special ….. Select Blanks and click OK.

    That will select a noncontiguous range of blank cells.

    • Then, without selecting anything else, type =A3 and press control+enter.
    • That will enter an array formula in all the blank cells referring to the cell above it.
    • Reselect A1:A8, and Edit – Copy.
    • Then Edit – Paste Special – Values. And you’re all set.

    Note that the =A3 refers to the cell above the first blank cell.

    If you want to do it with a macro, you could loop through the cells and fill in the empty ones.

    Public Sub FillBlanks()
    
        Dim rColumn As Range
        Dim rCell As Range
    
        If TypeName(Selection) = "Range" Then
            For Each rColumn In Selection.Columns
                For Each rCell In rColumn.Cells
                    If rCell.Row > rColumn.Cells(1).Row Then
                        If IsEmpty(rCell.Value) Then
                            rCell.Value = rCell.Offset(-1).Value
                        End If
                    End If
                Next rCell
            Next rColumn
        End If
    End Sub
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have code like following: switch(sort.Column) { case code: model = (sort.Direction == SortDirection.Ascending)
I would like to have one column in QTableWidget NOT editable. In forums I
I have the column DateTimeExpired, and I would like to create another column called
I have a column with some stuff that looks like the following string: V2397(+60)
I have something like following code inside [XMLValue] column of a table called AlgorithmLog:
I have a data.table such as the following: a <- data.table(color=c(Red,Blue,Red,Green,Red,Blue,Blue), count=c(1,2,6,4,2,1,1),include=c(1,1,1,1,0,0,1)) > a
I have a column called names that has inputs like the following: `name` Aaron,
I have column with varchar values like 022008 that I need to convert into
i have a column in wich the result appears like this: Column 1 999999999990
I have a mySQL table that has a column like this: ID ----- 0352

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.