formula to replace blank cells with the data in cell above it

dbwiz

Active Member
Joined
Nov 20, 2007
Messages
275
Help. I have a huge spreadsheet with names in Cols D and E and amounts in Cols P and Q. Sometimes the name fields are blank (due to reversals of paid amounts in cols P and Q.) I need a formula to run on Col D and E that would find blanks and replace them with whatever text is in the cell directly above it. Can this be done?
 

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.
Excel Workbook
ABCDE
1JSB3519889055561538400ERNESTINAMARCELO
2JSB3519889055561538400
3JSB3706385055561538400ERNESTINAMARCELO
4JSB3735816855561538400JOESMITH
5JSB3735816855561538400
6JSB3799791855561538400JOESMITH
Sheet1
Excel 2003

Note: I had to copy past a small portion into Excel 2003 because of the Mr Excel HTML, but I have to work out of Excel 2007 because my reports are so huge. In above example, I need to replace the blank in D2 with the text in D1, D5 with D4, and so on.
 
Upvote 0
Nevermind - I figured it out. I filtered by the blanks, selected visible cells only, and held the CTRL key down while I made the first blank = to the cell above it. It filled in the rest. I checked it and they were all correct.
 
Upvote 0

Forum statistics

Threads
1,224,597
Messages
6,179,813
Members
452,945
Latest member
Bib195

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