[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Copying Data to Another sheet based on column Values

Posted on 2011-10-31
5
Medium Priority
?
227 Views
Last Modified: 2012-05-12
excel 2003 vba

Routine Needed

I have 2 sheets in this workbook
"List"
"ExactList"

I need to data from "List to "ExatList"

In List"  I have columns from A to BB  :  NO COLUMN HEADERS
In "List" the row numbers vary  from 0 to ?

In Column BA AND BB I may or may not have the following present:
In Columns BA   I have a phrase  "EXACTMATCH"
In Columns BB   I have a phrase  "EXACTNAME"

What I need:
I need to copy all rows that have data in column BA  AND/OR  BB  TO
"ExactList"

Thank
fordraiders

 



0
Comment
Question by:Fordraiders
  • 2
  • 2
5 Comments
 
LVL 2

Accepted Solution

by:
KevSta earned 1000 total points
ID: 37057776
0
 
LVL 3

Author Comment

by:Fordraiders
ID: 37057907
Thanks but looking  for vba code
0
 
LVL 34

Assisted Solution

by:Rob Henson
Rob Henson earned 1000 total points
ID: 37058596
You can do this with an Advanced Filter.

This can be done manually and recorded using the VBA recorder or there is similar on this question:

http://www.experts-exchange.com/Software/Office_Productivity/Office_Suites/MS_Office/Excel/Q_24615743.html

Thanks
Rob H
0
 
LVL 34

Expert Comment

by:Rob Henson
ID: 37058647
Just read - NO COLUMN HEADERS

You will need unique column headers for the Adv Filter to work.

I guess the quickest way round this would be to have a line in the VBA that inserts a row above the data and adds column headers even if its just Col1, Col2 etc.

Thanks
Rob H
0
 
LVL 3

Author Closing Comment

by:Fordraiders
ID: 37065994
Thanks
0

Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Do you use a spreadsheet like Microsoft's Excel?  Have you ever wanted to link out to a non excel file on your computer or network drive?  This is the way I found to do it!
This article describes how you can use Custom Document Properties to store settings and other information in your workbook so that they will be available the next time you open the workbook.
This Micro Tutorial will demonstrate how to use longer labels with horizontal bar charts instead of the vertical column chart.
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

834 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question