If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > PC based Database Applications > Microsoft Excel > Excel - Criteria results duplication

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 05-24-04, 01:35
gyp23 gyp23 is offline
Registered User
 
Join Date: May 2004
Posts: 1
Question Excel - Criteria results duplication

Hi all

Have been pondering over the following for the past few days, and as a result, developed a bald spot and permanent frown. Can you please help!

In one Excel tab I have a list of details - 1 record per row.
(e.g. A1:E1 = First Name, Last Name, Phone, DOB, Size)

Hypothetically I have 50 records. (i.e. database range = A1:E50)

What I want is for any records (i.e. rows) on this initial tab, where the criteria matches B="Smith", D="01/01/70" and E="14", I want the entire row contents to be duplicated on a second tab within the worksheet.

This second tab will be a simple report of my search results matching my criteria, and will display the entire 'record' - which includes information in the relative columns. i.e. the criteria only applies to columns B, D & E, however I want my second tab to report cells A, B, C, D & E.

Furthermore, in my hypothetical records & criteria, 6 records match and need to be reported.

I hope this makes sense, and would really appreciate an answer ASAP!

Cheers,
Georgia
Reply With Quote
  #2 (permalink)  
Old 05-24-04, 10:40
surfacesys surfacesys is offline
Registered User
 
Join Date: Mar 2004
Location: Greenville, SC
Posts: 271
Talking

I have 2 programs where I do this exact same thing.

On your first Sheet is your list. Copy the titles of each row (just the titles).
Go to Sheet 2 and paste onto cell A2. Also, paste those same titles in cell A4.
You should have something that looks like:
NAMEPHONECORDLESSBEEPERADDRESSSS#NAMEPHONECORDLESSBEEPERADDRESSSS#

Now you are ready to go. Go to Data... Filter... Advanced Filter.
Under action press the radio button... Copy to another location.
Under list range set the range for your list on Sheet1. Many times I give the range of cells a name like "Addresses". Then I just type the name.
Under Criteria Range set it to A2:F4 (in the example above)
Under Copy To set the range to A4:F30
When you hit OK button your results will transfer.

Hope this helps!
Michael
__________________
Gotta to do some code
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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