Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
pgc pgc is offline
external usenet poster
 
Posts: 11
Default getting rows out of a data base

hi i have a data base looking something like this
Name Training topics training needed training completed
Paul Hilti Gun Yes NO
Paul Paslode Yes Yes
Steve Hilti Gun Yes NO
Steve Paslode Yes NO
on a seperate worksheet i have this
List box containing all names Training topics Training completed
Steve


I want the "training topics" column and "training completed" column to
show the rows in the data base based on which name i pick from the list
box please help
Ive tried Index / Match but i only get the first row ie Hilti and there
are more than two items in the "Training needs" column
IM realy struggling
Thanks

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 221
Default getting rows out of a data base

You don't need a listbox, or even any code at all. Instead, use Data
Validation and Vlookup. Here's a sample workbook:
http://www.myexpertsonline.com/freedls/pricelist.xls

Here's info on Data Validation:
http://www.officearticles.com/excel/...soft_excel.htm

Here's info on Vlookup:
http://www.officearticles.com/excel/...soft_excel.htm

Hope it helps!
*******************
~Anne Troy

www.OfficeArticles.com
www.MyExpertsOnline.com


"pgc" wrote in message
oups.com...
hi i have a data base looking something like this
Name Training topics training needed training completed
Paul Hilti Gun Yes NO
Paul Paslode Yes Yes
Steve Hilti Gun Yes NO
Steve Paslode Yes NO
on a seperate worksheet i have this
List box containing all names Training topics Training completed
Steve


I want the "training topics" column and "training completed" column to
show the rows in the data base based on which name i pick from the list
box please help
Ive tried Index / Match but i only get the first row ie Hilti and there
are more than two items in the "Training needs" column
IM realy struggling
Thanks



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 20
Default getting rows out of a data base

Hi pgc,

You could write some complicated VLOOKUPS or a bit of VBA, but
this sounds like a good job for a Pivot Table.

Change the NO values to 0 and Yes yo 1
Format the data using the custom number format
"Yes";"Yes";"No"

Select the table, including headings.
If you want the selection to grow with the data list,
select the whole columns or use a dynamic range.

Use the menu item Data - Pivot Table... to create
a Pivot Table with;
Name as a Page field
Training Topics as a row field
Training Needed as a data field
Training Completed as a data field

Format both data fields with the custom number format
"Yes";"Yes";"No"

Use the EFutil add-in at http://edferrero.m6.net/vba.shtml
to change the alignment of the data fields
(makes the table look better)

Go to http://edferrero.m6.net/tutorials.shtml if
you want to know more (with pictures!)

Ed Ferrero
http://edferrero.m6.net


hi i have a data base looking something like this
Name Training topics training needed training completed
Paul Hilti Gun Yes NO
Paul Paslode Yes Yes
Steve Hilti Gun Yes NO
Steve Paslode Yes NO
on a seperate worksheet i have this
List box containing all names Training topics Training completed
Steve


I want the "training topics" column and "training completed" column to
show the rows in the data base based on which name i pick from the list
box please help
Ive tried Index / Match but i only get the first row ie Hilti and there
are more than two items in the "Training needs" column
IM realy struggling
Thanks



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default getting rows out of a data base

Solution suggested does not return multiple rows as requested by the OP.

--
Regards,
Tom Ogilvy


"Anne Troy" wrote in message
news:70281$42bbb8c7$97c5108d$3222@allthenewsgroups .com...
You don't need a listbox, or even any code at all. Instead, use Data
Validation and Vlookup. Here's a sample workbook:
http://www.myexpertsonline.com/freedls/pricelist.xls

Here's info on Data Validation:

http://www.officearticles.com/excel/...soft_excel.htm

Here's info on Vlookup:

http://www.officearticles.com/excel/...soft_excel.htm

Hope it helps!
*******************
~Anne Troy

www.OfficeArticles.com
www.MyExpertsOnline.com


"pgc" wrote in message
oups.com...
hi i have a data base looking something like this
Name Training topics training needed training completed
Paul Hilti Gun Yes NO
Paul Paslode Yes Yes
Steve Hilti Gun Yes NO
Steve Paslode Yes NO
on a seperate worksheet i have this
List box containing all names Training topics Training completed
Steve


I want the "training topics" column and "training completed" column to
show the rows in the data base based on which name i pick from the list
box please help
Ive tried Index / Match but i only get the first row ie Hilti and there
are more than two items in the "Training needs" column
IM realy struggling
Thanks





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
How can I convert many rows of hyperlinks to BASE links? EnduroGal Excel Worksheet Functions 2 June 11th 09 11:03 PM
Merging rows base on value in other column Real Excel Discussion (Misc queries) 2 February 17th 08 07:52 PM
update a Pivot Table with new data added to the base data Graham Y Excel Discussion (Misc queries) 1 March 19th 07 02:12 PM
how do I print data in a spreadsheet data base to a mailing lable. Kevin Jamieson Excel Discussion (Misc queries) 0 March 15th 05 10:57 PM
how do I print data in a spreadsheet data base to a mailing lable. Database Excel Discussion (Misc queries) 0 March 15th 05 10:57 PM


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