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 May 14th, 2002, 09:32 AM   #1
pom1331
New Member
 
Join Date: May 2002
Location: Harvey, LA
Posts: 4
Default

I'm IT support for our Branch, and I'm trying to create a worksheet for one of my users in Purchasing.
He needs to look up a part, and figure out what DC Code that part is. To do this, he looks up the part and gets four prices (List, Fleet, Dealer, Dist.) He then needs to run three checks (% difference between List/Fleet, % diff. List/Dealer, % diff. List/Distributor). He then takes those three % differences, and cross references them with a chart to find out what DC code he needs.

I've created a spreadsheet that will allow him to type in the four costs, and it will automatically figure out the three % differences. I want to try and create a formula that will take these differences, and find the DC for him without him having to do it manually. Some of the criteria are the same.

Here is the lookup chart, so that you can see what it looks like.

Check 1 Check 2 Check 3 DC Code
0% 0% 0% 39
3% 18% 30% 45
5% 16% 24% 29
5% 21% 29% 30
5% 25% 35% 42
5% 26% 33% 31
5% 26% 33% 46
10% 16% 24% 41
10% 31% 38% 36
10% 31% 38% 44
10% 31% 39% 32
10% 31% 39% 37
10% 31% 39% 38
10% 31% 41% 40
30% 30% 30% 35

I've tried many different things, but while I'm a decent everyday user of Excel, I'm not skilled enough to figure this out.

I've tried using concatenation, INDEX and MATCH formulas, but I don't understand them well enough to rework the examples I've found in order to get them to work.

IS it a problem that the three values I'm getting and trying to use to look up the information are coming from formulas, and are not actual, static values?

Any help out there?

Thanks for even taking a look.

Chad
pom1331 is offline   Reply With Quote
Old May 14th, 2002, 09:38 AM   #2
Corticus
Board Regular
 
Corticus's Avatar
 
Join Date: Apr 2002
Location: Sarasota, FL
Posts: 1,539
Default

have you tried vlookup?
Corticus is offline   Reply With Quote
Old May 14th, 2002, 09:58 AM   #3
pom1331
New Member
 
Join Date: May 2002
Location: Harvey, LA
Posts: 4
Default

I've tried the lookup wizard, I wasn't too sure of VLOOKUP to try it on it's own. I had tried both VLOOKUP and the lookup wizard on another user's spreadsheet, and eventually we got the wizard to work.

I haven't found an example I felt comfortable enough in trying to rework, as most I have found don't deal with three different criteria that need to be matched.

I can do the easy formula's and know my way around Excel, but the heavy duty formula's are still beyond me. I'm learning though, I'm completely self taught on Excel.

Can you point me to a VLOOKUP example I might be able to reverse engineer and attempt to get it to work?

I really appreciate anything you can show me.

Thanks!
Chad
pom1331 is offline   Reply With Quote
Old May 14th, 2002, 10:07 AM   #4
Scott R
Board Regular
 
Join Date: Feb 2002
Location: WA state
Posts: 332
Default

What DC Code are you supposed to return when the 3 %'s are 10%, 31%, 38%? It looks like it could be 36 or 44.
Scott R is offline   Reply With Quote
Old May 14th, 2002, 10:09 AM   #5
pom1331
New Member
 
Join Date: May 2002
Location: Harvey, LA
Posts: 4
Default

One of the many problems I've run into with this. The nearest thing we can tell is that he would have to lookup the description field of the DC codes (which I've left off of the chart above for space constraints) and figure out which one it would be.

Make sense?

Thanks!
Chad
pom1331 is offline   Reply With Quote
Old May 14th, 2002, 03:32 PM   #6
Chris Davison
MrExcel MVP
 
Join Date: Feb 2002
Location: Millbank, London, UK
Posts: 1,790
Default

Quote:
On 2002-05-14 08:32, pom1331 wrote:
I'm IT support for our Branch, and I'm trying to create a worksheet for one of my users in Purchasing.
He needs to look up a part, and figure out what DC Code that part is. To do this, he looks up the part and gets four prices (List, Fleet, Dealer, Dist.) He then needs to run three checks (% difference between List/Fleet, % diff. List/Dealer, % diff. List/Distributor). He then takes those three % differences, and cross references them with a chart to find out what DC code he needs.

I've created a spreadsheet that will allow him to type in the four costs, and it will automatically figure out the three % differences. I want to try and create a formula that will take these differences, and find the DC for him without him having to do it manually. Some of the criteria are the same.

Here is the lookup chart, so that you can see what it looks like.

Check 1 Check 2 Check 3 DC Code
0% 0% 0% 39
3% 18% 30% 45
5% 16% 24% 29
5% 21% 29% 30
5% 25% 35% 42
5% 26% 33% 31
5% 26% 33% 46
10% 16% 24% 41
10% 31% 38% 36
10% 31% 38% 44
10% 31% 39% 32
10% 31% 39% 37
10% 31% 39% 38
10% 31% 41% 40
30% 30% 30% 35

I've tried many different things, but while I'm a decent everyday user of Excel, I'm not skilled enough to figure this out.

I've tried using concatenation, INDEX and MATCH formulas, but I don't understand them well enough to rework the examples I've found in order to get them to work.

IS it a problem that the three values I'm getting and trying to use to look up the information are coming from formulas, and are not actual, static values?

Any help out there?

Thanks for even taking a look.

Chad
Hi Chad,

the "description field" needs to be clarified in so far as if it is a determining factor, then you need to build that in with your 3 %ages somehow so a =VLOOKUP can differentiate.

Let's assume for the minute that there is no duplication of %ages... this should get you started :

If it were me, I'd "cheat" by inserting a column before the DC code which simply concatenates (glues together) the three %ages

So if your %ages are in A1, B1 and C1 respectively, in your new column D1, try :

=A1&B1&C1

this should give you weird-looking values like :

3.0018.0030.00 etc

You can then access the values of the formulae you've already provided which give him %age answers in a VLOOKUP :

(lets say they were sitting in J5,K5 and L5)

=VLOOKUP(J5&K5&L5,$D$1:$E$15,2,0)

as I say, this will bring back a DC code, but you need to factor in that description somehow for any repeat %ages

does this help ? come back if you feel it's making progress (or not also, of course!)





_________________
Hope this helps,
Chris
(Excel '97, Windows ME)

[ This Message was edited by: Chris Davison on 2002-05-14 14:34 ]
Chris Davison is offline   Reply With Quote
Old May 15th, 2002, 09:22 AM   #7
pom1331
New Member
 
Join Date: May 2002
Location: Harvey, LA
Posts: 4
Default

Got it! I now know how to use the VLOOKUP and ROUND formulas too!

Of course, I'm going to keep working on it to try and really make it easy for them by making it go ahead and pull up the correct pricing matrix and fill it out for them, but that's for another bottle of aspirin!

Chris, your suggestion was dead on, and saved me a lot of headaches. I owe you a pint buddy. If you're ever in New Orleans, look me up. Or if you ever have a computer problem, email me, I might be able to help!


Thanks again to everyone else too - you are all life savers!


pom1331 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 11:48 AM.


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