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 Feb 21st, 2002, 01:53 PM   #1
MJA
Board Regular
 
Join Date: Feb 2002
Location: Hengelo
Posts: 79
Default

Hello Mr. Excel,

I have a serie of numbers that can vary, the
serie always starts in A1 and can go till Ax.
In the cell next to Ax I want the total.
How do I do that?
__________________
Best regards,

Martin J.A. Maatman Oonk
MJA is offline   Reply With Quote
Old Feb 21st, 2002, 02:16 PM   #2
Mark O'Brien
MrExcel MVP
 
Mark O'Brien's Avatar
 
Join Date: Feb 2002
Location: Columbus, OH, USA
Posts: 3,519
Default

Quote:
On 2002-02-21 12:53, MJA wrote:
Hello Mr. Excel,

I have a serie of numbers that can vary, the
serie always starts in A1 and can go till Ax.
In the cell next to Ax I want the total.
How do I do that?
I'm assuming you mean "Ax" to be, for example, "A10" or however many rows the "A" column occupies. So you're really wanting the total of a column, not the total of a row.

The most common suggestion here is to put the total at the top of a column. In this case, make "A1" the total. You could then put a formula like :

 =SUM(A2:A65536) 


This way it doesn't matter how many rows you use.

HTH
__________________
Mark O'Brien

Columbus Ohio Celtic Supporters Club
Mark O'Brien is offline   Reply With Quote
Old Feb 21st, 2002, 02:30 PM   #3
MJA
Board Regular
 
Join Date: Feb 2002
Location: Hengelo
Posts: 79
Default

Quote:
On 2002-02-21 13:16, Mark O'Brien wrote:
Quote:
On 2002-02-21 12:53, MJA wrote:
Hello Mr. Excel,

I have a serie of numbers that can vary, the
serie always starts in A1 and can go till Ax.
In the cell next to Ax I want the total.
How do I do that?
I'm assuming you mean "Ax" to be, for example, "A10" or however many rows the "A" column occupies. So you're really wanting the total of a column, not the total of a row.

The most common suggestion here is to put the total at the top of a column. In this case, make "A1" the total. You could then put a formula like :

 =SUM(A2:A65536) 


This way it doesn't matter how many rows you use.

HTH
Sorry! (It's late in Holland)

I mean A1, B1, C1, D1 .......... to x1.

The answer (total) must stand in the cell next to x1.

Thanks for your quick reply!

Can you help me again?!?!
__________________
Best regards,

Martin J.A. Maatman Oonk
MJA is offline   Reply With Quote
Old Feb 21st, 2002, 03:00 PM   #4
Mark O'Brien
MrExcel MVP
 
Mark O'Brien's Avatar
 
Join Date: Feb 2002
Location: Columbus, OH, USA
Posts: 3,519
Default

There's no really easy way to do that, I'm assuming you mean automatically. You would have to use VBA and have a button or toolbar to run it. How do you put the data into the sheet? If it's done manually then it wouldn't cost you much time do the sum formula manually.

To do it manually you would just go to the last cell, for example "BV1", then type in something like:

 =SUM(A1:BV1) 


HTH

Damn, Feyenoord only drew with Rangers.

__________________
Mark O'Brien

Columbus Ohio Celtic Supporters Club
Mark O'Brien is offline   Reply With Quote
Old Feb 21st, 2002, 03:15 PM   #5
NateO
Legend
 
NateO's Avatar
 
Join Date: Feb 2002
Location: Minneapolis, Mn, USA
Posts: 9,704
Default

Hello in Holland! Something like this work?

Sub For_Holland()
Application.ScreenUpdating = False
Range("A1").Select
Range(Selection, Selection.End(xlToRight)).Select
ActiveWorkbook.Names.Add Name:="money", RefersToR1C1:=Selection
Range("a1").Select
Selection.End(xlToRight).Select
Application.ScreenUpdating = True
ActiveCell.Offset(0, 1).Select
ActiveCell.FormulaR1C1 = "=SUM(money)"
Selection.Copy
Selection.PasteSpecial Paste:=xlValues
Application.CutCopyMode = False
ActiveWorkbook.Names("money").Delete
End Sub


Cheers, Nate

[ This Message was edited by: NateO on 2002-02-21 14:36 ]
NateO is offline   Reply With Quote
Old Feb 21st, 2002, 03:20 PM   #6
Chris Davison
MrExcel MVP
 
Join Date: Feb 2002
Location: Millbank, London, UK
Posts: 1,790
Default

Quote:
Damn, Feyenoord only drew with Rangers.
Thought you'd be a Columbus Crew fan
Chris Davison is offline   Reply With Quote
Old Feb 21st, 2002, 03:33 PM   #7
Mark O'Brien
MrExcel MVP
 
Mark O'Brien's Avatar
 
Join Date: Feb 2002
Location: Columbus, OH, USA
Posts: 3,519
Default

Quote:
On 2002-02-21 14:20, Chris Davison wrote:
Quote:
Damn, Feyenoord only drew with Rangers.
Thought you'd be a Columbus Crew fan
I try to be, but it's kind of hard to break the Celtic habit.
__________________
Mark O'Brien

Columbus Ohio Celtic Supporters Club
Mark O'Brien is offline   Reply With Quote
Old Feb 21st, 2002, 04:21 PM   #8
Tikas A. Planck
 
Join Date: Feb 2002
Posts: 47
Default

A macro is not necessary.

If your data is in A1:J10, put the following formula in K10 :-
=SUM(A1:OFFSET(K10,0,-1))

The formula will automatically adjust when columns are inserted/deleted.
Tikas A. Planck is offline   Reply With Quote
Old Feb 21st, 2002, 05:57 PM   #9
NateO
Legend
 
NateO's Avatar
 
Join Date: Feb 2002
Location: Minneapolis, Mn, USA
Posts: 9,704
Default

But VBA is our friend! This way no cutting or pasting or scrolling or typing, etc...Just run the macro and voila.

Cheers,

Nate
NateO is offline   Reply With Quote
Old Feb 21st, 2002, 06:45 PM   #10
Tikas A. Planck
 
Join Date: Feb 2002
Posts: 47
Default

Quote:
On 2002-02-21 16:57, NateO wrote:
But VBA is our friend! This way no cutting or pasting or scrolling or typing, etc...Just run the macro and voila.

Cheers,

Nate

I don't know what you're talking about.

All that is required is to enter a simple formula once (just like any other formula) and voila - no further cutting/pasting/scrolling/typing AND no VBA.

What are you suggesting? Only enter formulas on worksheets by running macros?
Tikas A. Planck 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:48 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