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
 

Some videos you may like

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
55,626
Office Version
  1. 365
Platform
  1. Windows
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
 

pppaulie_s

New Member
Joined
Oct 6, 2020
Messages
2
Office Version
  1. 2019
  2. 2016
Platform
  1. Windows
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
 

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
55,626
Office Version
  1. 365
Platform
  1. Windows
You're welcome & thanks for the feedback.
 

Watch MrExcel Video

Forum statistics

Threads
1,127,784
Messages
5,626,857
Members
416,206
Latest member
kelleyasth

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