Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 14
Default Formula as User Defined Function

How do I get the following formula to work as a user defined function.

=if(a1=9,(b1+1),b1) and paste the result in cell c1

It would then have to work in row 2, 3 etc referering to those rows.

Thank you,

Esther
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,885
Default Formula as User Defined Function

Hi
why do you want a UDF for this?. will slow down your Excel sheet and
won't be much simpler? Just copy this formula down

--
Regards
Frank Kabel
Frankfurt, Germany

"EstherJ" schrieb im Newsbeitrag
...
How do I get the following formula to work as a user defined

function.

=if(a1=9,(b1+1),b1) and paste the result in cell c1

It would then have to work in row 2, 3 etc referering to those rows.

Thank you,

Esther


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 14
Default Formula as User Defined Function

I have been copying down the formulas and then copying and pasting the
value, but I'm doing this for 4 columns of formulas over about 2000 rows. I
was looking for an easier solution as I have to recalculate the coumns
sometimes.

Thanks,

Esther

"Frank Kabel" wrote:

Hi
why do you want a UDF for this?. will slow down your Excel sheet and
won't be much simpler? Just copy this formula down

--
Regards
Frank Kabel
Frankfurt, Germany

"EstherJ" schrieb im Newsbeitrag
...
How do I get the following formula to work as a user defined

function.

=if(a1=9,(b1+1),b1) and paste the result in cell c1

It would then have to work in row 2, 3 etc referering to those rows.

Thank you,

Esther



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,885
Default Formula as User Defined Function

Hi
a UDF has to be copied in the same way. You may consider using a macro
inserting the formulas but normally copy/paste should be easier. e.g.
- insert the formula in the first row
- double click on the lower right corner of this formula cell. Excel
should copy the formula for all rows automatically

--
Regards
Frank Kabel
Frankfurt, Germany


EstherJ wrote:
I have been copying down the formulas and then copying and pasting
the value, but I'm doing this for 4 columns of formulas over about
2000 rows. I was looking for an easier solution as I have to
recalculate the coumns sometimes.

Thanks,

Esther

"Frank Kabel" wrote:

Hi
why do you want a UDF for this?. will slow down your Excel sheet and
won't be much simpler? Just copy this formula down

--
Regards
Frank Kabel
Frankfurt, Germany

"EstherJ" schrieb im Newsbeitrag
...
How do I get the following formula to work as a user defined

function.

=if(a1=9,(b1+1),b1) and paste the result in cell c1

It would then have to work in row 2, 3 etc referering to those

rows.

Thank you,

Esther


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
user defined function tom_mcd Excel Worksheet Functions 1 January 6th 09 06:23 PM
user defined function driller Excel Worksheet Functions 1 November 18th 06 04:51 PM
user defined function Brian Rogge Excel Worksheet Functions 5 May 23rd 05 06:21 PM
User-defined data type; Error: Only User-defined types... tiger_PRM Excel Programming 1 July 18th 04 03:32 PM
User-Defined Function pre-empting Built-in Function? How to undo???? MarWun Excel Programming 1 August 6th 03 09:31 PM


All times are GMT +1. The time now is 12:16 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"