MrExcel Message Board

Go Back   MrExcel Message Board > Question Forums > Excel Questions

Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only.

Reply
 
Thread Tools Display Modes
Old Apr 3rd, 2002, 07:17 AM   #1
nook
New Member
 
Join Date: Apr 2002
Location: .de
Posts: 2
Default

hello,

I'm having a hard time figuring out the
following problem:

I have customer information (text) in
column A, one per line. And I have product
information (text) in column B, one per
line; a typical excerpt would look like

Joe hammer
Joe nails
Joe paint
Joe bucket
Eve hammer
Eve needles
Jim nails
Jim paint
Jim needles

What I'm trying to achieve is a row - or,
when the alphabet runs out, multiple rows,
based on the data as outlined above:

Joe hammer nails paint bucket
Eve hammer needles
Jim nails paint needles

where every product gets its own cloumn within
the row.

I assume I'll be needing a macro for this,
and that macro would have to check how often
a single customer entry exists in the A
cloumn (indicating how many products
altogether are associated with that customer),
and copy the current value of column B into
the next free column beside the customer
designation.
Also, I believe that for large 'orders', the
Excel approach of A,B,..,Z is not enough; my
current project has some 65k customer/order
pairs, and Joe alone has ordered more than
260 products.. hence I _assume_ that more
than one 'Joe' column will be necessary.

[heh - English is not my native language, and
I doubt I'm making myself understood]

Is this at all possible?

nook is offline   Reply With Quote
Old Apr 3rd, 2002, 10:42 AM   #2
eliW
Board Regular
 
eliW's Avatar
 
Join Date: Mar 2002
Posts: 1,805
Default

Hi nook,
PIVOTE TABLE is the ultimate solution for these kind of problems!
Put Name in row, Product in Column and Data (count of Product), and your work is done instantly.
Regards,
Eli


[ This Message was edited by: eliW on 2002-04-03 09:43 ]
eliW is offline   Reply With Quote
Old Apr 4th, 2002, 03:39 AM   #3
nook
New Member
 
Join Date: Apr 2002
Location: .de
Posts: 2
Default

Thanks Eli,
that was a big help - at least now I can
consolidate the products, but it's still
a little more complicated..

As ist is now, I get the total of each
product for each customer;


hammer needles paint bucket
Joe | 1 0 1 1
Eve | 1 1 0 0
Jim | 0 1 1 0


which takes up a lot of space since there
are so many '0's (remember, the real table
is *way* bigger), and I'd rather not have the
pivot table assistant (wizard, I think, in
the US version) give me the sum totals of
products, but the _name_of the product, as in


Joe | hammer nails paint bucket
Eve | hammer needles
Jim | nails paint needles


..heh. I'm not making sense.
Anyway, I haven't found a way to tell the
pivot table, err, wizard, to give me the
product names and not to bother giving me
the totals.
I'm sorry to be such a nuisance, but I hope
someone has encountered a similar problem
before, and has found a way to solve it.

nook is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
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 On

Forum Jump


All times are GMT -4. The time now is 07:51 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
All contents Copyright 1998-2012 by MrExcel Consulting.
diabetic desserts recipes recipes Diabetic Soups Holiday Pizza Recipes Popcorn Recipes Recipes For Microwave Pasta Recipes Casserole Recipes Chili Recipes Curry Recipes Crockpot Recipes Apples Recipes Bread Recipes Vegetarian Recipes Vegetable recipes Desserts Recipes Appetizers Ethnic Recipes Meat Dishes Barbecue Recipes Sauces Recipes Marinade Recipes Low Fat Recipes Frugal Gourmet Kitchen Classics Recipes On The Grill Cook Books Seafood Recipes Cajun Recipes Breads Low Fat Low Fat Breads Bread Machine Recipes Yeast Breads Quick Breads Fat Free Vegetarian Salad Recipes Eggplant Recipes Radish Recipes Tomato Recipes Jalapeno Recipes Potato Recipes Lettuce Recipes Cabbage Recipes Beans Ambrosia Recipes Biscotti Recipes Desserts Low Fat Cookie Recipes Cheesecake Recipes Cake Recipes Pie Recipes Muffin Recipes Custard Recipes Best Appetizers Appetizers Low Fat Salsa Recipes Dip Recipes International Recipes Afghan Recipes Alaska Recipes French Recipes German Recipes Greek Recipes Italian Recipes Spanish Recipes Thai Recipes Korean Recipes Chinese Recipes Mexican Recipes Indian Recipes Beef Recipes Pork Pork & Ham Pork Butts Pork Chop Recipes Pork Ribs Rulled Pork Poultry Recipes Stews Recipes Ground Beef Barbecue Grill Barbecue Smoker All Purpose Sauce BBQ Sauce Barbecue Sauce Carolina BBQ Sauce Pickle Recipes Marinades Smoking Low Fat Appetizers & Dips Low Fat Breakfast Low Fat Cakes Low Fat Cheesecakes Low Fat Cookies Low Fat Desserts Low Fat Fish & Seafood Low Fat Meats Low Fat Pasta Low Fat Pies Low Fat Salads Low Fat Sandwiches Low Fat Sauces & Condiments Low Fat Sides Low Fat Soups Low Fat Vegetarian Baker's Dozen Taste of Home Recipe Book Bon Appetit Cookbook Blacktie Cookbook Buster Cook Book Cookbook USA Cook Book Cook Book Sara's Cookbook Sara's Cookbook Appetizers and Dips Poultry recipes Diabetic recipes Holiday recipes Miscellaneous recipes 110 recipes 1986 Usenet cookbook 2900 recipes Cyberrealm recipes Great sysops of world Specialty recipes Ceideburg recipes Cheese recipes Chili recipes Fruits recipes Garlic recipes Great chefs of NY Londontowne recipes Raisins recipes Recipes for kids US Food Vegetarian recipes Bread recipes Drinks Meat Dishes Brisket recipes Caribou recipes Chicken recipes Filet mignons recipes Pork recipes Swordfish recipes Turkey recipes Pasta recipes Uncategorized recipes Ethnic recipes Canada recipes English recipes Ethiopia recipes Germany recipes Greece recipes Mexican recipes Philippines recipes Welsh recipes Microwave recipes Soups recipes Vegetable recipes Asparagus recipes Barley recipes Brown rice recipes Lentil recipes Mushrooms recipes Salads recipes Wild rice Desserts recipes Cakes recipes Chocolate recipes Cookies recipes Ice cream recipes