Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 493
Default If function with Another Function

I have a function that extracts the number only from a string. Example: Cell
A1: Fund: fhks99al, Cell B1 with function =NumberOnly(A1) will result in 99.
Now I have a list in column A where some of the values do not have "Fund:" I
only want to be able to extract the ones that have Fund: and the others can
be blank with no values. This seems to be an If function but can't seem to
accomplish it.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10,593
Default If function with Another Function

=IF(ISNUMBER(Find("Fund",A1)),NumberOnly(A1),"")

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"Alex" wrote in message
...
I have a function that extracts the number only from a string. Example:
Cell
A1: Fund: fhks99al, Cell B1 with function =NumberOnly(A1) will result in
99.
Now I have a list in column A where some of the values do not have "Fund:"
I
only want to be able to extract the ones that have Fund: and the others
can
be blank with no values. This seems to be an If function but can't seem
to
accomplish it.



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,836
Default If function with Another Function

This seems to work:
=MID(A1,FIND("Fund:",A1&"Fund:"),999)

Test it and see for yourself.

Regards,
Ryan---

--
RyGuy


"Alex" wrote:

I have a function that extracts the number only from a string. Example: Cell
A1: Fund: fhks99al, Cell B1 with function =NumberOnly(A1) will result in 99.
Now I have a list in column A where some of the values do not have "Fund:" I
only want to be able to extract the ones that have Fund: and the others can
be blank with no values. This seems to be an If function but can't seem to
accomplish it.

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default If function with Another Function

My guess from the OP's post is that he would only want to find "Fund:" at
the beginning of the text. While I'm guessing it would be a highly unlikely
occurrence, your formula would return the value even if an entry has "Fund:"
occurring in the second or later position (for example, "abcFund:fhks99al").

Rick


"ryguy7272" wrote in message
...
This seems to work:
=MID(A1,FIND("Fund:",A1&"Fund:"),999)

Test it and see for yourself.

Regards,
Ryan---

--
RyGuy


"Alex" wrote:

I have a function that extracts the number only from a string. Example:
Cell
A1: Fund: fhks99al, Cell B1 with function =NumberOnly(A1) will result in
99.
Now I have a list in column A where some of the values do not have
"Fund:" I
only want to be able to extract the ones that have Fund: and the others
can
be blank with no values. This seems to be an If function but can't seem
to
accomplish it.


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
copy of excel file not showing formulal/function in the function b oaallam Excel Discussion (Misc queries) 4 September 6th 07 01:20 PM
LINKEDRANGE function - a complement to the PULL function (for getting values from a closed workbook) [email protected] Excel Worksheet Functions 0 September 5th 06 03:44 PM
Offset function with nested match function not finding host ss. MKunert Excel Worksheet Functions 1 March 21st 06 10:46 PM
Emulate Index/Match combo function w/ VBA custom function Spencer Hutton Excel Worksheet Functions 2 May 2nd 05 05:26 PM
Nested IF Function, Date Comparing, and NetworkDays Function carl Excel Worksheet Functions 2 December 29th 04 09:57 PM


All times are GMT +1. The time now is 04:14 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"