IF Blank, copy above text ???

monkeyharris

Active Member
Joined
Jan 20, 2008
Messages
310
Please help. I've being trying an IF statement which is getting messy. In the below example i need look if there is a blank cell it needs to find the last name mentioned above then copy it to the blank cells. The table is A1:R5000 and this column is in H.


CHARLOTTE.HERBER
MARK.RUBY
MARK.RUBY


MARK.RUBY

MARK.RUBY



MARK.RUBY
MARK.RUBY
CORINNA.KELLY
CORINNA.KELLY
CORINNA.KELLY
CORINNA.KELLY
 

Excel Facts

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.

mfexcel

Well-known Member
Joined
Jan 8, 2009
Messages
791
Are you talking about to fill in the blank cell with the name above?
If so, check this out:
Fill in the blanks – quickly | wmfexcel

Please help. I've being trying an IF statement which is getting messy. In the below example i need look if there is a blank cell it needs to find the last name mentioned above then copy it to the blank cells. The table is A1:R5000 and this column is in H.


CHARLOTTE.HERBER
MARK.RUBY
MARK.RUBY


MARK.RUBY

MARK.RUBY



MARK.RUBY
MARK.RUBY
CORINNA.KELLY
CORINNA.KELLY
CORINNA.KELLY
CORINNA.KELLY
 

XLRATOR

Board Regular
Joined
Mar 25, 2014
Messages
115
Try:
Application.ScreenUpdating = False 'Comment this out if you want to see the changes happen
Dim rng As Range
For Each rng In Range("A1:R5000").Cells
If rng.Value = "" Then
rng.Value = rng.End(xlUp).Value
End If
Next

Karim
 

Watch MrExcel Video

Forum statistics

Threads
1,129,472
Messages
5,636,516
Members
416,922
Latest member
defectexpress

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
Top