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, 08:49 PM   #1
nguyenthehoat
New Member
 
Join Date: May 2002
Location: Yazaki Haiphong,Vietnam
Posts: 15
Default

Dear my indeed friends,
Thank you very much for prompt response on my problem.
The problem can be described as bellows:
In the source file data:
Code/Item/Name
18403127/CAVS-0.5-B /Wire 09123424/CAVSAS-0.3*1-W/Wire
B0123542/CAVSST-0.85-R/ Wire
I use some sheets to calculate import, export Q'ty, amount.... In these sheet I type only "code" it will also appear "Item" and "Name" by vlookup formula. After that I use "Sumif, If, Dcount,....." for my own purpose. But some time the value in sheet automatically changed to different types (in error checking notice "The number in this cell is formatted as text or preceded by an apostrophe") It means the "Code" between sheets can not be matched each other and my formulas can not work correctly.
I don't understand why values were automatically changed to different format ?
Many computers in my company use Windows, Office XP also met this problem?
How can I convert to the value as I typed ?
Please help me.
Tks&brgds,
The Hoat / Yazaki, Haiphong,Vietnam


_________________
Edited by The Hoat / Yazaki Haiphong, Vietnam.

[ This Message was edited by: nguyenthehoat on 2002-05-06 19:53 ]
nguyenthehoat is offline   Reply With Quote
Old May 7th, 2002, 12:55 PM   #2
Chris Davison
MrExcel MVP
 
Join Date: Feb 2002
Location: Millbank, London, UK
Posts: 1,790
Default

Quote:
On 2002-05-06 19:49, nguyenthehoat wrote:
Dear my indeed friends,
Thank you very much for prompt response on my problem.
The problem can be described as bellows:
In the source file data:
Code/Item/Name
18403127/CAVS-0.5-B /Wire 09123424/CAVSAS-0.3*1-W/Wire
B0123542/CAVSST-0.85-R/ Wire
I use some sheets to calculate import, export Q'ty, amount.... In these sheet I type only "code" it will also appear "Item" and "Name" by vlookup formula. After that I use "Sumif, If, Dcount,....." for my own purpose. But some time the value in sheet automatically changed to different types (in error checking notice "The number in this cell is formatted as text or preceded by an apostrophe") It means the "Code" between sheets can not be matched each other and my formulas can not work correctly.
I don't understand why values were automatically changed to different format ?
Many computers in my company use Windows, Office XP also met this problem?
How can I convert to the value as I typed ?
Please help me.
Tks&brgds,
The Hoat / Yazaki, Haiphong,Vietnam


_________________
Edited by The Hoat / Yazaki Haiphong, Vietnam.

Do you mean how can you always have 18403127 as a number in your VLOOKUP ?

try :

=VLOOKUP(A1*1, etc etc etc etc

where A1 is 18403127







[ This Message was edited by: nguyenthehoat on 2002-05-06 19:53 ]
__________________
:: Pharma Z - Family drugstore ::
Chris Davison is offline   Reply With Quote
Old May 8th, 2002, 03:08 AM   #3
nguyenthehoat
New Member
 
Join Date: May 2002
Location: Yazaki Haiphong,Vietnam
Posts: 15
Default

Dear Chris Davison,
Tks for yr help.
I mean vlookup value format and value format in table ray offen automatically change so it can not match each other and formulas can not work.
I want to convert to the format as i typed.
Tks&brgds,
The. Hoat

[ This Message was edited by: nguyenthehoat on 2002-05-08 02:09 ]
nguyenthehoat is offline   Reply With Quote
Old May 8th, 2002, 03:08 AM   #4
nguyenthehoat
New Member
 
Join Date: May 2002
Location: Yazaki Haiphong,Vietnam
Posts: 15
Default

Dear Chris Davison,
Tks for yr help.
I mean vlookup value format and value format in table ray offen automatically change so it can not match each other and formulas can not work.
I want to convert to the format as i typed.
Tks&brgds,
The. Hoat
nguyenthehoat is offline   Reply With Quote
Old May 9th, 2002, 01:24 PM   #5
Chris Davison
MrExcel MVP
 
Join Date: Feb 2002
Location: Millbank, London, UK
Posts: 1,790
Default

I think we nearly understand each other



can I see your spreadhseet, if it's not too private

maybe highlight your problem cells in red also?

novulari@hotmail.com

thanks
Chris Davison is offline   Reply With Quote
Old May 10th, 2002, 06:44 PM   #6
Chris Davison
MrExcel MVP
 
Join Date: Feb 2002
Location: Millbank, London, UK
Posts: 1,790
Default

spreadsheet received

hmmmmm (!)

Formula is as follows :
=VLOOKUP(C388,'1'!$B$2:$C$1556,2,0)
and error value is #N/A

lookup value in c388 :
18403746

=ISNUMBER returns FALSE
=ISTEXT returns TRUE


value in column B on Sheet "1" in the lookup range :
18403746

=ISNUMBER returns FALSE
(however, I can easily show 5 decimal places by clicking the "increase decimal places" button)
=ISTEXT returns TRUE



when I also test them against each other using :
=C388='1'!B68 it returns FALSE

any ideas anyone ?

(spreadhseet is quite big with lots of VLOOKUPS...dunno if a memory problem would cause this though)

ta
Chris
Chris Davison is offline   Reply With Quote
Old May 10th, 2002, 06:52 PM   #7
Chris Davison
MrExcel MVP
 
Join Date: Feb 2002
Location: Millbank, London, UK
Posts: 1,790
Default

The Hoat,

in the meantime, try :

=VLOOKUP(C388*1,'1'!$B$2:$C$1556,2,0)

in JP IMP Cell D388

and :=VLOOKUP(C388*1,'1'!$B$2:$E$914,4,0)

in JP IMP Cell E388

and copy up and down.....


__________________
:: Pharma Z - Family drugstore ::
Chris Davison is offline   Reply With Quote
Old May 10th, 2002, 09:58 PM   #8
Yogi Anand
MrExcel MVP
 
Join Date: Mar 2002
Location: Michigan USA
Posts: 11,452
Default


(spreadhseet is quite big with lots of VLOOKUPS...dunno if a memory problem would cause this though)

ta
Chris


Hi The. Hoat and Chris:
Chris, how large is the file? I wouldn't mind looking at it ... hopefully when we all put our heads together, hopefully we can either resolve the problem or come up with a practical solution.

Regards!
__________________
Regards!

Yogi Anand, D.Eng, P.E.
Energy Efficient Building Network LLC
www.energyefficientbuild.com
Yogi Anand is offline   Reply With Quote
Old May 11th, 2002, 02:25 AM   #9
nguyenthehoat
New Member
 
Join Date: May 2002
Location: Yazaki Haiphong,Vietnam
Posts: 15
Default

Hi Chris Davison,

Thanks for your help.
My file is about 15 MB
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
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:04 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