![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
New Member
Join Date: Apr 2002
Posts: 5
|
i Have a range, A2:D250 on a sheet named "value". In this range, column A lists client names, and column D lists items (ie: Apples). On a sheet named "data" (in the same workbook),I need to lookup all clients who bought apples. But i don't neeed a count, i need the actual client names copied over and into "data". So if 6 people bought apples, I need to those names to copy over. please help!
|
|
|
|
|
|
#2 |
|
New Member
Join Date: Mar 2002
Posts: 34
|
Could you not just use an autofilter in the other workbook, and then if needed copy and paste the results to another page?
For Example, products purchased on the second sheet is in column A with client's info in suceeding columns on the same row. Run Autofilter for column A and select apples in the drop down box. I'm not sure if you're looking for a specific formula, but I hope it might help. -Dave |
|
|
|
|
|
#3 |
|
New Member
Join Date: Apr 2002
Posts: 5
|
not, that i can see... the Data page actually contains a lot more, and does a mail merge based off of other data. So the return of Clients buying Apples is supposed to be a self-updating paragraph on a form letter...
|
|
|
|
|
|
#4 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Austin, Texas USA
Posts: 11,654
|
See my 2002-04-25 15:38 posting at http://www.mrexcel.com/board/viewtop...c=6280&forum=2. You could employ this same approach.
|
|
|
|
|
|
#5 |
|
New Member
Join Date: Apr 2002
Posts: 5
|
thanks for your reply Mark, but the problem is how could the approach you suggest be automated to work with the mail merge? It's not that the Data... solution was not a viable solution to the one off, but that i couldn't see a way to make it work with an excel to excel mail merge. ....
|
|
|
|
|
|
#6 | |
|
MrExcel MVP
Join Date: Feb 2002
Location: Austin, Texas USA
Posts: 11,654
|
Quote:
|
|
|
|
|
|
|
#7 |
|
New Member
Join Date: Apr 2002
Posts: 5
|
Sorry, was not clear there... The Clients and Apples is just one example. The mail merge will be going through (with no user intervention) and spin off 278 letters, all customized with data from the spreadsheet. Clients who purchased Apples, IBMs, Toshibas, HPs, Compaqs, Sonys, etc-- all these will have to do the same thing requested for Clients-Apples. The solution you suggested was good to get the list for Clients-Apples, but I cannot get it to fit in with the automated mail merge aspect, eg: too much user intervention. Hope that clarifies?
|
|
|
|
|
|
#8 | |
|
MrExcel MVP
Join Date: Feb 2002
Location: Austin, Texas USA
Posts: 11,654
|
Quote:
[ This Message was edited by: Mark W. on 2002-04-26 13:40 ] |
|
|
|
|
|
|
#9 |
|
MrExcel MVP
Join Date: Feb 2002
Location: The Hague
Posts: 50,319
|
For a formula-based retrieval of multiple lookup values, see my contrib at:
http://www.mrexcel.com/board/viewtop...c=3146&forum=2 |
|
|
|
|
|
#10 |
|
New Member
Join Date: Apr 2002
Posts: 5
|
Hi Mark. No, in the first reply (made before you posted), i had specified mail merge.
Thank you for your suggestions though-- they have given me food for thought on another project under construction. |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|