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 17th, 2002, 04:33 PM   #1
youbet7469
New Member
 
Join Date: Mar 2002
Posts: 12
Default

Hello,
First want to thank all of you who worked on the counting in bases functions. Your assistance is greatly appreciated.

In our discussion it was deteremined that the correct way to count in bases is
For example base 5:
0-1-2-3-4-10-11-12-13-14-20-21-22-23-24-30

Is there a way to adjust the formula so that counting in base 5 would appear as I initially had thought it should appear:
1-2-3-4-5-11-12-13-14-15-21-22-23-24-25-31

Basically am looking to "bump" everything to the right one place and skip the "zeros"
Granted this isn't "textbook" but if someone thinks this can be done I'd greatly appreciate it.

Best Regards,
Greg
youbet7469 is offline   Reply With Quote
Old Apr 17th, 2002, 05:36 PM   #2
Jay Petrulis
MrExcel MVP
 
Jay Petrulis's Avatar
 
Join Date: Mar 2002
Location: Chicago, IL USA
Posts: 2,042
Default

Quote:
On 2002-04-17 15:33, youbet7469 wrote:
Hello,
First want to thank all of you who worked on the counting in bases functions. Your assistance is greatly appreciated.

In our discussion it was deteremined that the correct way to count in bases is
For example base 5:
0-1-2-3-4-10-11-12-13-14-20-21-22-23-24-30

Is there a way to adjust the formula so that counting in base 5 would appear as I initially had thought it should appear:
1-2-3-4-5-11-12-13-14-15-21-22-23-24-25-31

Basically am looking to "bump" everything to the right one place and skip the "zeros"
Granted this isn't "textbook" but if someone thinks this can be done I'd greatly appreciate it.

Best Regards,
Greg
Unless you are working with the bases with alpha characters, would adding one work? Find the base conversion with the UDF and add one to it.

Most important: Don't mess with Damon's function.

As an aside, why do you want to do this, anyway?

Bye,
Jay


Jay Petrulis is offline   Reply With Quote
Old Apr 18th, 2002, 02:03 PM   #3
youbet7469
New Member
 
Join Date: Mar 2002
Posts: 12
Default

Hey Jay,

Thanks for the reply... I didn't realize earlier that you were the one who answered my other question as well.

I've tried adding one to a number of places in the formula you guys gave me along with adding one to each cell in excel and neither have provided me with satisfactory results.

You asked my why I'm looking to do this. I'm doing some research on Egyptian Counting and the below paragraph should give you an idea of why I'm looking to count in this way

"The Egyptians, though, had no concept for zero. The zero was invented independently both by the Indians (thanks to Ranjeev Ravi for pointing this out) and the Maya. The Indians used a space for zero, and the Maya used a symbol for zero in their calendars in the 3rd century AD. Eventually, the Indians came to use a dot for zero, which was picked up by the Arabs. Through the Arabs, the number zero reached European civilisation after 800 AD. The ancient Egyptians, as with the ancient Greeks and Romans, had no use for zero."

Counting in base three with no concept for zeros would go as follows:
1,2,3,11,12,13,21,22,23,31,32,33,111,112,113,121,122,123,131,132,133,211,212,213,221,222,223,231,232,233,311,312,313,321 ,322,323,331,332,333,1111 etc....

I think the difficulty in attempting to do this is going to be getting rid of the zeros.
Is there a way to do this? Let me know what you think

Thanks again for all your help!
Best Regards,
Greg


youbet7469 is offline   Reply With Quote
Old Apr 18th, 2002, 03:48 PM   #4
Al Chara
MrExcel MVP
 
Join Date: Feb 2002
Location: Monterrey, Mexico
Posts: 1,433
Default

Basically you want something that would act like a binary code, but instead of the binary being 1,0 you want it to be 1,2,3,4,5.

So it would look something like:
1,2,3,4,5,11,12,13,14,15,21,22,23,24,25,31,32,33,34,35,41,42,43,44,45,51,52,53,54,55,111,112,113,114,115,...

Is this what you are looking to try and do?
__________________
Kind regards,

Al Chara
Al Chara is offline   Reply With Quote
Old Apr 18th, 2002, 11:16 PM   #5
youbet7469
New Member
 
Join Date: Mar 2002
Posts: 12
Default

Al, yes that is exactly what I am looking for. I'd definetly like to do it for all bases 3 thru 9 if we could go do even higher bases that would be great too.
youbet7469 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 02:47 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