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 16th, 2002, 04:11 AM   #1
EdenFarm
New Member
 
Join Date: Apr 2002
Posts: 1
Default

Hi,

I am running a spreadsheet to check amount of fuel put into the company vehicles. I have a number of columns, but the ones that I need are Reg. No and Total Input. Now, I would like to set something up that will automatically calculate the total fuel input of a particular reg. To illustrate:

Reg: Input:
R717 25
S283 34
R716 18
R717 25
S283 34
R716 18


Total (I would prefer this to be in another worksheet)

Reg: Total Input:
R717 50
S283 68
R716 36

However, there are about 17 vans, and I already have nearly 200 entries for the month of April, as they fill up perhaps twice a day. It is probably very easy - I hope so anyway - can anyone help me?

Cheers.

Markus.
EdenFarm is offline   Reply With Quote
Old Apr 16th, 2002, 04:33 AM   #2
Aladin Akyurek
MrExcel MVP
 
Aladin Akyurek's Avatar
 
Join Date: Feb 2002
Location: The Hague
Posts: 50,319
Default

I'd suggest to have a look at PivotTables.

SUMIF would also do the job.

Lets say that A1:B7 in Sheet1 houses the sample you provided:

{"Reg. No","amount";
"R717",25;
"S283",34;
"R716",18;
"R717",25;
"S283",34;
"R716",18}

Create a unique list of Reg. No's in a second sheet, in A from A2 on like this:

{"Reg. No";
"R717";
"S283";
"R716"}

In B2 enter and copy down:

=SUMIF(Sheet1!$A$2:$A$7,A2,Sheet1!$B$2:$B$7)

Aladin
Aladin Akyurek is offline   Reply With Quote
Old Mar 1st, 2006, 12:28 AM   #3
jeff14324
New Member
 
Join Date: Feb 2006
Location: NH
Posts: 1
Default I have a question about the formula

I have a similar situation and your formula definately helped me.



I used your formula to grab a certain price in A2 through A6400 then to find the amount of gallons that were sold at that price B2 through B6400

Instead of typing in a new formula for each new/old price I would like to be able to... in my total cell type in a price and have it find the all the gallons relating to that specific price. I have price changes that range in the hundreds.

I have searched high and low from MS website to online forums and seraches and I cannot find away to do this with excel.

Thanks and I hope this is the right spot for this.
jeff14324 is offline   Reply With Quote
Old Mar 1st, 2006, 12:35 AM   #4
PaddyD
MrExcel MVP
 
Join Date: May 2002
Posts: 13,278
Default

usually best to start a new thread, dbut as we're here...

have you tried out a filter? (data | filter)

with a 'normal' filter, just set up the filter then go to the custom... option & pick your value

with an advanced filter, you can put the results to a new area if you want to 'extract' the results, not just view them in situ.

review the excel help file topic for 'Filter a list by using advanced criteria'
PaddyD is offline   Reply With Quote
Old Mar 1st, 2006, 12:35 AM   #5
Brian from Maui
Board Regular
 
Brian from Maui's Avatar
 
Join Date: Feb 2002
Posts: 7,743
Default

Jeff,

Try A Pivot Table as Aladin suggested. It's not that difficult and the ways your data set is, it shouldn't be a problem, I'll try and find a link for PT tutorials..

Here's a link,

http://www.peltiertech.com/Excel/Pivots/pivottables.htm
Brian from Maui 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:15 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