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 6th, 2002, 02:35 AM   #1
nguyenthehoat
New Member
 
Join Date: May 2002
Location: Yazaki Haiphong,Vietnam
Posts: 15
Default

Dear My friend,
I 'm using windows Xp and office XP.
working in ware house section I have to control about 3000 kind of material. I usually use vlookup formula, it is very convenient but unfortunately, sometime data format in sheets automatically change to different type so my formula can not work correctly."#N/A". If I copy vlookup value from table ray it will return correct value. I tried to format vlookup value and the value in table ray in the same type (text, general,number) but my formula still doesn't work. It will take some months to input this data again. Please help me fix this problem.
Many thanks in advance.
Mr.The Hoat
Yazaki Haiphong,Vietnam
nguyenthehoat is offline   Reply With Quote
Old May 6th, 2002, 02:44 AM   #2
Ivan F Moala
MrExcel MVP
 
Ivan F Moala's Avatar
 
Join Date: Feb 2002
Location: Auckland, New Zealand
Posts: 4,209
Default

Was this reply any help to you ?

http://www.mrexcel.com/board/viewtop...c=7278&forum=2
__________________
Kind Regards,
Ivan F Moala From the City of Sails
Ivan F Moala is offline   Reply With Quote
Old May 6th, 2002, 02:44 AM   #3
KnAsTa
Board Regular
 
Join Date: Apr 2002
Location: Australia
Posts: 52
Default

I'm going to need more information about your problem.......... Its not really obvious to me what you're exactly trying to do.........

But have u tried an IF(ISNA( or IF(ISNUMBER( - then do something? It will get rid of your errors.........but this is probably not the answer you were looking for.......but please write back with a better explination.

Cheers.
KnAsTa
KnAsTa is offline   Reply With Quote
Old May 6th, 2002, 03:22 AM   #4
Aladin Akyurek
MrExcel MVP
 
Aladin Akyurek's Avatar
 
Join Date: Feb 2002
Location: The Hague
Posts: 50,317
Default

The underlying formats (that is, the format Excel sees) of the lookup-values and the values that make up the first column of your lookup table must agree.

If the first column of your lookup table has expectedly numeric values (like 24, 2-Jan-02, 12:15) and alphanumeric values (like 24AR-8, Nguyen, kar897, 0034), you might have trouble to keep them in their appropriate undelying format.

Lets say that E2:J2000 houses your lookup table.

Try the following to see where the problem is:

(1)

=MATCH(A1,E2:E2000,0)

(2)

=MATCH(A1&"",E2:E2000,0)

If (1) ends up in #N/A, while (2) returns a number, you have a lookup value with number as underlying format, while the lookup table has it with text as underlying format. You can use this diagnostic information to repair the uderlying format of the first column of your lookup table or adjust the underlying format of the lookup values that you feed to your lookup formula.

In the meantime, you can use an expensive solution as in:

=VLOOKUP(IF(ISNUMBER(MATCH(A1,E2:E2000,0)),A1,A1&""),E2:J2000,0)

This formula can still return #N/A, just because A1 does not exist in the lookup table neither as text nor as number.

By the way, I'd suggest deleting your latest repost, if no one has replied yet to that thread.

Aladin Akyurek is offline   Reply With Quote
Old May 7th, 2002, 03:44 AM   #5
nguyenthehoat
New Member
 
Join Date: May 2002
Location: Yazaki Haiphong,Vietnam
Posts: 15
Default

Thanks for your tip.
I have tried but it still did not work
Please help me.
F.Y.I. I reposted with subject " Format value automatically changed".

Brgds,
T.Hoat
nguyenthehoat is offline   Reply With Quote
Old May 11th, 2002, 02:29 AM   #6
nguyenthehoat
New Member
 
Join Date: May 2002
Location: Yazaki Haiphong,Vietnam
Posts: 15
Default

Dear Aladin Akyurek,

Thanks for your help.
My vlookup values are kar897, 0034, 1241, so 0034, 1241 need changing to text.
After changing table_ray format value to text ( = E2&"") and use the formula

=VLOOKUP(IF(ISNUMBER(MATCH(A1,E2:E2000,0)),A1,A1&""),E2:J2000,2,0)

If Vlookup value is text or number, formula will still return true.
I do not have to input data again. How excellent is !!

Kind brgds,
The Hoat
nguyenthehoat is offline   Reply With Quote
Old May 11th, 2002, 05:49 AM   #7
Chris Davison
MrExcel MVP
 
Join Date: Feb 2002
Location: Millbank, London, UK
Posts: 1,790
Default

I notice this is the THIRD version of this thread, with 3 sets of different people working on it.

PLEASE only post your question once.

Obviusly Myself and Yogi hadn't seen this thread and spent some time looking at your problem oblivious to the fact that Aladin and others were looking at it too....

Fragmenting the help reduces the chances of getting it solved !
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 03:58 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