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 7th, 2002, 07:37 PM   #1
Vwman
New Member
 
Join Date: May 2002
Location: Houston, Texas
Posts: 6
Default

I have a column with 23 cells. (One for each workday) Each day I will enter data that will give a result in that column.
For example F3 to F25. I will enter data in C3 and a result will appear in F3. Then data in C4, result in F4, etc.

I want the result in the F column to appear also in F27 with F27 changing to the new result each time I enter data in the C column.
If I enter data in C5 the result will appear in F5 and F27. When I enter data in C6 the result will appear in F6 but I want it
also in F27 instead of the F5 data. I have different formulas, with different results, that I want to display in the same cell. Each new
result takes priority over the previous result. Each new result could be higher or lower than the previous result. How do I do it?

I hope that makes sense.
Vwman is offline   Reply With Quote
Old May 7th, 2002, 07:52 PM   #2
Tom Urtis
MrExcel MVP
 
Tom Urtis's Avatar
 
Join Date: Feb 2002
Location: San Francisco, California USA
Posts: 10,387
Default

Can you clarify please, if there are any formulas involved or needing to be involved in column F? I'm not sure if you mean by your post that if you enter a "5" in C4, that a "5" becomes displayed in F4 and F27, or if you have something else in mind. Are all the values in column C manually entered, or do they change by formulas?

Thanks...it sounds do-able, just need a bit of clarification.
__________________
Tom Urtis
Microsoft MVP - Excel
Tom Urtis is offline   Reply With Quote
Old May 7th, 2002, 08:02 PM   #3
Tom Urtis
MrExcel MVP
 
Tom Urtis's Avatar
 
Join Date: Feb 2002
Location: San Francisco, California USA
Posts: 10,387
Default

Well, my girlfriend just got my dinner ready (fried chicken tonite), so while I'm chewing on that, here's a stab at what I think you might be requesting.

Right click on your sheet tab, left click on View Code, and paste this in:

Private Sub Worksheet_Change(ByVal Target As Excel.Range)
If Intersect(Target, Range("C3:C25")) Is Nothing Then Exit Sub
Target.Offset(0, 3).Value = Target.Value
Range("$F$27").Value = Target.Value
End Sub

Any help? If not please repost.
__________________
Tom Urtis
Microsoft MVP - Excel
Tom Urtis is offline   Reply With Quote
Old May 7th, 2002, 09:03 PM   #4
Yogi Anand
MrExcel MVP
 
Join Date: Mar 2002
Location: Michigan USA
Posts: 11,452
Default

Hi Vwman:
In addition to what Tom Urtis has suggested, you can also do it will formulas ... your post delineates the hierarcy of which formula has precedence over the others.

Regards!

_________________
Yogi Anand

Edit: Deleted inactive website from hardcoded signature

[ This Message was edited by: Yogi Anand on 2003-01-19 13:18 ]
Yogi Anand is offline   Reply With Quote
Old May 7th, 2002, 09:07 PM   #5
Vwman
New Member
 
Join Date: May 2002
Location: Houston, Texas
Posts: 6
Default

Didn't work.

I will manually enter a number in C4. F4 is a couple of nested functions. Specifically:
=IF(C4>0,SUM($C$3:$C4)/B4*$B$27,0)
I want the result of this both in F4 and F27.
Then when I enter a number in C5, I want it displayed in F5 and F27.

Now, really, the only one that matters is F27. I just want it updated every time I add a number to the C column. In fact I would do better without the F3 to F25 cells but I need those formulas.

I'd be happy to email anyone a small sample of what I'm trying to do.

Thanks!

Vwman is offline   Reply With Quote
Old May 7th, 2002, 10:01 PM   #6
Tom Urtis
MrExcel MVP
 
Tom Urtis's Avatar
 
Join Date: Feb 2002
Location: San Francisco, California USA
Posts: 10,387
Default

Well now that we know a little more about your set-up, try this code instead, again in your worksheet module (right click on the sheet tab, left click on View Code, and paste this in, in place of the first code):

Private Sub Worksheet_Change(ByVal Target As Excel.Range)
If Intersect(Target, Range("C3:C25")) Is Nothing Then Exit Sub
Range("$F$27").Value = Target.Offset(0, 3).Value
End Sub

Is this any better?
__________________
Tom Urtis
Microsoft MVP - Excel
Tom Urtis is offline   Reply With Quote
Old May 7th, 2002, 10:08 PM   #7
Nimrod
MrExcel MVP
 
Join Date: Apr 2002
Location: Vancouver BC , Canada
Posts: 6,259
Default

I have a solution that has only one requirement ! That requirement is that Column F must be empty for any day below the current entry. For example if today you were populating C7 and F7 then F8:F26 must be empty of values.
This requirement could be achieved by appending a small Value test to the formulas you have in F1:F26 like :=IF(C2>0,F2 FORUMLA HERE,"")

ANYWAY enough preamble heres the formula that worked for me when placed in F27

F27 should have the formula =OFFSET(F27,(COUNT(F1:F26)-27),0)
Nimrod is offline   Reply With Quote
Old May 7th, 2002, 10:26 PM   #8
Nimrod
MrExcel MVP
 
Join Date: Apr 2002
Location: Vancouver BC , Canada
Posts: 6,259
Default

If you can have the C: column values be Blank below the current day entry then this forumla could also be used in F27: (this solution does not require any modifications to F1:F26)

Formula in F27:
=OFFSET(F27,(COUNT(C1:C26)-27),0)

[ This Message was edited by: Nimrod on 2002-05-07 21:34 ]
Nimrod is offline   Reply With Quote
Old May 7th, 2002, 10:59 PM   #9
Vwman
New Member
 
Join Date: May 2002
Location: Houston, Texas
Posts: 6
Default

Tom, your solution seems to work just fine.
Thank you! Your answer is over my head, I'll have to study it some.

Nimrod, your solution seemed to work just fine too, until I had an entry in the C column that was a zero. Then it fell apart. I'll have to study yours some too.
Thank you both for your help!

Vwman is offline   Reply With Quote
Old May 7th, 2002, 11:04 PM   #10
Nimrod
MrExcel MVP
 
Join Date: Apr 2002
Location: Vancouver BC , Canada
Posts: 6,259
Default

Like I said VWman there can be no value in the cells below the current days value. That includes zeros . To not have zeros show up in row F1:F16 use the modified formula I recommended
To not have zero's show up in C try going to Tools... optoins ... General Tab and UNCHECK the Show Zero checkbox.
__________________

<MARQUEE>...........Never be afraid to try something new. Remember, amateurs built the ark, professionals built the Titanic...............The easiest thing to find is fault, don't be easy !.. --Anonymous--...</marquee>
Nimrod 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:59 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