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 Mar 26th, 2002, 12:19 PM   #1
Chris Davison
MrExcel MVP
 
Join Date: Feb 2002
Location: Millbank, London, UK
Posts: 1,790
Default

Evening all,

What's this procedure called ?

activate B1
insert
names
define
refers to : =a1*1.25
name it "addtax"
add it

I know it's not naming a range and I don't think it's a UDF, don't they need VBA ?, what are these called ?

ta
Chris
Chris Davison is offline   Reply With Quote
Old Mar 26th, 2002, 12:31 PM   #2
Jack in the UK
Board Regular
 
Join Date: Feb 2002
Posts: 3,064
Default

Hi Chris...

Funny feel like we just spoke... remind me to email you a newsletter on UDF i have its the dogs business, A pal Dave Hawley did it, lift from his site or ill mail tommorow if you mail me you know ill forget else wise.

you are treading on the gurus world of formatting cells in UDF tyson stylie! and so UDF it is.. read the newsletter and you be a guru for sure.

PS UDF are not all VBA.. As i have told you verbally before VBA id mega cool but not always needed, Aladin and Dave will tell anyone this as will the top gurus in the Excel field.. VBA UDF are SLOOOOOOW!

In front end are fast.... but VBA willallow the really complex stuff like convertions functions cant do.. rememebr ALWAYS functions return a answer not take otr make actions... make sence! I do hope i do make some sence.

BTW for them wanting to track the work i talk of so hightly.. read it and rea reda and stick with..

see archive news letters cant recall the edition, see:

http://www.ozgrid.com.

Cheers Dave....

__________________
Free Excel based Web Toolbar available here.

Jack in the UK
J & R Excel Solutions
"making Excel work for you"
Jack in the UK is offline   Reply With Quote
Old Mar 26th, 2002, 01:36 PM   #3
Juan Pablo González
MrExcel MVP
 
Join Date: Feb 2002
Location: Bogota, Colombia
Posts: 11,927
Default

Jack, one quick word.

A good designed UDF can kick *** on a lot of formulae... for example, try to do the FuzzyMatch challenge with formulas... it's doable, I agree, but, it will take A LOT of Excel formulas, and just one UDF !

So, they're not the Devil !!!
__________________
Regards,

Juan Pablo González
http://www.juanpg.com
Juan Pablo González is offline   Reply With Quote
Old Mar 26th, 2002, 01:45 PM   #4
Jack in the UK
Board Regular
 
Join Date: Feb 2002
Posts: 3,064
Default

Im preplexed ......

I agree UDF is cool and fast buty not in VBA where that can be slooow! IN open play yes they are super cool, is that not what i said in my post?

I advise against UDF or VBA Custom function just as they can be slow and bloat sheet size, i have not said no good or dont use them, its my opionion... not that i am correct, just my way.

Im not arguing or disagreeing with you just dont agree, you your way me mine is that not the wonderful thing of this site diofferent opinions and ways to work?

Read my post i feel i do really agree with you comments bar why VBA if front end excel will do in UDF???

We may not agree but we will not disagree either.


__________________
Free Excel based Web Toolbar available here.

Jack in the UK
J & R Excel Solutions
"making Excel work for you"
Jack in the UK is offline   Reply With Quote
Old Mar 26th, 2002, 03:04 PM   #5
Aladin Akyurek
MrExcel MVP
 
Aladin Akyurek's Avatar
 
Join Date: Feb 2002
Location: The Hague
Posts: 50,317
Default

Quote:
On 2002-03-26 11:19, Chris Davison wrote:
Evening all,

What's this procedure called ?

activate B1
insert
names
define
refers to : =a1*1.25
name it "addtax"
add it

I know it's not naming a range and I don't think it's a UDF, don't they need VBA ?, what are these called ?

ta
Chris
Chris: The result is called a named formula. However, the mechanism that you use is the same as when you create a range name (dynamic or not). It's definitely not a UDF which are always written in VBA. But a UDF can also be written in C or LISP (which I'd like to have) provided that there are predefined hooks for C and/or LISP in Excel.

Aladin
Aladin Akyurek is offline   Reply With Quote
Old Mar 27th, 2002, 01:23 PM   #6
Chris Davison
MrExcel MVP
 
Join Date: Feb 2002
Location: Millbank, London, UK
Posts: 1,790
Default

named formula...

