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 12th, 2002, 02:51 PM   #1
Worried Guy
New Member
 
Join Date: May 2002
Location: England
Posts: 6
Default

I've been landed with a stinker of a project by my boss with an even worse deadline.
I've got two major problems.
1. I have two cells, one is a drop-down list with numeric values 1-12 and the other is a blank cell that I want to change automatically with the selection of the first cell. It should be of date form with 1=April 2002 through to 12=March 2003 (Financial Year)
2. The next problem I have is that I want to link two spreadsheets so that the first sheet updates values in the second and the second spreadsheet looks to the first to check what month is selected so it can update the values in the correct cells. In addition to this , each time the drop-down list date in the first spreadsheet is changed, it checks those values in the cells in the second sheet.
Worried Guy is offline   Reply With Quote
Old May 12th, 2002, 03:23 PM   #2
Tom Schreiner
Board Regular
 
Join Date: Mar 2002
Location: Cincinnati, Ohio, USA
Posts: 6,824
Default

Don't worry, Worried.
From what little I can gather, you don't have a big problem here.
Please list as many details as possible for a more detailed reply.
Tom
Tom Schreiner is offline   Reply With Quote
Old May 12th, 2002, 03:27 PM   #3
SamS
Board Regular
 
Join Date: Feb 2002
Location: Brisbane, Down Under
Posts: 533
Default

Quote:
On 2002-05-12 13:51, Worried Guy wrote:
I've been landed with a stinker of a project by my boss with an even worse deadline.
I've got two major problems.
1. I have two cells, one is a drop-down list with numeric values 1-12 and the other is a blank cell that I want to change automatically with the selection of the first cell. It should be of date form with 1=April 2002 through to 12=March 2003 (Financial Year)
2. The next problem I have is that I want to link two spreadsheets so that the first sheet updates values in the second and the second spreadsheet looks to the first to check what month is selected so it can update the values in the correct cells. In addition to this , each time the drop-down list date in the first spreadsheet is changed, it checks those values in the cells in the second sheet.
It seems that you need a vlookup table - if you are using a combo box you will have a Cell Link which returns the row of matching data. Because you using numbers starting at 1 the matching row number also happens to be the value you want to find in your lookup table. Add the dates to the right of your numbered list, name the table eg MyDates and in the cell where you want the date to appear use =vlookup(cell link,Mydates,2,false). Remeber to format your cell as a date and it should work. The second sheet simply can reference your lookup.
SamS is offline   Reply With Quote
Old May 12th, 2002, 03:47 PM   #4
Worried Guy
New Member
 
Join Date: May 2002
Location: England
Posts: 6
Default

Thanks Tom,

The first issue concerns two cells in Sheet1
The first cell has a data validation and a drop-down list with values 1 to 12 showing the months of the financial year.

I want a second cell to show the month in text format based on the value of the first cell. (1=April, 2=May, etc) I've tried the nested 'IF' function but it only allows me to nest 7 different conditions and I need 12.

The second problem I have is that the numeric data that is entered onto sheet1 needs to be stored on another hidden sheet (sheet2!) so that when a user changes the month, any data already input on sheet1 is saved to sheet2 without any prompting.

If the month is changed in sheet1, then the data input cells in sheet1 automatically look at the corresponding data in sheet2 and displays that value in the original cells. sheet2 also needs to reference sheet1 to ensure that it updates the correct data in each section (by month) as the month is changed. I know, I'm making it unnecessarily complex but if you shed some light on what formulae I should be looking at then I'd very much appreciate it.

Thanks,

Worried Guy.
Worried Guy is offline   Reply With Quote
Old May 12th, 2002, 04:10 PM   #5
SamS
Board Regular
 
Join Date: Feb 2002
Location: Brisbane, Down Under
Posts: 533
Default

Worried - the formula for the lookup table is the same if you are using validation rather than a comb box.

Your second requirement is a little unclear, if you want to email your spreadsheet it would make it easier to see what you are really after.
SamS is offline   Reply With Quote
Old May 12th, 2002, 04:37 PM   #6
Chris Davison
MrExcel MVP
 
Join Date: Feb 2002
Location: Millbank, London, UK
Posts: 1,790
Default

Quote:
On 2002-05-12 14:47, Worried Guy wrote:
(1=April, 2=May, etc) I've tried the nested 'IF' function but it only allows me to nest 7 different conditions and I need 12.
Guy.
replace your nested IF statement with :

=VLOOKUP(the cell,{1,"April";2,"May";3,"June";4,"July";5,"August";6,"September";7,"October";8,"November";9,"December";10,"January";11,"February";12,"March"},2,0)

"Sending" the info to a page dependant on the month may be a bit trickier though, sounds like a job for our VBA experts....


__________________
:: Pharma Z - Family drugstore ::
Chris Davison is offline   Reply With Quote
Old May 12th, 2002, 05:23 PM   #7
Mark W.
MrExcel MVP
 
Join Date: Feb 2002
Location: Austin, Texas USA
Posts: 11,654
Default

Quote:
On 2002-05-12 15:37, Chris Davison wrote:


replace your nested IF statement with :

=VLOOKUP(the cell,{1,"April";2,"May";3,"June";4,"July";5,"August";6,"September";7,"October";8,"November";9,"December";10,"January";11,"February";12,"March"},2,0)
Or perhaps...

=TEXT(MOD(A1+2,12)+1&"/00","mmmm")

...at any rate CHOOSE would be preferrable to VLOOKUP...


=CHOOSE(A1,"April","May","June","July","August","September","October","November","December","January","February","March")

[ This Message was edited by: Mark W. on 2002-05-12 16:31 ]
Mark W. is offline   Reply With Quote
Old May 12th, 2002, 05:29 PM   #8
Chris Davison
MrExcel MVP
 
Join Date: Feb 2002
Location: Millbank, London, UK
Posts: 1,790
Default

sheeesh, I totally missed the years on mine.... *memo to myself to pay attention*

Mark - can yours flip the year up by one when it hits January ?

[ This Message was edited by: Chris Davison on 2002-05-12 16:31 ]

[ This Message was edited by: Chris Davison on 2002-05-12 16:33 ]
Chris Davison is offline   Reply With Quote
Old May 12th, 2002, 05:33 PM   #9
Mark W.
MrExcel MVP
 
Join Date: Feb 2002
Location: Austin, Texas USA
Posts: 11,654
Default

Quote:
On 2002-05-12 16:29, Chris Davison wrote:
sheeesh, I totally missed the years on mine.... *memo to myself to pay attention*


[ This Message was edited by: Chris Davison on 2002-05-12 16:31 ]
Try it again... I was editing my post and briefly messed it up.
Mark W. is offline   Reply With Quote
Old May 12th, 2002, 05:35 PM   #10
Chris Davison
MrExcel MVP
 
Join Date: Feb 2002
Location: Millbank, London, UK
Posts: 1,790
Default

sorry, so was I...

yours is obviously better, but the year increases when January is reached...(financial years) is this possible ?
Chris Davison 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:33 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