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 20th, 2002, 07:53 AM   #1
coccio
Board Regular
 
Join Date: Mar 2002
Posts: 137
Default

An example I have is


A2: A5 has my account #
B1: E1 listed my code


3AA 3AB 3AE 3AD
100 33 8 5 7
110 45 0 8 0
120 5 4 5 5
130 7 5 5 6

Cell G1 look up condition 100
Cell H1 lookup condition 3AA

I want to match G1 and H1 and display it in a ceratin cell

Such has A7

I use this formula:

=OFFSET(A1,MATCH(G1,$A$2:A$7,0),MATCH(H1,$B$1:E$1,0))

THAT WORKS FINE but what I want to do is in column A Is I want to sum the numbers les than 120 in this case for 3AA it should be = 78

Is there a SUM fuction that can preform that.
coccio is offline   Reply With Quote
Old May 20th, 2002, 08:32 AM   #2
Aladin Akyurek
MrExcel MVP
 
Aladin Akyurek's Avatar
 
Join Date: Feb 2002
Location: The Hague
Posts: 50,317
Default

Quote:
On 2002-05-20 06:53, coccio wrote:
An example I have is


A2: A5 has my account #
B1: E1 listed my code


3AA 3AB 3AE 3AD
100 33 8 5 7
110 45 0 8 0
120 5 4 5 5
130 7 5 5 6

Cell G1 look up condition 100
Cell H1 lookup condition 3AA

I want to match G1 and H1 and display it in a ceratin cell

Such has A7

I use this formula:

=OFFSET(A1,MATCH(G1,$A$2:A$7,0),MATCH(H1,$B$1:E$1,0))

THAT WORKS FINE but what I want to do is in column A Is I want to sum the numbers les than 120 in this case for 3AA it should be = 78

Is there a SUM fuction that can preform that.
In I1 enter: 120

In A8 enter:

=SUM(OFFSET(A1,MATCH(G1,$A$2:A$7,0),MATCH(H1,$B$1:E$1,0)):OFFSET(A1,MATCH(I1,$A$2:A$7,0)-1,MATCH(H1,$B$1:E$1,0)))

What is the purpose Coccio?

Aladin
Aladin Akyurek is offline   Reply With Quote
Old May 20th, 2002, 09:14 AM   #3
coccio
Board Regular
 
Join Date: Mar 2002
Posts: 137
Default

Thanks Aladin,

This is just an example. I have to a lot of numbers to sum. Like the 100 acounts are assets and I need to sum it and display it in a cell.

Just a follow up question.

If I wanted it to be greater than 120?

coccio is offline   Reply With Quote
Old May 20th, 2002, 09:21 AM   #4
Aladin Akyurek
MrExcel MVP
 
Aladin Akyurek's Avatar
 
Join Date: Feb 2002
Location: The Hague
Posts: 50,317
Default

Quote:
On 2002-05-20 08:14, coccio wrote:
Thanks Aladin,

This is just an example. I have to a lot of numbers to sum. Like the 100 acounts are assets and I need to sum it and display it in a cell.

Just a follow up question.

If I wanted it to be greater than 120?

By changing the values of G1 and I1, I'd think. If not, try to be more specific about the task you want to accomplish.

Aladin
Aladin Akyurek is offline   Reply With Quote
Old May 20th, 2002, 09:39 AM   #5
coccio
Board Regular
 
Join Date: Mar 2002
Posts: 137
Default

Sorry aladin,
Let me example a bit better I think I'm getting a bit confused.

I have a table set up:
A2:A8 has account #
B1:E1 listed my code


3AA00 3AA00 3AE20 3AA00
100 3 0 0 0
110 0
115 1
116 4
118 5
120 44 6,767.00 0
130 44 98 8.00 0

what I want to do is sum the values in column
B Greater than account #120 and less than Acoount #120 and display then in two diffrent cells.

I hope that is clearer.

Thank You for help.
Coccio
coccio is offline   Reply With Quote
Old May 20th, 2002, 09:50 AM   #6
coccio
Board Regular
 
Join Date: Mar 2002
Posts: 137
Default

Also the table is a pivot table and the account # changes from time to time so the cells will change. I need to have it so i don't have to change a fixed formula. I can still sum the account # that need to be summed.
coccio is offline   Reply With Quote
Old May 20th, 2002, 09:57 AM   #7
coccio
Board Regular
 
Join Date: Mar 2002
Posts: 137
Default

I feel pretty stupid. Thanks for you help again Aladdin.
I made something complicated when it wasn't nesseasey

=SUMIF(A2:A10,"<120",B2:B10)

coccio

coccio is offline   Reply With Quote
Old May 20th, 2002, 10:00 AM   #8
Aladin Akyurek
MrExcel MVP
 
Aladin Akyurek's Avatar
 
Join Date: Feb 2002
Location: The Hague
Posts: 50,317
Default

Quote:
On 2002-05-20 08:39, coccio wrote:
Sorry aladin,
Let me example a bit better I think I'm getting a bit confused.

I have a table set up:
A2:A8 has account #
B1:E1 listed my code


3AA00 3AA00 3AE20 3AA00
100 3 0 0 0
110 0
115 1
116 4
118 5
120 44 6,767.00 0
130 44 98 8.00 0

what I want to do is sum the values in column
B Greater than account #120 and less than Acoount #120 and display then in two diffrent cells.

I hope that is clearer.

Thank You for help.
Coccio
I get confused too.
You have now the same code (that is, 3AA00) 3 times in B1:E1. Why is that? That would make the distinction impossible.

You want to sum values in B (presumably related to the code 3AA00) for Acc#'s less than 120 in one cell and for Acc#'s greater than 120 in a different cell. What do you want to do with value associated with 120 itself?

Aladin


Aladin Akyurek is offline   Reply With Quote
Old May 20th, 2002, 06:48 PM   #9
coccio
Board Regular
 
Join Date: Mar 2002
Posts: 137
Default

That was a poor example. I didn't state it clearly. I just wanted to sum values in a column that was less than a certain number and I used this simply formula and it worked out fine

=SUMIF(A2:A10,"<120",B2:B10)

Thanks

coccio
coccio 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 03:29 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