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 Mar 8th, 2002, 07:55 AM   #1
Claudette
New Member
 
Join Date: Mar 2002
Location: Boston
Posts: 13
Default

I have a worksheet with a list of parts.* the first column contains
the Part Number.** The second column contains one of several components.*
The third column contains the quantity of that component that goes into that
part.



Part Number---Component---QtyofComponent

HL-45S--------M67O-----------3

HL-45S--------SSS------------2

HL-45S--------LABRXX---------10

CVA42---------M67O-----------4

CVA42---------SSS------------4

CVA42---------LABRXX---------10

CVA42---------SOAP-----------1






Then I have a worksheet which lists the part number in column A, and has
each possible component as a column heading in columns J, K, L, and M.**
There are four possible components.* Not all parts will contain all
components.* The components for each part sometimes are listed in different
order.



Here's the second workbook and what it should end up looking like:



























Part Number

M67O

SSS

LABRXX

SOAP

CVA42

4

4

10

1

HL-45

3

2

10








How can I make a macro that

1. Grabs the Part# and component from WrkBk1, then looks for the row in WrkBk2
that contains the same part number

2.* Then looks for the column in WrkBk2 that contains the component
name as the heading and fills in teh quantity in the intersection of the
component column and the partnumber row.



Help!!!!!!!!!!!!!!!!!



I have many ideas...such as creating variables of each of the two values
i'm searching for, then when I find them, recording the row location of the
first one, then the column location of the second one as another two variables,
then telling it to go to cell(var3,var4) blah blah.* I also thought
I could line all of the Partnumbers up by component, and simply paste all
the values for that component at once, then doing a separate run for the
next component, etc, thereby reducing the variables and the general confusion
of it all.



Thanks so much everyone!




[ This Message was edited by: Claudette on 2002-03-08 07:04 ]
Claudette is offline   Reply With Quote
Old Mar 8th, 2002, 08:10 AM   #2
Barrie Davidson
MrExcel MVP
 
Barrie Davidson's Avatar
 
Join Date: Feb 2002
Location: Winnipeg
Posts: 2,330
Default

Claudette, would a pivot table work meet your requirements?
__________________
Barrie Davidson

"You're only given a little spark of madness. You mustn't lose it." - Robin Williams
Barrie Davidson is offline   Reply With Quote
Old Mar 8th, 2002, 08:37 AM   #3
Claudette
New Member
 
Join Date: Mar 2002
Location: Boston
Posts: 13
Default

I don't know, I've never used a pivot table? what is it?
Claudette is offline   Reply With Quote
Old Mar 8th, 2002, 08:39 AM   #4
Barrie Davidson
MrExcel MVP
 
Barrie Davidson's Avatar
 
Join Date: Feb 2002
Location: Winnipeg
Posts: 2,330
Default

Quote:
On 2002-03-08 07:37, Claudette wrote:
I don't know, I've never used a pivot table? what is it?
For an introduction to pivot tables, have a look at:

http://ca.geocities.com/b_davidso/We...vottable1.html

Let me know if you need any further information.

Regards,
__________________
Barrie Davidson

"You're only given a little spark of madness. You mustn't lose it." - Robin Williams
Barrie Davidson is offline   Reply With Quote
Old Mar 8th, 2002, 08:51 AM   #5
Mark W.
MrExcel MVP
 
Join Date: Feb 2002
Location: Austin, Texas USA
Posts: 11,654
Default

Quote:
On 2002-03-08 07:37, Claudette wrote:
I don't know, I've never used a pivot table? what is it?
Also, see the Excel Help topic for "PivotTables: Analyzing data interactively". The table component labels are linked to a descriptive popup text box.
Mark W. 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:21 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