Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Modify search function
Hi,
I have following formula that needs to be modified. =IF(ISERROR(SEARCH("BOFA",V98)),"0",MID(V98,SEARCH ("- ",V98)+1,99)+0) Seconf search criteria which is "- " can be either "- " or "for". How can i incorporate the second criteria as "for"? Thanks, Dinesh |
#2
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Modify search function
Actually I want to modify the whole text search as following. Disregard the
earlier question. Below is a text string. I want to extract the $ value from it. Text string must have BOFA name on it. Here its get complicated. Precedent to a $ value, there are different type of text string. In the example below is - , in addition to that some time it can be Inc and for as well. Here is my formula which has a - text string and works perfectly. Also can you explain the function of +1, 99)+0) in the formula. =IF(ISERROR(SEARCH("BOFA",D1)),"0",MID(D1,SEARCH("- ",D1)+1,99)+0) Text string Wireless Data Services MLA 6733 SCH 002-000 CSC-71745 Proceeds to BOFA for - 621063.11 "Dinesh" wrote: Hi, I have following formula that needs to be modified. =IF(ISERROR(SEARCH("BOFA",V98)),"0",MID(V98,SEARCH ("- ",V98)+1,99)+0) Seconf search criteria which is "- " can be either "- " or "for". How can i incorporate the second criteria as "for"? Thanks, Dinesh |
#3
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Modify search function
Actually I want to modify the whole text search as following. Disregard the
earlier question. Below is a text string. I want to extract the $ value from it. Text string must have BOFA name on it. Here its get complicated. Precedent to a $ value, there are different type of text string. In the example below is - , in addition to that some time it can be Inc and for as well. Here is my formula which has a - text string and works perfectly. Also can you explain the function of +1, 99)+0) in the formula. =IF(ISERROR(SEARCH("BOFA",D1)),"0",MID(D1,SEARCH("- ",D1)+1,99)+0) test string Wireless Data Services MLA 6733 SCH 002-000 CSC-71745 Proceeds to BOFA for - 621063.11 "Dinesh" wrote: Hi, I have following formula that needs to be modified. =IF(ISERROR(SEARCH("BOFA",V98)),"0",MID(V98,SEARCH ("- ",V98)+1,99)+0) Seconf search criteria which is "- " can be either "- " or "for". How can i incorporate the second criteria as "for"? Thanks, Dinesh |
#4
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Modify search function
Hi,
Use this formula =IF(ISERROR(MID(C18,SEARCH({"-","inc","for"},C18,SEARCH("BOFA",C18,1))+1,50)*1), "",MID(C18,SEARCH({"-","inc","for"},C18,SEARCH("BOFA",C18,1))+1,50) *1) -- Regards, Ashish Mathur Microsoft Excel MVP www.ashishmathur.com "Dinesh" wrote in message ... Actually I want to modify the whole text search as following. Disregard the earlier question. Below is a text string. I want to extract the $ value from it. Text string must have BOFA name on it. Here its get complicated. Precedent to a $ value, there are different type of text string. In the example below is - , in addition to that some time it can be Inc and for as well. Here is my formula which has a - text string and works perfectly. Also can you explain the function of +1, 99)+0) in the formula. =IF(ISERROR(SEARCH("BOFA",D1)),"0",MID(D1,SEARCH("- ",D1)+1,99)+0) Text string Wireless Data Services MLA 6733 SCH 002-000 CSC-71745 Proceeds to BOFA for - 621063.11 "Dinesh" wrote: Hi, I have following formula that needs to be modified. =IF(ISERROR(SEARCH("BOFA",V98)),"0",MID(V98,SEARCH ("- ",V98)+1,99)+0) Seconf search criteria which is "- " can be either "- " or "for". How can i incorporate the second criteria as "for"? Thanks, Dinesh |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Modify array function length | Excel Worksheet Functions | |||
Is there a way to modify the DAYS360 function to accomadate a 365 | Excel Worksheet Functions | |||
How do I modify the autofit function in Excel? | Excel Discussion (Misc queries) | |||
Can I modify cell attributes (font,color etc.) based on function . | Excel Discussion (Misc queries) | |||
Can I modify a Hyperlink with a function? | Excel Discussion (Misc queries) |