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 Apr 14th, 2002, 03:20 AM   #1
KnAsTa
Board Regular
 
Join Date: Apr 2002
Location: Australia
Posts: 52
Default

=IF(ISNUMBER(MATCH(A5,week1.xls!$A$1:$A$10,0)),IF(VLOOKUP(A5,week1.xls!$A$1:$D$10,3,0)>VLOOKUP(A5,week1.xls!$A$1:$D$10,4,0),1,0),)

When the ISNUMBER(MATCH) function returns true, it gives me #N/A results in the cells which should have 1 or 0 in them.
KnAsTa is offline   Reply With Quote
Old Apr 14th, 2002, 03:24 AM   #2
Aladin Akyurek
MrExcel MVP
 
Aladin Akyurek's Avatar
 
Join Date: Feb 2002
Location: The Hague
Posts: 50,317
Default

Quote:
On 2002-04-14 02:20, KnAsTa wrote:
=IF(ISNUMBER(MATCH(A5,week1.xls!$A$1:$A$10,0)),IF(VLOOKUP(A5,week1.xls!$A$1:$D$10,3,0)>VLOOKUP(A5,week1.xls!$A$1:$D$10,4,0),1,0),)

When the ISNUMBER(MATCH) function returns true, it gives me #N/A results in the cells which should have 1 or 0 in them.
Just curious: Why do you need to restart another thread on the same question?
Aladin Akyurek is offline   Reply With Quote
Old Apr 14th, 2002, 03:27 AM   #3
KnAsTa
Board Regular
 
Join Date: Apr 2002
Location: Australia
Posts: 52
Default

Its a different question, the formula is different now, its shortenned and For column B not A. Sorry.
KnAsTa is offline   Reply With Quote
Old Apr 14th, 2002, 03:34 AM   #4
Aladin Akyurek
MrExcel MVP
 
Aladin Akyurek's Avatar
 
Join Date: Feb 2002
Location: The Hague
Posts: 50,317
Default

Quote:
On 2002-04-14 02:27, KnAsTa wrote:
Its a different question, the formula is different now, its shortenned and For column B not A. Sorry.
Not a good reason. If still interested, try to provide the data using the procedure I described to you in the previous post.
Aladin Akyurek is offline   Reply With Quote
Old Apr 14th, 2002, 03:42 AM   #5
KnAsTa
Board Regular
 
Join Date: Apr 2002
Location: Australia
Posts: 52
Default

Ok, next time i'll contain it to one thread. Sorry.

But my question is, in the previous formula:

=IF(ISNUMBER(MATCH(A5,week1.xls!$A$1:$A$10,0)),IF(VLOOKUP(A5,week1.xls!$A$1:$D$10,3,0)>VLOOKUP(A5,week1.xls!$A$1:$D$10,4,0),1,0),)

This works fine for me.

but if u change the Range in the match function to $B$1:$B$10 it doesnt work, it gives me #N/A results.

Here is my new formula:

=IF(ISNUMBER(MATCH(A5,week1.xls!$B$1:$B$10,0)),IF(VLOOKUP(A5,week1.xls!$A$1:$D$10,3,0)
Very sorry for the inconvenience. And thankyou for your constant help.
KnAsTa is offline   Reply With Quote
Old Apr 14th, 2002, 06:35 AM   #6
KnAsTa
Board Regular
 
Join Date: Apr 2002
Location: Australia
Posts: 52
Default

Could someone PLEASE help me out on the above question. Its for an assignment, and its due quite soon. It would be very much appreciated. Thanks!
KnAsTa is offline   Reply With Quote
Old Apr 14th, 2002, 07:17 AM   #7
Dave Patton
Board Regular
 
Join Date: Feb 2002
Location: Calgary, Alberta Canada
Posts: 2,065
Default



>Could someone PLEASE help me out on the >above question. Its for an assignment, and >its due quite soon. It would be very much >appreciated. Thanks!

You have asked the same question many times.

Suggestions:
- read the information in Excel's Help
- try the suggestions that people provided
- provide feedback on what worked and what did not work
- Use Search and find all postings to your question and also try search for other relevant subjects
Dave Patton is offline   Reply With Quote
Old Apr 14th, 2002, 07:21 AM   #8
KnAsTa
Board Regular
 
Join Date: Apr 2002
Location: Australia
Posts: 52
Default

Yes, i have asked similar questions every time, but each time i post it is a different formula, i keep getting stuck on different parts of the formula. If someone can explain what is wrong with this formula above, why it works for A and not B, then that is all i need. This is the last part of this formula i need to know.

I have read all through the excel help pages concering the functions MATCH ISNA and the LOOKUP function, and have also searched through the majority of the LOOKUP questions on this site.

I am sorry for posting so many times on similar formulae, i am just having a lot of trouble understanding it.
KnAsTa is offline   Reply With Quote
Old Apr 14th, 2002, 08:18 AM   #9
Dave Patton
Board Regular
 
Join Date: Feb 2002
Location: Calgary, Alberta Canada
Posts: 2,065
Default



>but if u change the Range in the match >function to $B$1:$B$10 it doesnt work, it >gives me #N/A results.

>Here is my new formula:

>=IF(ISNUMBER(MATCH(A5,week1.xls!$B$1:>$B$10,0)),IF(VLOOKUP(A5,week1.xls!$A$1:$D$10,3,0)

Is the information in A5 in the Range B1:B10?
Your previous formula looked in A1:A10.


To access from multiple external files, consider
a)
hardcode the full address

=IF(OR(A38="",COUNTIF('E:Data02Tech02[LookupD1.xls]1'!$A$2:$F$6,A38)=0),"",VLOOKUP(A38,'E:Data02Tech02[LookupD1.xls]1'!$A$2:$F$6,6,0))

or b) if the other files are OPEN

Put reference in cell (example C37 has LookupD1.xls!rL2_ )

=IF(OR(A37="",COUNTIF(INDIRECT(C37),A37)=0),"",VLOOKUP(A37,INDIRECT(C37),6,0))
Dave Patton is offline   Reply With Quote
Old Apr 14th, 2002, 08:25 AM   #10
KnAsTa
Board Regular
 
Join Date: Apr 2002
Location: Australia
Posts: 52
Default

>Is the information in A5 in the Range >B1:B10?
>Your previous formula looked in A1:A10.

The information in A5 is in the range $B$1:$B$10 which is the external spreadsheet. However it does not return my values for the true statement.

I have tried to hardcode in the address' of the external files but it is still the same. When i pasted the formulae into this forum, i had my external file open with the main spreadsheet, so it did not need a hardcoded addreess.


My external spreadsheet is this(tab delimited):

Everton Leeds 3 4
Chelsea West Ham 0 5
Southhampton Middlesbrough 2 5
Aston Villa Leicester 0 4
Liverpool Bolton 6 0
Fulham Newcastle 2 2
Sunderland Tottenham 4 3
Arsenal Blackburn 0 5
Charlton Man Utd 6 1
Derby Ipswich 3 2

And i am VLOOKING up Leeds which is A5 in my main spreadsheet. This external file contains 20 english soccer teams, playing 10 games with the home and away scores.

The formula is determining if the away team wins or loses. Ie puts a 1 for a win, or a 0 for a loss.
KnAsTa 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 12:54 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