Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35
Default Conditional extract from database

My workbook contains membership records for a club. The main worksheet is a
register (database) containing all the relevant details of each membership,
including whether the current subscription has been paid.

When I need to print a list of, say, all the members who have not paid yet
OR all the members who do not have email addresses, I do it the long way - by
sorting the register worksheet on the appropriate column and then copying the
required records to to a new worksheet. I then modify the worksheet to
display what is needed and print it. Then I have to sort the register back
into main key order.

Is there any shorter method of doing this, perhaps by inserting an array
formula into a new worksheet? I could probably write a VBA routine to do
this, but as I am still a beginner with VBA I would prefer to find an
existing solution.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35
Default Conditional extract from database



"Hershmab" wrote:

My workbook contains membership records for a club. The main worksheet is a
register (database) containing all the relevant details of each membership,
including whether the current subscription has been paid.

When I need to print a list of, say, all the members who have not paid yet
OR all the members who do not have email addresses, I do it the long way - by
sorting the register worksheet on the appropriate column and then copying the
required records to to a new worksheet. I then modify the worksheet to
display what is needed and print it. Then I have to sort the register back
into main key order.

Is there any shorter method of doing this, perhaps by inserting an array
formula into a new worksheet? I could probably write a VBA routine to do
this, but as I am still a beginner with VBA I would prefer to find an
existing solution.


More information:
What I am looking for is a sort of COPYIF function that will return an
array. The function would:
- search through one column of the database
- wherever it found a cell meeting the specified condition copy the
corresponding row (or specified call-range) into the next available row of a
specified worksheet.

So instead of sorting on the column containing the condition it would search
through the database in situ and make a compact copy of all the matching rows
in a new worksheet.
  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,346
Default Conditional extract from database

Hi,

Choose Data, Filter, AutoFilter. Open the autofilter dropdown on any column
you want to look at and choose (blanks). You can print the results and the
filters don't show. To return to seeing everything just open the dropdown
and choose "all"
--
If this helps, please click the Yes button.

Cheers,
Shane Devenshire


"Hershmab" wrote:

My workbook contains membership records for a club. The main worksheet is a
register (database) containing all the relevant details of each membership,
including whether the current subscription has been paid.

When I need to print a list of, say, all the members who have not paid yet
OR all the members who do not have email addresses, I do it the long way - by
sorting the register worksheet on the appropriate column and then copying the
required records to to a new worksheet. I then modify the worksheet to
display what is needed and print it. Then I have to sort the register back
into main key order.

Is there any shorter method of doing this, perhaps by inserting an array
formula into a new worksheet? I could probably write a VBA routine to do
this, but as I am still a beginner with VBA I would prefer to find an
existing solution.

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35
Default Conditional extract from database



"Shane Devenshire" wrote:

Hi,

Choose Data, Filter, AutoFilter. Open the autofilter dropdown on any column
you want to look at and choose (blanks). You can print the results and the
filters don't show. To return to seeing everything just open the dropdown
and choose "all"
--
If this helps, please click the Yes button.

Cheers,
Shane Devenshire


Great, it works almost exactly as I want.

(For some reason I never think of using Filter. In fact I have used it
unknowingly - in running Word Mailmerges from my Excel database!)

The thing about getting this sort of help is that it always raises more
demands. In this case I am producing exception reports that I need to
distinguish from the normal complete printout of the database. So when
Autofilter is in effect:

(1) Can the filter conditions be automatically shown in the print header?

(2) Can certain groups of columns be omitted without having to hide each one
individually?
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
I want to extract info from a database on sheet1 to sheet2. Caz22 New Users to Excel 6 July 7th 08 04:51 PM
Extract data from another database Montu Excel Worksheet Functions 2 February 22nd 08 01:20 AM
Extract data from database Montu Excel Worksheet Functions 8 February 19th 08 01:55 PM
Manipulation of Data extract from Access Database Chase Excel Discussion (Misc queries) 2 July 19th 07 07:42 AM
how to extract a figure from a database mercialex Excel Discussion (Misc queries) 1 March 31st 06 03:15 PM


All times are GMT +1. The time now is 04:54 PM.

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"