How to fill Filtered Cells with data??

pppaulie_s

New Member
Joined
Oct 6, 2020
Messages
2
Office Version
  1. 2019
  2. 2016
Platform
  1. Windows
Hi everyone,

I am trying to use to populate the "AD" column fields (filtered by rows that contain data) with the word "SENT".
I can't seem to manage to fill the correct cells due to filtering.
  • "SENT" needs to be populated in the AD column in the cell where there is filtered data
  • also needs to be able to populate the cell if there is only 1 row of filtered data
Hopefully I have explained myself correctly.

Any assistance would be greatly appreciated.
Thank you in advance

1602032549282.png
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
Hi & welcome to MrExcel.
How about
VBA Code:
Sub pppaulie()
   Dim UsdRws As Long
   With ActiveSheet
      UsdRws = .Range("A" & Rows.Count).End(xlUp).Row
      .AutoFilter.Range.Offset(1).Resize(UsdRws - 4).Columns("ad").Value = "Sent"
   End With
End Sub
 
Upvote 0
Hi & welcome to MrExcel.
How about
VBA Code:
Sub pppaulie()
   Dim UsdRws As Long
   With ActiveSheet
      UsdRws = .Range("A" & Rows.Count).End(xlUp).Row
      .AutoFilter.Range.Offset(1).Resize(UsdRws - 4).Columns("ad").Value = "Sent"
   End With
End Sub
G'day @Fluff

Thank you for your prompt support - this worked a treat! Plus I've learnt something too!
Thanks again for your support (y)(y)(y)(y)

Cheers
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,223,948
Messages
6,175,571
Members
452,652
Latest member
eduedu

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