Finding values in a number of columns

Moire

New Member
Joined
May 10, 2012
Messages
3
Hi

I am relatively new to excel vba, but I am looking for some advice about creating a macro that I can run over a number of worksheets in a workbook.

The advice I am looking for is to take 3 columns where I can find certain values in those columns. Where a row has a value in each of those 3 columns that is met to save those rows along with all the column headings into a new worksheet in the same workbook. So, if I have 10 worksheets in my workbook and run the macro, I need to end up with 20 worksheets.

Can anyone help me?
 

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"
All of the worksheets in the workbook have the same number of columns. Columns A through to BV. I am only interested in 3 columns - AB, AK and BB. In those columns I am only looking for string values of 'Yes' in columns AB and AK and 'No', 'N' or '-' in column BB
 
Upvote 0
All of the worksheets in the workbook have the same number of columns. Columns A through to BV. I am only interested in 3 columns - AB, AK and BB. In those columns I am only looking for string values of 'Yes' in columns AB and AK and 'No', 'N' or '-' in column BB

Concerning the sheets, do you just have 10 worksheets per book, with no other different sheets?

If not (ie you DO have other sheets in the WB), is there a common naming convention with the Sheets? (e.g. "BudgetJan","BudgetFeb"...etc)
 
Upvote 0
Hi

There could be any number of worksheets, and as to the naming convention, the names would be different as they are data dumps from a database. Therefore, the names could be for example AA, BB, BBB, etc
 
Upvote 0

Forum statistics

Threads
1,216,231
Messages
6,129,631
Members
449,522
Latest member
natalia188

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