Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 7
Default how to create function

How can I create a function to pick out a selection of numbers that is
greater than 900,000,000?

How can I create a function to pick out the second letter of a last name if
the second letter is an "f"?

How can I create a function to pick out a name if the name does not contain
a lastname, first initial of the first name?


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 210
Default how to create function

For the first function, you could write something similar to the following:

public function numFind(rng as range)
for each cl in rng.cells
if cl.value 900000000 then
iCount=iCount+1
end if
next
numFind = iCount
end function
--
http://HelpExcel.com




"bsatstudent5" wrote:

How can I create a function to pick out a selection of numbers that is
greater than 900,000,000?

How can I create a function to pick out the second letter of a last name if
the second letter is an "f"?

How can I create a function to pick out a name if the name does not contain
a lastname, first initial of the first name?


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,574
Default how to create function

For the first question: =COUNTIF(A1:A100,"900000000")

For the second question: =IF(LEFT(A1,2)="f",LEFT(A1,2),"")

I don't understand the third question.

Dave
--
Brevity is the soul of wit.


"galimi" wrote:

For the first function, you could write something similar to the following:

public function numFind(rng as range)
for each cl in rng.cells
if cl.value 900000000 then
iCount=iCount+1
end if
next
numFind = iCount
end function
--
http://HelpExcel.com




"bsatstudent5" wrote:

How can I create a function to pick out a selection of numbers that is
greater than 900,000,000?

How can I create a function to pick out the second letter of a last name if
the second letter is an "f"?

How can I create a function to pick out a name if the name does not contain
a lastname, first initial of the first name?


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
How to create data tables and is there a payback period function Austen T Excel Worksheet Functions 0 July 18th 06 05:08 PM
numerical integration integreat Excel Discussion (Misc queries) 4 May 12th 06 02:40 AM
Custom functions calculating time arguments Help Desperate Bill_De Excel Worksheet Functions 12 April 25th 06 02:22 AM
Create a function wher last digit is always set mcd_fan Excel Worksheet Functions 4 July 9th 05 04:07 AM
How to create a formula for this function. How to create a forrmula Excel Worksheet Functions 1 April 6th 05 07:22 AM


All times are GMT +1. The time now is 02:54 PM.

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

About Us

"It's about Microsoft Excel"