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 Mar 16th, 2002, 08:38 AM   #1
GETanner
New Member
 
Join Date: Mar 2002
Posts: 20
Default

Hi there,

I trying to create a sheet that will take a set of variable data and extract various information from it.

I have worked out how to get the largest and smallest value from the data =LARGE(A1:A150,1) and =SMALL(A1:A150,1) aswell as the average.

Yet what I can't seem to do is work out is how to take the last value entered into the data and display it elsewhere.

For example, using columns.

Day Data
1 2
2 4
3 9
4 4
5 1

I would like to take the value for day 5 and use it elsewhere but when I enter day 6's data, I would like this then to replace day 5 and so on with each new day's data.

I looked through the function helps files in Excel XP but could not find any help there.

I enter the data onto one work sheet but display the calc's on another sheet and that is where I would like the last entered data value shown.

Is this possible?

Thanks in advance.

Guy
GETanner is offline   Reply With Quote
Old Mar 16th, 2002, 08:57 AM   #2
Aladin Akyurek
MrExcel MVP
 
Aladin Akyurek's Avatar
 
Join Date: Feb 2002
Location: The Hague
Posts: 50,317
Default

Quote:
On 2002-03-16 07:38, GETanner wrote:
Hi there,

I trying to create a sheet that will take a set of variable data and extract various information from it.

I have worked out how to get the largest and smallest value from the data =LARGE(A1:A150,1) and =SMALL(A1:A150,1) aswell as the average.

Yet what I can't seem to do is work out is how to take the last value entered into the data and display it elsewhere.

For example, using columns.

Day Data
1 2
2 4
3 9
4 4
5 1

I would like to take the value for day 5 and use it elsewhere but when I enter day 6's data, I would like this then to replace day 5 and so on with each new day's data.

I looked through the function helps files in Excel XP but could not find any help there.

I enter the data onto one work sheet but display the calc's on another sheet and that is where I would like the last entered data value shown.

Is this possible?

Thanks in advance.

Guy
Guy,

Lets say that your data are in columns A and B from row 2 on and you want to display in C2 the last value entered in column B.

=OFFSET($B$2,MATCH(9.99999999999999E+307,B:B)-ROW(2:2),0,1,1)

will retrieve the desired value.

Aladin
Aladin Akyurek is offline   Reply With Quote
Old Mar 16th, 2002, 10:12 AM   #3
MrExcel
.
 
MrExcel's Avatar
 
Join Date: Feb 2002
Location: Akron, Ohio USA
Posts: 789
Default

Guy - this is Bill Jelen at MrExcel. Can you go into your profile and change your e-mail address? Somehow the . before the @ is causing everything to be sent to MrExcel.com

Thanks - and welcome to the board!

Bill
__________________
Preview my latest book for Free
MrExcel is offline   Reply With Quote
Old Mar 16th, 2002, 02:33 PM   #4
Dave Hawley
Banned
 
Join Date: Feb 2002
Posts: 1,582
Default

Hi Guy

You would be best to create a dymamic range of your data then use:

=INDEX(MyRange,ROWS(MyRange))

To see about dynamic ranges I have many examples here: http://www.ozgrid.com/Excel/DynamicRanges.htm

Or if you do not use a dynamic range you can use:
=INDEX(A1:A10000,MATCH(-9E+306,A1:A10000,-1))


Either way, I would avoid using entire columns in formulae as it is bad practice.

Dave Hawley is offline   Reply With Quote
Old Mar 16th, 2002, 07:34 PM   #5
GETanner
New Member
 
Join Date: Mar 2002
Posts: 20
Default

Quote:
On 2002-03-16 09:12, MrExcel wrote:
Guy - this is Bill Jelen at MrExcel. Can you go into your profile and change your e-mail address? Somehow the . before the @ is causing everything to be sent to MrExcel.com

Thanks - and welcome to the board!

Bill
Sorry about that, consider it changed. First time I've ever come across that problem.

Hope it did not cause too much trouble.

Guy

[ This Message was edited by: GETanner on 2002-03-16 18:39 ]
GETanner is offline   Reply With Quote
Old Mar 16th, 2002, 07:39 PM   #6
GETanner
New Member
 
Join Date: Mar 2002
Posts: 20
Default

Quote:
On 2002-03-16 07:57, Aladin Akyurek wrote:
Quote:
On 2002-03-16 07:38, GETanner wrote:
Hi there,

I trying to create a sheet that will take a set of variable data and extract various information from it.

I have worked out how to get the largest and smallest value from the data =LARGE(A1:A150,1) and =SMALL(A1:A150,1) aswell as the average.

Yet what I can't seem to do is work out is how to take the last value entered into the data and display it elsewhere.

For example, using columns.

Day Data
1 2
2 4
3 9
4 4
5 1

I would like to take the value for day 5 and use it elsewhere but when I enter day 6's data, I would like this then to replace day 5 and so on with each new day's data.

I looked through the function helps files in Excel XP but could not find any help there.

I enter the data onto one work sheet but display the calc's on another sheet and that is where I would like the last entered data value shown.

Is this possible?

Thanks in advance.

Guy
Guy,

Lets say that your data are in columns A and B from row 2 on and you want to display in C2 the last value entered in column B.

=OFFSET($B$2,MATCH(9.99999999999999E+307,B:B)-ROW(2:2),0,1,1)

will retrieve the desired value.

Aladin
Thank you very much indeed.

It worked a treat. It did exactly what I needed it to do.

I can now sit down with a cup of tea and try and work out how it worked.

Best regards,

Guy
GETanner is offline   Reply With Quote
Old Mar 16th, 2002, 07:44 PM   #7
GETanner
New Member
 
Join Date: Mar 2002
Posts: 20
Default

Quote:
On 2002-03-16 13:33, Dave Hawley wrote:
Hi Guy

You would be best to create a dymamic range of your data then use:

=INDEX(MyRange,ROWS(MyRange))

To see about dynamic ranges I have many examples here: http://www.ozgrid.com/Excel/DynamicRanges.htm

Or if you do not use a dynamic range you can use:
=INDEX(A1:A10000,MATCH(-9E+306,A1:A10000,-1))


Either way, I would avoid using entire columns in formulae as it is bad practice.

Dave,

Thanks for the reply. I've not come across the use of dynamic ranges before, so your tip will take me a little more time to apply though I will sit down and have a good go at learning this new topic.

The answer before yours worked for my current needs but on quick inspection for that link you suggested, I do think my sheet will benefit from using Dynamic Ranges.

Time to creat another sheet.

Thanks again,

Guy
GETanner 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 10:44 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