Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.misc
|
|||
|
|||
Reverse Find
I want to use the Find function but I want to get the result going
from right to left. For example if I am searching for a space " ", Steve Scott 75 - I want the find to return 3 NOT 6 Al Smith 4 - I want the find to return 2 Not 3 How can I modify this FIND(" ",A1) Thanks |
#2
Posted to microsoft.public.excel.misc
|
|||
|
|||
Reverse Find
This will work, if there are ALWAYS two blanks in the cell. It works
by nesting a Find within a Find, starting the outer Find using the inner Find as a parameter. It subtracts that result from the overall length of the string itself, adding 1 to account for the non-zero start. =LEN(A1)+1-FIND(" ",A1,FIND(" ",A1,1)+1) |
#3
Posted to microsoft.public.excel.misc
|
|||
|
|||
Reverse Find
Sub findlast()
For Each c In Range("e1:e2") p = Len(c) - InStrRev(c, " ") + 1 MsgBox p Next End Sub -- Don Guillett Microsoft MVP Excel SalesAid Software "snax500" wrote in message ps.com... I want to use the Find function but I want to get the result going from right to left. For example if I am searching for a space " ", Steve Scott 75 - I want the find to return 3 NOT 6 Al Smith 4 - I want the find to return 2 Not 3 How can I modify this FIND(" ",A1) Thanks |
#4
Posted to microsoft.public.excel.misc
|
|||
|
|||
Reverse Find
Searching A1 for the character in C1:
=MAX((MID(A1,ROW(INDIRECT("1:"&LEN(A1))),1)=C1) *ROW(INDIRECT("1:"&LEN(A1)))) (array-enter this formula with Ctrl + Shift+ Enter) - David On Aug 1, 10:24 am, snax500 wrote: I want to use the Find function but I want to get the result going from right to left. For example if I am searching for a space " ", Steve Scott 75 - I want the find to return 3 NOT 6 Al Smith 4 - I want the find to return 2 Not 3 How can I modify this FIND(" ",A1) Thanks |
#5
Posted to microsoft.public.excel.misc
|
|||
|
|||
Reverse Find
See also: http://j-walk.com/ss///excel/usertips/tip079.htm
- David On Aug 1, 10:24 am, snax500 wrote: I want to use the Find function but I want to get the result going from right to left. For example if I am searching for a space " ", Steve Scott 75 - I want the find to return 3 NOT 6 Al Smith 4 - I want the find to return 2 Not 3 How can I modify this FIND(" ",A1) Thanks |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
reverse value | Excel Worksheet Functions | |||
reverse value | Excel Worksheet Functions | |||
reverse order | Excel Discussion (Misc queries) | |||
How do I do a Reverse Find/Search in Excel? | Excel Worksheet Functions | |||
Reverse Sum | Excel Discussion (Misc queries) |