Return Multiple Rows From Lookup & Search - Excel Help & Excel Macro Help
SEARCH ENTIRE SITE LOADING..

Excel Help & Excel Best Practices Forums

 

Proudly Affiliated With: Intelligent Converters & AnalyserXL <Affiliate Program & ExcelUser Affiliate>

 

SPECIALS PAGE FOR BARGAINS | FREE EXCEL TRAINING | FREE CUSTOM FUNCTIONS ADD-IN


Go Back Excel Help & Excel Macro Help > NEW! HIRE HELP
HOME Register Forum Help Calendar Search For Today's Posts Mark Forums Read

Reply

Return Multiple Rows From Lookup & Search



Javascript DHTML Drop Down Menu Powered by dhtml-menu-builder.com

Create Excel dashboards quickly with Plug-N-Play reports.


 
Thread Tools Search this Thread
Old 3 Weeks Ago
Intelligent Converters
FREE DOWNLOADS
File/Password Recovery
rhodie5803 rhodie5803 is offline
I agreed to these rules
 
I'm a Spammer: NO
MS Office Version: 2003 English
Op System: Windows XP
Assumed Experience: Poor (know the very basics)
Join Date: 23rd October 2009
English is 1st Language: Yes
Posts: 4 -- Threads: 0
Return Multiple Rows From Lookup & Search

Hello,

I was wondering if anyone may be able to help.
I am required to produce a list of contractors names and personal details such as email addresses and postal addresses on a monthly basis. Currently this list contains anywhere between 1-2000 people. To create the required list I am have to sort through various other employee lists and filter out the people I require. Each employee list may contain as many as 1000 or so employees. (Currently I have around 17 employee lists...)
Previously I was able to use a VLOOKUP "cheat sheet" that I created to assist in filtering out the people I required etc. However my task has recently changed and I am now required to provide both primary, secondary and any additional contact details for each member of my list. I can get the source data without any hassles but where I am having trouble is filtering out only those members I need. I noticed that VLOOKUP only provides the first row of data for each individual I searched for. I believe there are ways to provide the either the first or last row but ideally I require all rows of data for each individual I am searching for.
I have included a rough example of the sort of spreadsheet I am hoping for. Basically it consists of three areas 1 tab for the employee's I need, another for my source data and the third as a results tab. I find it easier to have my results on a seperate tab so I can copy/paste all etc.
If anyone would be able to help create this workbook for me I would be willing to pay $10 for a working copy. If this seems a little low for the task let me know and we can negotiate another price.

Thanking you

Attached Files. REMINDER! OzGrid accepts no responsibility for ANY adverse effects as a result from downloading attached files. ALWAYS run an up-to-date virus scan and disable macros.
File Type: xls Example Employee Data Sheet.xls (61.5 KB, 13 views)
__________________
ADS BY OZGRID. FREE DOWNLOADS SmartVBA | SmartVB6 | CodeVBA | CodeVB6 | Code Generator Pro | TraderXL Pro Package. MORE..
Print [Post / Thread] Reply With Quote
Old 3 Weeks Ago
Dave Hawley's Avatar
Dave Hawley Dave Hawley is offline
Administrator
 
I'm a Spammer: NO
MS Office Version: 2007 English
Op System: Windows Vista
Assumed Experience: Above Average
Join Date: 24th January 2003
English is 1st Language: Yes
Location: Australia
Posts: 49,234 -- Threads: 15169
Re: Return Multiple Values From Either A Single Or Multiple Search

If you fill the blanks between your names and employee id you can base a PivotTable off a Dynamic Named Range and place the employee id as the report filter. See attached example.

If filling blanks is a big task, see Fill Blanks With Cell Above
Attached Files. REMINDER! OzGrid accepts no responsibility for ANY adverse effects as a result from downloading attached files. ALWAYS run an up-to-date virus scan and disable macros.
File Type: xls Example Employee Data Sheet.xls (50.5 KB, 11 views)
Print [Post / Thread] Reply With Quote
Old 3 Weeks Ago
Intelligent Converters
FREE DOWNLOADS
File/Password Recovery
rbrhodes rbrhodes is offline
Have VBA, will travel
 
I'm a Spammer:
MS Office Version: 97 forwards
Op System: Win ME to Win XP
Assumed Experience: ...still learning...
Join Date: 24th December 2004
English is 1st Language: Yes
Location: Nanaimo, Vancouver Island, British Columbia, Canada
Posts: 1,701 -- Threads: 5
Re: Return Multiple Rows From Lookup & Search

Hey Daves' on it, but I'll have a look as well...
__________________
Cheers,

dr

http://www.members.shaw.ca/ExcelVBA
Print [Post / Thread] Reply With Quote
Old 3 Weeks Ago
Intelligent Converters
FREE DOWNLOADS
File/Password Recovery
rhodie5803 rhodie5803 is offline
I agreed to these rules
 
I'm a Spammer: NO
MS Office Version: 2003 English
Op System: Windows XP
Assumed Experience: Poor (know the very basics)
Join Date: 23rd October 2009
English is 1st Language: Yes
Posts: 4 -- Threads: 0
Re: Return Multiple Rows From Lookup & Search

Hi Guys,

Thanks for replying.

Dave, I have never really played with pivot tables but the only problem I could see with your example is that I would need to manually select each individual that I was looking for which in some cases can easliy be in the hundreds of people.

