Large Sheet-Need to Get blank cells to equal proceeding cell when blank

TWTHOMAS

Board Regular
Joined
Mar 26, 2010
Messages
103
Office Version
  1. 2016
Platform
  1. Windows
I have a spreadsheet that has thousands of rows of data. Some rows contain blank cells but all of those blank cells need to contain the data in the cell from the same column and the proceeding row.
However, those that do contain data need to remain unchanged.

For example:

Row 2 Column C Reads as blank (no text or numbers) I need the information from row 1 column 3 to populate into that cell.
However rows 3 through say 74 have the same data in every two rows already. So R3CC and R4CC are identical all the way to row 74.
But then R75CC has data and R76C3 is blank again. I need that data from R75CC to populate R76CC.

I cannot filter to only show those blank and the on above it as there is no common data to use.

In the sample, I need the Yellow cells to equal what is in the blue cell but this occurs maybe 1,000 to 1,500 time randomly through the sheet. The locations are also not so optimal as they vary too much to use as a filter.

Thanks in advance.
 

Attachments

  • MREXCEL1.png
    MREXCEL1.png
    13.1 KB · Views: 5

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
You could create a new column with:
Excel Formula:
=IF(B2="";B1;B2)
That way if 1 cell is empty, it will display the value above that.
1733157417235.png

However, if more than 1 cell is empty this will not work.
 
Upvote 0
Solution
You could create a new column with:
Excel Formula:
=IF(B2="";B1;B2)
That way if 1 cell is empty, it will display the value above that.
View attachment 119936
However, if more than 1 cell is empty this will not work.
This sort of worked. Probably because I am using MS365 online. Had to change it to =IF(B2="",B1,B2) and it worked.
 
Upvote 0

Forum statistics

Threads
1,224,272
Messages
6,177,632
Members
452,786
Latest member
k3calloway

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top