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


Hi everyone, hope someone can help:

I have a worksheet called "data" which contains a range of values, ro
A contains the header values and the data within the sheet has th
defined name "database".

I have another sheet called "Report", which contains in cell B1 a dro
down list of all the known dates in the "data". cell B2 contains a dro
down list of all the known "Names" in the "data" worksheet.

What I would like to do on the sheet called "report" is bring acros
all the data which matches the values selected in cell B1 and B2.

Let me know if that isnt explained well.
Thanks for your time
Love Amy x

--
AmyTaylo
-----------------------------------------------------------------------
AmyTaylor's Profile: http://www.excelforum.com/member.php...fo&userid=2097
View this thread: http://www.excelforum.com/showthread.php?threadid=56019

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default Copying a range based on criteria

Start on sheet Data
Turn on the macro recorder and then step through the Data=Filter=Advanced
Filter. Select the database, select copy to another location. Select the
revised criteria range (as shown below). Select the new location on Report.
Execute the query. Turn off the macro recorder and look at the recorded
code.

You will need to change your layout on sheet2 like

B1: Date (change to the header name of the date column)
C1: Name (change to the header name of the name column)
B2: Dropdown with Dates
C2: Dropdown with Names

Make your criteria range Report!B1:C2

--
Regards,
Tom Ogilvy


"AmyTaylor" wrote:


Hi everyone, hope someone can help:

I have a worksheet called "data" which contains a range of values, row
A contains the header values and the data within the sheet has the
defined name "database".

I have another sheet called "Report", which contains in cell B1 a drop
down list of all the known dates in the "data". cell B2 contains a drop
down list of all the known "Names" in the "data" worksheet.

What I would like to do on the sheet called "report" is bring across
all the data which matches the values selected in cell B1 and B2.

Let me know if that isnt explained well.
Thanks for your time
Love Amy xx


--
AmyTaylor
------------------------------------------------------------------------
AmyTaylor's Profile: http://www.excelforum.com/member.php...o&userid=20970
View this thread: http://www.excelforum.com/showthread...hreadid=560190


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
Copying from one TAB to another based on certain criteria Thomas New Users to Excel 1 February 14th 09 01:34 AM
Copying a range based on criteria AmyTaylor[_65_] Excel Programming 0 July 11th 06 04:47 PM
Copying data from one worksheet to another based on criteria Caatt Excel Discussion (Misc queries) 1 June 15th 06 10:19 AM
copying cells based on criteria tdro Excel Worksheet Functions 0 June 15th 05 02:17 PM
Copying whole rows based upon one criteria kirbster1973 Excel Discussion (Misc queries) 2 May 26th 05 10:00 PM


All times are GMT +1. The time now is 02:45 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"