Delete rows by criteria in Excel
Delete rows by criteria in Excel. Only have the data that you need on your sheet. Free templates and templates with code are available for purchase for $50 USD
https://www.easyexcelanswers.com/templates.html
Check out my online training www.easyexcelanswers.com/courses.html
For more help visit my website www.easyexcelanswers.com or email me at easyexcelanswers@gmail.com.
Contact me regarding customizing this template for your needs.
Click for online Excel Consulting http://www.calendly.com/easyexcelanswers
I am able to provide online help on your computer at a reasonable rate.
https://www.amazon.com/shop/barbhenderson
I use a Blue condenser Microphone to record my videos, here is the link
https://amzn.to/37gyyGa
Check out Crowdcast for creating your webinars
https://app.linkmink.com/a/crowdcast/83
If you need to buy Office 2019 follow
https://amzn.to/2VX5dv8
I use Tube Buddy to help promote my videos
Check them out
https://www.Tubebuddy.com/easyexcelanswers
Follow me on Facebook
https://www.facebook.com/easyexcel.answers
TWEET THIS VIDEO https://youtu.be/AceK42eOJ28
Follow me on twitter
easyexcelanswers
IG @barbhendersonconsulting
You can help and generate a translation to you own language
http://www.youtube.com/timedtext_cs_panel?c=UCFH2kZykqt-VX5W9waJzYvQ&tab=2
*this description may contain affiliate links. When you click them, I may receive a small commission at no extra cost to you. I only recommend products and services that I've used or have experience with.
How to insert VBA code in Excel
https://youtu.be/AByFH0TN53M
code
Sub criteriadelete()
Dim ws As Worksheet
Dim r As Long
r = 2
Set ws = ThisWorkbook.Worksheets("DATA")
Do While ws.Cells(r, 1) (not equal to) ""
ws.Cells(r, 7).Select
again:
If (ActiveCell.Value = "RENTAL" Or ActiveCell.Value = "DEL_RENTAL" Or ActiveCell.Value = "RE-RENTAL") Then
ActiveCell.EntireRow.Delete shift:=xlUp
GoTo again
Else
GoTo ende:
End If
ende:
r = r + 1
Loop
Call deletedate
End Sub
Sub deletedate()
Dim ws As Worksheet
Dim r As Long
Set ws = ThisWorkbook.Worksheets("DATA")
r = 2
Do While ws.Cells(r, 1) (not equal to ) ""
ws.Cells(r, 4).Select
again:
If Cells(r, 4).Value (is less than) Date Then
ActiveCell.EntireRow.Delete
GoTo again
Else
GoTo ende
End If
ende:
r = r + 1
Loop
End Sub
Видео Delete rows by criteria in Excel канала Barb Henderson
https://www.easyexcelanswers.com/templates.html
Check out my online training www.easyexcelanswers.com/courses.html
For more help visit my website www.easyexcelanswers.com or email me at easyexcelanswers@gmail.com.
Contact me regarding customizing this template for your needs.
Click for online Excel Consulting http://www.calendly.com/easyexcelanswers
I am able to provide online help on your computer at a reasonable rate.
https://www.amazon.com/shop/barbhenderson
I use a Blue condenser Microphone to record my videos, here is the link
https://amzn.to/37gyyGa
Check out Crowdcast for creating your webinars
https://app.linkmink.com/a/crowdcast/83
If you need to buy Office 2019 follow
https://amzn.to/2VX5dv8
I use Tube Buddy to help promote my videos
Check them out
https://www.Tubebuddy.com/easyexcelanswers
Follow me on Facebook
https://www.facebook.com/easyexcel.answers
TWEET THIS VIDEO https://youtu.be/AceK42eOJ28
Follow me on twitter
easyexcelanswers
IG @barbhendersonconsulting
You can help and generate a translation to you own language
http://www.youtube.com/timedtext_cs_panel?c=UCFH2kZykqt-VX5W9waJzYvQ&tab=2
*this description may contain affiliate links. When you click them, I may receive a small commission at no extra cost to you. I only recommend products and services that I've used or have experience with.
How to insert VBA code in Excel
https://youtu.be/AByFH0TN53M
code
Sub criteriadelete()
Dim ws As Worksheet
Dim r As Long
r = 2
Set ws = ThisWorkbook.Worksheets("DATA")
Do While ws.Cells(r, 1) (not equal to) ""
ws.Cells(r, 7).Select
again:
If (ActiveCell.Value = "RENTAL" Or ActiveCell.Value = "DEL_RENTAL" Or ActiveCell.Value = "RE-RENTAL") Then
ActiveCell.EntireRow.Delete shift:=xlUp
GoTo again
Else
GoTo ende:
End If
ende:
r = r + 1
Loop
Call deletedate
End Sub
Sub deletedate()
Dim ws As Worksheet
Dim r As Long
Set ws = ThisWorkbook.Worksheets("DATA")
r = 2
Do While ws.Cells(r, 1) (not equal to ) ""
ws.Cells(r, 4).Select
again:
If Cells(r, 4).Value (is less than) Date Then
ActiveCell.EntireRow.Delete
GoTo again
Else
GoTo ende
End If
ende:
r = r + 1
Loop
End Sub
Видео Delete rows by criteria in Excel канала Barb Henderson
Показать
Комментарии отсутствуют
Информация о видео
Другие видео канала
![Removing leading zeros and apostrophes from downloads to Excel](https://i.ytimg.com/vi/PHBWUcl6buo/default.jpg)
![Use Excel to calculate your mortgage](https://i.ytimg.com/vi/4E4UX_pJiF8/default.jpg)
![Assign spots by Rank and choice in Excel](https://i.ytimg.com/vi/GNugORuoyRk/default.jpg)
![Record in and out times for jobs in Excel](https://i.ytimg.com/vi/gCdyL-4__hI/default.jpg)
![How to put the Developer tab on you Excel workbook](https://i.ytimg.com/vi/jvvvIKgdxv4/default.jpg)
![How to insert a row or column in Excel](https://i.ytimg.com/vi/hISIDI9duWQ/default.jpg)
![How to create a spending tracker for your phone in Excel](https://i.ytimg.com/vi/KifueCrbxxc/default.jpg)
![Create a Yearly leave tracker by hours for Employees](https://i.ytimg.com/vi/oP5Y_sGSL3w/default.jpg)
![Delete first line if barcode scanned a second time in Excel](https://i.ytimg.com/vi/pM8L1wkbXv8/default.jpg)
![Who wants to work weekends in Excel](https://i.ytimg.com/vi/Wo1zgKr_Bwk/default.jpg)
![How to create a button linked to a macro in Excel](https://i.ytimg.com/vi/fMESxYx6rTQ/default.jpg)
![Hide and unhide groups of worksheets automatically in Excel](https://i.ytimg.com/vi/ZBfp-8OYu0U/default.jpg)
![Show buttons on copied sheets in Excel](https://i.ytimg.com/vi/RYBymqljmNY/default.jpg)
![Create individual schedule from group schedule without code in Excel](https://i.ytimg.com/vi/YP5w9oiLZU4/default.jpg)
![Count the number of months for more than one year](https://i.ytimg.com/vi/6qDWLLqDe6k/default.jpg)
![Search for numbers across worksheets in Excel](https://i.ytimg.com/vi/C8p-DmpaDkQ/default.jpg)
![How to add a day to a schedule in Excel](https://i.ytimg.com/vi/NlSJX6wVDdo/default.jpg)
![Allow users to select the path when sending email from Excel](https://i.ytimg.com/vi/I0bV30z1c74/default.jpg)
![Separate values in a list to do Calculations in Excel](https://i.ytimg.com/vi/g910mf2iKQ4/default.jpg)
![How to use an auto form in a VBA macro in Excel](https://i.ytimg.com/vi/inh3eAKgYg8/default.jpg)