Delete Row when cell contains another cell text

Kell2Jam

New Member
Joined
May 10, 2020
Messages
33
Office Version
  1. 2013
Platform
  1. Windows
Hi, very new to this.

I need help with finding data from one sheet to finding data in another sheet and deleting that row.
I have had a lot of trouble with this and cant seem to crack it.
Can anyone help a formula?
 
I seem to have gotten Run-time error '5'
Invalid Procedure call or argument after it ran through that code about 10 times
 
Upvote 0

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
Hey Mate,

I have received Run-time error '5'
Invalid Procedure call or argument.

after it ran through the code about 10 times
 
Upvote 0
No idea why you have suddenly got that error after 10 runs. What has changed in the data?
 
Upvote 0
Are you sure that every cell value in Last report column A has a match in Open PO's Report column A?
 
Upvote 0
It will error if there is no match, you haven't mentioned having no matches in your data (and it would have happened the first time you ran the code if the data was the same so the data has changed if you ran the code fully before).
 
Upvote 0
So can you confirm
A) that you do have the possibility of not having a match?
B) if the answer to the above is true what you want to happen with the unmatched data?
C) did you run the code fully at the start?
 
Upvote 0
When it runs there is the possabiltiy that there will not be a match

if no match is found than i dont need it to copy

I did run it fully but the data must have updated from the file it extracted from, there are other people that have access to this workbook as it is on a p drive system.
 
Upvote 0

Forum statistics

Threads
1,224,743
Messages
6,180,687
Members
452,994
Latest member
Janick

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