IF Blank, copy above text ???

monkeyharris

Active Member
Joined
Jan 20, 2008
Messages
358
Office Version
  1. 365
Platform
  1. Windows
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

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
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
 
Upvote 0
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
 
Upvote 0

Forum statistics

Threads
1,215,025
Messages
6,122,731
Members
449,093
Latest member
Mnur

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