Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 24
Default Return results based on multiple criteria

I really realy (1) need some VBA code for these steps:

selecting range A2:G8500within existing worksheet named "Master File"

then, looking at data in row G and if meets one of the two or three diff.
text inputs (i.e. "Baby Boy" or "Teenager") then it returns only that related
data row in cells A through G and places them in an existing worksheet named
"Children". I want this filtered data to start in cell A7 and the data to be
sorted in ascending order to data stored in Column D from the original
selected range.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 126
Default Return results based on multiple criteria

Try this:

Select a cell in your database.
Turn on the Macro Recorder.
Click on DataFilterAutoFilter
Go to the Top of Col G.
Click on the arrow and select "Baby Boy"

Copy the rows and paste into your sheet("Children")
Turn off the recorder and study it.

See if you can get the code to include "Teenager" (AND)

Activate Sheet "Children"
Turn on you recorder and sort the new records.
Study the code.

"Bryce" wrote:

I really realy (1) need some VBA code for these steps:

selecting range A2:G8500within existing worksheet named "Master File"

then, looking at data in row G and if meets one of the two or three diff.
text inputs (i.e. "Baby Boy" or "Teenager") then it returns only that related
data row in cells A through G and places them in an existing worksheet named
"Children". I want this filtered data to start in cell A7 and the data to be
sorted in ascending order to data stored in Column D from the original
selected range.

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
return multiple rows of data based on criteria steve_sr2 Excel Worksheet Functions 8 May 20th 23 07:47 PM
Match / Index multiple criteria return multiple results Marty Excel Worksheet Functions 2 May 22nd 10 01:49 PM
Extract multiple results based on multiple criteria tara657 Excel Worksheet Functions 4 January 24th 09 03:35 AM
Results based on multiple criteria Craig Excel Discussion (Misc queries) 4 October 29th 08 04:14 PM
V lookup with 2 criteria to return results for multiple columns JenL Excel Worksheet Functions 2 September 20th 07 10:04 PM


All times are GMT +1. The time now is 10:56 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"