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 17th, 2002, 05:14 AM   #1
jmoconnell
New Member
 
Join Date: Feb 2002
Posts: 2
Default

I am trying to resolve a long list of time entries that fall between the Begin and End time intervals and therefore return the TOD label (HSR, HR etc.).

I have this table:
TOD Begin End
HSR 0:00 5:59
HR 6:00 6:59
HN 7:00 8:59
HD 9:00 11:59
HN 12:00 13:59
HD 14:00 17:59
HN 18:00 20:59
HR 21:00 23:59

I have tried the following:

1. A combination of nested IF, and, or statements that would have worked but I could not stay under the limit.

2. I examined a number of Vlookup approaches but was unable to identify a solution. I can rearrange the table any way I want to.

3. I examined a number of Offset and Match statements but again was unable to identify a solution.

4. I also tried to use named formula's in a effort to break up the nested if's into two pirces each under the limit. Then I tried to create a master formula by using the two named ranges as single formula.

I am fairly new at Excel so I may not have the experience to see the forest thru the trees or I may just be missing the appropriate use of syntax etc.

Any help on solving this problem would be greatly appreciated.

Thanks,

Joe
jmoconnell is offline   Reply With Quote
Old Feb 17th, 2002, 05:40 AM   #2
Aladin Akyurek
MrExcel MVP
 
Aladin Akyurek's Avatar
 
Join Date: Feb 2002
Location: The Hague
Posts: 50,314
Default

Quote:
On 2002-02-17 04:14, jmoconnell wrote:
I am trying to resolve a long list of time entries that fall between the Begin and End time intervals and therefore return the TOD label (HSR, HR etc.).

I have this table:
TOD Begin End
HSR 0:00 5:59
HR 6:00 6:59
HN 7:00 8:59
HD 9:00 11:59
HN 12:00 13:59
HD 14:00 17:59
HN 18:00 20:59
HR 21:00 23:59



Joe
A 2-column table will suffice: Drop the 3rd column and exchange the 1st and the 2nd from your original:

0:00 HSR
6:00 HR
7:00 HN
9:00 HD
12:00 HN
14:00 HD
18:00 HN
21:00 HR

Select all of the cells of this new table, go to the Name Box on the Formula Bar, and type TODS followed by enter.

Assuming that you have a time entry in A1 that you want to classify,

in B1 enter: =VLOOKUP(A1,TODS,2)



[ This Message was edited by: Aladin Akyurek on 2002-02-17 04:41 ]
Aladin Akyurek is offline   Reply With Quote
Old Feb 17th, 2002, 07:06 AM   #3
jmoconnell
New Member
 
Join Date: Feb 2002
Posts: 2
Default

Thank you for your quick response.

If I understand correctly vlookup will process serially thru a sequential number pattern and accept the last defined label.

Thanks

Joe
jmoconnell 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:31 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