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 1st, 2002, 05:48 PM   #1
geolefty
Board Regular
 
Join Date: Mar 2002
Location: CA
Posts: 180
Default

I think it can be but I am struggling.

In the example below, I want to use the $400 in the 'formula' spots. I know the first column doesn't match but need to lookup the $400 based on the 2nd and 3rd columns matching.

dog five car $400
cat five bus 'formula'
pig five car 'formula'
bird five car 'formula'

thanks
geolefty is offline   Reply With Quote
Old May 1st, 2002, 05:53 PM   #2
RET79
Board Regular
 
Join Date: Mar 2002
Location: England, UK.
Posts: 526
Default

Can you explain further please I don't fully understand what you mean, especially when you say 2nd and 3rd column matching???

RET79
RET79 is offline   Reply With Quote
Old May 1st, 2002, 06:04 PM   #3
geolefty
Board Regular
 
Join Date: Mar 2002
Location: CA
Posts: 180
Default

In the example, the 3rd and 4th rows both have 'five' in the 2nd column and 'car' in the 3rd.

I need these rows to essentially lookup rows with the same specs (five, car) and pull that $400.
geolefty is offline   Reply With Quote
Old May 1st, 2002, 06:16 PM   #4
Aladin Akyurek
MrExcel MVP
 
Aladin Akyurek's Avatar
 
Join Date: Feb 2002
Location: The Hague
Posts: 50,317
Default

Quote:
On 2002-05-01 17:04, geolefty wrote:
In the example, the 3rd and 4th rows both have 'five' in the 2nd column and 'car' in the 3rd.

I need these rows to essentially lookup rows with the same specs (five, car) and pull that $400.
In E2 enter: five
In F2 enter: car

=SUMPRODUCT((B2:B20=E2)*(C2:C20=F2),D2:D20)

Or use DSUM, which requires the appropriate labels from your data in E1 and F1 in addition to conditions in E2 and F2:

=DSUM(Database,4,E1:F2)

where Database refers to your data range including labels/column headings.

You could also consider using Pivot Tables.

Aladin Akyurek is offline   Reply With Quote
Old May 3rd, 2002, 08:23 PM   #5
geolefty
Board Regular
 
Join Date: Mar 2002
Location: CA
Posts: 180
Default

Thanks Aladin I think we could be on the right track although I think I might be trying to do something almost impossible.

Although if anyone can figure it out it is you and others here.

I tried to use the sumproduct in the same column as the number I am trying to lookup and I get circular refs.

Essentially some of the rows have pricing I want to use (like the $400) when related to 'dog'. The other rows I need to pull that pricing when the other columns match (five, car) but do not match 'dog'.

i am trying in a seperate column, but that can be a pain since i have about 12 diff column to do this to.

any other ideas?

thanks
thank again
geolefty is offline   Reply With Quote
Old May 3rd, 2002, 08:57 PM   #6
Yogi Anand
MrExcel MVP
 
Join Date: Mar 2002
Location: Michigan USA
Posts: 11,452
Default

Quote:
On 2002-05-01 16:48, geolefty wrote:
I think it can be but I am struggling.

In the example below, I want to use the $400 in the 'formula' spots. I know the first column doesn't match but need to lookup the $400 based on the 2nd and 3rd columns matching.

dog five car $400
cat five bus 'formula'
pig five car 'formula'
bird five car 'formula'

thanks
If I understand you correctly, if the entry in the second column of rows 2,3,and 4th column is 'five', then you would want the corresponding entry in the 4th column
to be the same as the entry in the 4th column of row 1 … if it is so, then use
the following formula in the 4th column of rows 2,3, and 4 --

=VLOOKUP("five",{"five","car",400},3)

If I have not understood you correctly, or it does not work for you, please explain a little further ... and let us take it from there!

Regards

__________________
Regards!

Yogi Anand, D.Eng, P.E.
Energy Efficient Building Network LLC
www.energyefficientbuild.com
Yogi Anand is offline   Reply With Quote
Old May 3rd, 2002, 09:19 PM   #7
geolefty
Board Regular
 
Join Date: Mar 2002
Location: CA
Posts: 180
Default

I need the $400 in other rows if column 2 AND 3 match.
One additional problem is that the $400 is not constant.

Let me try to explain a little further with more specific data.
I have regional data (5 regions) and I have north america pricing. For any of the other regions (not north america) I want to take the NA pricing and factor up or down from it. I need to take the NA pricing for similar data. I need to take the NA price for a 12-inch TV and use that to factor the price for a Europe 12-inch TV. and NA 14-inch TV to get the Europe 14-inch price.

I have many products and lots of pricing so I wanted something pretty dynamic and I just dont know if I can get it.

My thought is to check and see if a cell is north america, if so then use than pricing. If not then check other characteristics and make sure they are similar to use for the comparison.

It sounds simple to me but I am just stuck.

thanks
geolefty is offline   Reply With Quote
Old May 3rd, 2002, 09:24 PM   #8
Yogi Anand
MrExcel MVP
 
Join Date: Mar 2002
Location: Michigan USA
Posts: 11,452
Default

I believe your data is too extensive to explain in a few words on the board. You should either post some real data on the board so the viewers can bite into the real thing. If you care to email your file to me, I will be glad to look at it and help if i can.

Regards!
__________________
Regards!

Yogi Anand, D.Eng, P.E.
Energy Efficient Building Network LLC
www.energyefficientbuild.com
Yogi Anand 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 05:17 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