Lookup a value on a table, if does not exist then delete a large range of data

leocleverdon

New Member
Joined
Sep 29, 2022
Messages
1
Office Version
  1. 365
Platform
  1. Windows
Hi

I hope someone can help. I have a a table that has energy solutions, with a corresponding page further down the document on the same sheet. What I need is a piece of code that firstly sorts the data in the table, deletes and rows the n/a line in payback coloumn, as these solutions are not viable, then looks for the page that has the solution description and detail and deletes it, because it is not in the table. I have tried different ways, I can get it to delete the N/A but cant find any code that deletes the releveant pages.

1664480048462.png

Each page lower down in the document has the above headings.


I do hope someone can help!

Thanks
 

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.
Are these table objects, or just ranges of the worksheet? If they are tables, what are the table names? What are the starting rows and columns of this information and the "pages" further down?
 
Upvote 0

Forum statistics

Threads
1,214,429
Messages
6,119,433
Members
448,897
Latest member
ksjohnson1970

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