Bruce White
New Member
- Joined
- Feb 29, 2008
- Messages
- 5
I need to find the position of the first non-numeric character in a text string. I have a text string in a column named "Right". Here is the Excel function I use:
=MIN(FIND({"A";"B";"C";"D";"E";"F";"G";"H";"I";"J";"K";"L";"M";"N";"O";"P";"Q";"R";"R";"S";"T";"U";"V";"W";"X";"Y";"Z"},[@Right]&
"ABCDEFGHIJKLMNOPQRSTUVWXYZ",1))
[@Right] is used because my data is a table.
When I try to use this function in a PowerPivot table, the semi-colons get flagged as not the correct syntax. The individual letters in brackets and the addition of the entire alphabet at the end of the string in [@Right] is to prevent an error coming from the FIND function.
Anyone know how to do something equivalent in PowerPivot?
Thanks!
Bruce
=MIN(FIND({"A";"B";"C";"D";"E";"F";"G";"H";"I";"J";"K";"L";"M";"N";"O";"P";"Q";"R";"R";"S";"T";"U";"V";"W";"X";"Y";"Z"},[@Right]&
"ABCDEFGHIJKLMNOPQRSTUVWXYZ",1))
[@Right] is used because my data is a table.
When I try to use this function in a PowerPivot table, the semi-colons get flagged as not the correct syntax. The individual letters in brackets and the addition of the entire alphabet at the end of the string in [@Right] is to prevent an error coming from the FIND function.
Anyone know how to do something equivalent in PowerPivot?
Thanks!
Bruce