thanks Aladin



My question now is that when I do this exact named formula in sheet 1, it works fine in any cell......

when I try it in sheet 2, nothing happens

looking at the named formula, it carries the =sheet1! precursor

is there any way to make it "relative" within different sheets ?

surely such a great weapon isn't confined to the sheet it was concieved on ?

many thanks
Chris
Chris Davison is offline   Reply With Quote
Old Mar 27th, 2002, 01:55 PM   #7
Yogi Anand
MrExcel MVP
 
Join Date: Mar 2002
Location: Michigan USA
Posts: 11,452
Default

Quote:
On 2002-03-27 12:23, Chris Davison wrote:
named formula...

thanks Aladin



My question now is that when I do this exact named formula in sheet 1, it works fine in any cell......

when I try it in sheet 2, nothing happens

looking at the named formula, it carries the =sheet1! precursor

is there any way to make it "relative" within different sheets ?

surely such a great weapon isn't confined to the sheet it was concieved on ?

many thanks
Chris
Hi Chris:
The NAMED FUNCTION, as Aladin expalined is an interesting one. You said you used the NAMED FUNCTION as SheetA1!*1.25
If it is named this way you can go to any worksheet in that workbook and key in anywhere
=Addtax ... it will result in sheet1!A1*1.25

However if you want it to read value of cell from the related worksheet, modify the NAMED FUNCTION to read as !A1*1.25

Now if you go to sheet1 and have entry 6 in in cell A1
Then keying -in anywhere in sheet1 will give you 6*1.25=7.5

However if you go to sheet2 and have 4 in cell A1
then keying-in Addtax anywhere in that sheet will now give you 4*1.25=5

soreplacing the sheet! with ! normalizes the sheet name

I apologize for the long winded description!


__________________
Regards!

Yogi Anand, D.Eng, P.E.
Energy Efficient Building Network LLC
www.energyefficientbuild.com
Yogi Anand is offline   Reply With Quote
Old Mar 27th, 2002, 02:14 PM   #8
Jack in the UK
Board Regular
 
Join Date: Feb 2002
Posts: 3,064
Default

Hi Chris

Sounds like ive bben ripped apart! erm..

But

Of cause just as you would add A1 in one shhet to A2 in shhet 2, all the same.... cant recall if anchers as you call em i call em fixed are needed,, poss not try it...

Still call em UDF but thats my way and sure as you have seen call em XYZ we all know em the same.. maybe a street south london term needed if badly spelt one... UDF in open play non VBA that is... i must send you some your see what i mean.

VERY powerful..

same way we name cell ie VAT and put vat in cell and it calculates.. same idea all time saving and short cutting.

Take care mate...


__________________
Free Excel based Web Toolbar available here.

Jack in the UK
J & R Excel Solutions
"making Excel work for you"
Jack in the UK is offline   Reply With Quote
Old Mar 27th, 2002, 02:18 PM   #9
Aladin Akyurek
MrExcel MVP
 
Aladin Akyurek's Avatar
 
Join Date: Feb 2002
Location: The Hague
Posts: 50,317
Default

Quote:
On 2002-03-27 12:23, Chris Davison wrote:
named formula...

thanks Aladin

[img]/board/images/smiles/icon_smile.gif[/img]

My question now is that when I do this exact named formula in sheet 1, it works fine in any cell......

when I try it in sheet 2, nothing happens

looking at the named formula, it carries the =sheet1! precursor

is there any way to make it "relative" within different sheets ?

surely such a great weapon isn't confined to the sheet it was concieved on ?

many thanks
Chris
[img]/board/images/smiles/icon_smile.gif[/img]
Chris,

Start with an empty WB.
Activate B1 in some sheet.
Activate Insert|Name|Define.
Enter addtax as name in the Names in Workbook box.
Enter as formula in the Refers to box:

=!A1*1.25

Click OK.

Put anywhere in any sheet a number and next to it:

=addtax

Aladin

Aladin Akyurek is offline   Reply With Quote
Old Mar 27th, 2002, 02:25 PM   #10
Chris Davison
MrExcel MVP
 
Join Date: Feb 2002
Location: Millbank, London, UK
Posts: 1,790
Default

Yogi and Aladin,

great stuff ! thanks a million

Jack,

HIya mate - I call it "anchor" cos of the $ sign - it looks like a ship's anchor

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 06:34 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