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 14th, 2002, 04:29 PM   #1
davin
New Member
 
Join Date: Mar 2002
Posts: 41
Default

http://www.blackiechan.net/help.jpg

I need a formula that will return the "Avg Time Late" for whatever is in "A2" just like a vlookup, however i need it to average the data that it gathers from multiple tabs within the workbook.

[ This Message was edited by: davin on 2002-05-14 15:29 ]

[ This Message was edited by: davin on 2002-05-14 15:30 ]

[ This Message was edited by: davin on 2002-05-14 15:31 ]
davin is offline   Reply With Quote
Old May 14th, 2002, 04:53 PM   #2
Yogi Anand
MrExcel MVP
 
Join Date: Mar 2002
Location: Michigan USA
Posts: 11,452
Default

Quote:
On 2002-05-14 15:29, davin wrote:
http://www.blackiechan.net/help.jpg

I need a formula that will return the "Avg Time Late" for whatever is in "A2" just like a vlookup, however i need it to average the data that it gathers from multiple tabs within the workbook.

[ This Message was edited by: davin on 2002-05-14 15:29 ]

[ This Message was edited by: davin on 2002-05-14 15:30 ]

[ This Message was edited by: davin on 2002-05-14 15:31 ]
Hi davin:
From the jpg that you referenced to, the following data resides in B2:C8

0:08 1:10
0:06 1:00
0:09 1:07
0:01 0:10
0:03 0:25
0:02 0:19
0:57 8:37

The first part of your question is quite clear in that if I put a value of 0:09 in cell A2, I can use the VLOOKUP function as ...

=VLOOKUP(A2,B2:C8,1,0) to pick up 0:09 in column B, and

=VLOOKUP(A2,B2:C8,2,0) to pick up 1:07 from column C

Beyond that, I am not clear about what you are intending to do. A clear explanation of what you are trying to accomplish, perhaps with some sample data would definitely help.

Regards!


Yogi Anand is offline   Reply With Quote
Old May 14th, 2002, 04:59 PM   #3
davin
New Member
 
Join Date: Mar 2002
Posts: 41
Default

Yogi,

Assume that all the cells are empty.

If I insert J. DOE into A2, I need it to vlookup J. DOE's time late on 31 worksheets (days of the month), then give me the average. I would put this formula in B2.

I hope this helps

Thanks!
Davin

[ This Message was edited by: davin on 2002-05-14 16:00 ]
davin is offline   Reply With Quote
Old May 14th, 2002, 05:00 PM   #4
Aladin Akyurek
MrExcel MVP
 
Aladin Akyurek's Avatar
 
Join Date: Feb 2002
Location: The Hague
Posts: 50,317
Default

Quote:
On 2002-05-14 15:53, Yogi Anand wrote:
Quote:
On 2002-05-14 15:29, davin wrote:
http://www.blackiechan.net/help.jpg

I need a formula that will return the "Avg Time Late" for whatever is in "A2" just like a vlookup, however i need it to average the data that it gathers from multiple tabs within the workbook.

[ This Message was edited by: davin on 2002-05-14 15:29 ]

[ This Message was edited by: davin on 2002-05-14 15:30 ]

[ This Message was edited by: davin on 2002-05-14 15:31 ]
Hi davin:
From the jpg that you referenced to, the following data resides in B2:C8

0:08 1:10
0:06 1:00
0:09 1:07
0:01 0:10
0:03 0:25
0:02 0:19
0:57 8:37

The first part of your question is quite clear in that if I put a value of 0:09 in cell A2, I can use the VLOOKUP function as ...

=VLOOKUP(A2,B2:C8,1,0) to pick up 0:09 in column B, and

=VLOOKUP(A2,B2:C8,2,0) to pick up 1:07 from column C

Beyond that, I am not clear about what you are intending to do. A clear explanation of what you are trying to accomplish, perhaps with some sample data would definitely help.

Regards!
What that jpeg shows are the expected results, not the data that must be averaged and totaled for a key value in column A, which is also left empty.

Aladin Akyurek is offline   Reply With Quote
Old May 14th, 2002, 05:05 PM   #5
davin
New Member
 
Join Date: Mar 2002
Posts: 41
Default

correct, the data to be averaged will be on the 31 worksheets.
davin is offline   Reply With Quote
Old May 14th, 2002, 05:24 PM   #6
Aladin Akyurek
MrExcel MVP
 
Aladin Akyurek's Avatar
 
Join Date: Feb 2002
Location: The Hague
Posts: 50,317
Default

Quote:
On 2002-05-14 16:05, davin wrote:
correct, the data to be averaged will be on the 31 worksheets.
You'll need to use 31 columns after column C in order to lookup in each sheet.

In D2 you'll have:

=VLOOKUP(A2,Sheet1!Range1,2,0)

so on up to AH2.

In C2 you'll have:

=SUMIF(D2:AH2,"<>#N/A")

In B2 you'll have:

=C2/MAX(1,COUNTIF(D2:AH2,"<>#N/A")-COUNTIF(D2:AH2,0))

Aladin Akyurek is offline   Reply With Quote
Old May 14th, 2002, 05:28 PM   #7
davin
New Member
 
Join Date: Mar 2002
Posts: 41
Default

I thought about that, but I was wondering if there was a shorter way.

Thanks!

DB
davin is offline   Reply With Quote
Old May 14th, 2002, 05:41 PM   #8
Aladin Akyurek
MrExcel MVP
 
Aladin Akyurek's Avatar
 
Join Date: Feb 2002
Location: The Hague
Posts: 50,317
Default

Quote:
On 2002-05-14 16:28, davin wrote:
I thought about that, but I was wondering if there was a shorter way.

Thanks!

DB
I don't believe so, Davin.

Don't bother about eliminating #N/A's. The formulas for C2 and D2 do simply allow for #N/A's.

You can hide those 31 columns of course.

Aladin


[ This Message was edited by: Aladin Akyurek on 2002-05-14 16:42 ]
Aladin Akyurek is offline   Reply With Quote
Old May 14th, 2002, 05:46 PM   #9
Yogi Anand
MrExcel MVP
 
Join Date: Mar 2002
Location: Michigan USA
Posts: 11,452
Default

Quote:
On 2002-05-14 15:59, davin wrote:
Yogi,

Assume that all the cells are empty.

If I insert J. DOE into A2, I need it to vlookup J. DOE's time late on 31 worksheets (days of the month), then give me the average. I would put this formula in B2.

I hope this helps

Thanks!
Davin

[ This Message was edited by: davin on 2002-05-14 16:00 ]
Now I get it. And the reason you are using VLOOKUP function is because John Doe's name may not appear on all 31 worksheets, and also not in the same row on every worksheet --- we don't want John Doe to be late every day.
However, if you did have John Doe's name in the same cell on the related worksheets when John Doe is late, then it will be a simple matter of picking up the sum of the same cell entries across 31 worksheets.

Regards!

Yogi Anand 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 04:22 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