In my proper workbook I managed to add the autofill plugin which works brilliantly. (I can't remember who created it here but I will post credit when I find out who. It is an essential little tool, thanks

The reason I was hoping for a workbook with different tabs is so as I get sent a list of names etc I can just dump in the employee ID's in one tab and the source data in the other and then grab the results in the third tab.

Basically I'm trying to streamline the whole process.

I'll keep playing with your pivot table and I will try it at work tomorrow to see what I can do with it.

Thanks for the help so far.

Cheers

Rhodie
__________________
ADS BY OZGRID. FREE DOWNLOADS SmartVBA | SmartVB6 | CodeVBA | CodeVB6 | Code Generator Pro | TraderXL Pro Package. MORE..
Print [Post / Thread] Reply With Quote
Old 3 Weeks Ago
Dave Hawley's Avatar
Dave Hawley Dave Hawley is offline
Administrator
 
I'm a Spammer: NO
MS Office Version: 2007 English
Op System: Windows Vista
Assumed Experience: Above Average
Join Date: 24th January 2003
English is 1st Language: Yes
Location: Australia
Posts: 49,234 -- Threads: 15169
Re: Return Multiple Rows From Lookup & Search

Quote:
that I would need to manually select each individual that I was looking for which in some cases can easliy be in the hundreds of people.
If you have a list of names or id's the selection on multiple names/id's can be automated.
Print [Post / Thread] Reply With Quote
Old 3 Weeks Ago
Intelligent Converters
FREE DOWNLOADS
File/Password Recovery
rhodie5803 rhodie5803 is offline
I agreed to these rules
 
I'm a Spammer: NO
MS Office Version: 2003 English
Op System: Windows XP
Assumed Experience: Poor (know the very basics)
Join Date: 23rd October 2009
English is 1st Language: Yes
Posts: 4 -- Threads: 0
Talking Re: Return Multiple Rows From Lookup & Search

Quote:
Originally Posted by Dave Hawley
If you have a list of names or id's the selection on multiple names/id's can be automated.

Hi Dave,

Sorry if I am making this hard but how would I automate the selection of names or ID's?
Once again sorry about this but it's my first time with pivot tables

Hey!!.... who just said NOOB? I'll find who ever just said it... ha ha ha just kidding

Thanks again guys.
__________________
ADS BY OZGRID. FREE DOWNLOADS SmartVBA | SmartVB6 | CodeVBA | CodeVB6 | Code Generator Pro | TraderXL Pro Package. MORE..
Print [Post / Thread] Reply With Quote
Old 3 Weeks Ago
Dave Hawley's Avatar
Dave Hawley Dave Hawley is offline
Administrator
 
I'm a Spammer: NO
MS Office Version: 2007 English
Op System: Windows Vista
Assumed Experience: Above Average
Join Date: 24th January 2003
English is 1st Language: Yes
Location: Australia
Posts: 49,234 -- Threads: 15169
Re: Return Multiple Rows From Lookup & Search

With this code
VB: AutoLinked keywords will cause extra spaces before keywords. Extra spacing is NOT transferred when copy/pasting, but IS if the keyword uses "quotes".
Sub ShowHideNames() Dim pt As PivotTable, pf As PivotField Dim pi As PivotItem Set pt = Sheet1.PivotTables("PivotTable1") pt.ManualUpdate = True Set pf = pt.PageFields(" Name") Application. ScreenUpdating = False With WorksheetFunction For Each pi In pf.PivotItems pi.Visible = .CountIf(Range("Names"), pi.Value) Next End With pt.ManualUpdate = False Application.ScreenUpdating = True End Sub
Just make sure the PivotTable is called "PivotTable1" and you have a Named Range called "Names" with all the names you wish to show on the PivotTable.

See working example attached.
Attached Files. REMINDER! OzGrid accepts no responsibility for ANY adverse effects as a result from downloading attached files. ALWAYS run an up-to-date virus scan and disable macros.
File Type: xls Example Employee Data Sheet.xls (86.5 KB, 23 views)
Print [Post / Thread] Reply With Quote
Old 2 Days Ago
Intelligent Converters
FREE DOWNLOADS
File/Password Recovery
rhodie5803 rhodie5803 is offline
I agreed to these rules
 
I'm a Spammer: NO
MS Office Version: 2003 English
Op System: Windows XP
Assumed Experience: Poor (know the very basics)
Join Date: 23rd October 2009
English is 1st Language: Yes
Posts: 4 -- Threads: 0
Re: Return Multiple Rows From Lookup & Search

Hi Dave,

Thanks for your help with this.
I can see that it works which is great, I will have to do a bit of study on pivot tables etc to get it to work how I need it.
But thanks again for your time and effort.
Please let me know how you would like to be paid for this.

Cheers

Rhodie
__________________
ADS BY OZGRID. FREE DOWNLOADS SmartVBA | SmartVB6 | CodeVBA | CodeVB6 | Code Generator Pro | TraderXL Pro Package. MORE..
Print [Post / Thread] Reply With Quote
Old 2 Days Ago
Dave Hawley's Avatar
Dave Hawley Dave Hawley is offline
Administrator
 
I'm a Spammer: NO
MS Office Version: 2007 English
Op System: Windows Vista
Assumed Experience: Above Average
Join Date: 24th January 2003
English is 1st Language: Yes
Location: Australia
Posts: 49,234 -- Threads: 15169
Re: Return Multiple Rows From Lookup & Search

PayPal, please. Send money to paypal@ozgrid.com, thanks.
Print [Post / Thread] Reply With Quote
Reply Lifetime Upgrade To Ad Free Styles

   « PREVIOUS Find Matches In Columns Then Sum Values In Rows || Creating Dynamic Array Name NEXT »
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT +9. The time now is 22:44.


Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Ozgrid is Not Associated With Microsoft. Ozgrid Retains the Rights to ALL Posts and Threads