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 21st, 2002, 09:01 AM   #1
Tojje
New Member
 
Join Date: May 2002
Posts: 15
Default

Dear all,

a problem I have never experienced before occured today.

If I do calculations in a cell and the result of that becomes more then 15 digits. That is a problem for me when excel cant handle more then 15 digits.
Is there a way for me to come around that ?
(every digit needs to be present in the cell when other calculations are based on this figure )

Thanks for your help !
Many thanks
/JE
Tojje is offline   Reply With Quote
Old May 21st, 2002, 09:06 AM   #2
Mark W.
MrExcel MVP
 
Join Date: Feb 2002
Location: Austin, Texas USA
Posts: 11,654
Default

What's the calculation?
Mark W. is offline   Reply With Quote
Old May 21st, 2002, 09:12 AM   #3
bergy
Board Regular
 
Join Date: Apr 2002
Posts: 112
Default

I found this in the help files. Doesn't sound good...

Regardless of the number of digits displayed, Microsoft Excel stores numbers with up to 15 digits of precision. If a number contains more than 15 significant digits, Microsoft Excel converts the extra digits to zeros (0).
bergy is offline   Reply With Quote
Old May 21st, 2002, 09:16 AM   #4
Tojje
New Member
 
Join Date: May 2002
Posts: 15
Default

I am involved in a barcode project.
A partnumber may look like this H7491490201J2 and to calculate the Check Character in a barCode you need to add each figure in the partnumber (H+7+4+9+1+4+9+0+2+0+1+J+2) Each letter needs to be translated into a figure i.e H=17 etc.

If you are to add each figure in that partnumber you need to translate H with 881 which becomes 17 when added together. If you have a partnumber including more then 2 letters it will end up to more then 15 digits and thats were I am today.

/JE

Tojje is offline   Reply With Quote
Old May 21st, 2002, 09:24 AM   #5
Mark W.
MrExcel MVP
 
Join Date: Feb 2002
Location: Austin, Texas USA
Posts: 11,654
Default

Are you adding or concatenating? Because if you're adding I don't see how you're exceeding 15 digits. What is the check value for H7491490201J2? What are the subsequent calculations that you're performing on the check value?

[ This Message was edited by: Mark W. on 2002-05-21 08:25 ]
Mark W. is offline   Reply With Quote
Old May 21st, 2002, 09:39 AM   #6
Tojje
New Member
 
Join Date: May 2002
Posts: 15
Default

H7491490201J2 is a 13 digit number, but to make calculations you need to convert the H and J into figures.
H respresents 17
J represents 19

Due to I need to add each figure and then get the sum of that I cant just add 17 due to the actual sum of that is 8 and NOT 17. so the solution for that is to put, for instance, 881 which reslut in the sum of 17 etc.

It ends up being more then 15 digits in a cell where the original partnumber contains letters.

/JE
Tojje is offline   Reply With Quote
Old May 21st, 2002, 09:42 AM   #7
Mark W.
MrExcel MVP
 
Join Date: Feb 2002
Location: Austin, Texas USA
Posts: 11,654
Default

What is the check value for H7491490201J2? What are the subsequent calculations that you're performing on the check value?
Mark W. is offline   Reply With Quote
Old May 21st, 2002, 10:05 AM   #8
Tojje
New Member
 
Join Date: May 2002
Posts: 15
Default

Ok !

Everything is based on the sum of adding each figure in a cell. ( After converting letters into digits )

The complete ProductNumber look like this from start:
+H7491490201J2

This results after convertion in the below figure:
9999588174914902019912 (22 digit number which are causing all problems due to the 15 figures limit)

The CheckSum from this is 116

From that, using Modulus 43 calculations, I get a remainder of 30

The figure 30 is then converted into a Modulus 43 Chech Character which in this example becomes the letter U

This letter is then added to the original partnumber,at the end.(+H7491490201J2U)

NB! The partnumber used when order a such product, which is typed into our ordering system is: H7491490201J2
I need to calculate the CheckCharacter for thousnads of products to build up an easy BarCode convertion table so we in the end can implement such an ordering system for our customers. We do not have a list today over how each barcode reads copared to the actual partnumber put into our ordering system. This information is not optainable for us due to centraslization of our warhouse.

Hope that clear a few thing out.
The main thing though is how to come around the 15 digit block within Excel

Regards
/JE
Tojje is offline   Reply With Quote
Old May 21st, 2002, 11:10 AM   #9
Mark W.
MrExcel MVP
 
Join Date: Feb 2002
Location: Austin, Texas USA
Posts: 11,654
Default

Okay, store your 22-digit value as text, "9999588174914902019912" (in cell A1) . Use the array formula...

{=SUM(MID(A1,ROW(INDIRECT("1:"&LEN(A1))),1)+0)}

... to calculate the CheckSum, 116, and go from there.

Note: Array formulas must be entered using the Control+Shift+Enter key combination. The outermost braces, { }, are not entered by you -- they're supplied by Excel in recognition of a properly entered array formula.


[ This Message was edited by: Mark W. on 2002-05-21 10:11 ]
Mark W. is offline   Reply With Quote
Old May 21st, 2002, 11:57 AM   #10
Tojje
New Member
 
Join Date: May 2002
Posts: 15
Default

I appreciate your intentions with helping me out but I can not format all cells into "Text" due to it ends up with something like : 8,56497E+14 and that is not applicable when applying the formula. The formula is one I already use for calculating the CheckSum but with more then 15 digits its not possible.

When converting the letters in a productnumber I use the "Replace" function due to the ampunt of partnumbers to convert. I then end up with the result looking similar to the above mention figure( when formatted all cells into text fields)

I am afraid I need another solution if there is one ?

Regards
JE
Tojje 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 11:31 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