Find first non-numeric character in text string

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
 

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.
ouch. I hope somebody else has a good idea, cuz my best so far is "don't do that" :) Like, is it possible to do this BEFORE you get to Power Pivot?

MIN() isn't really supported in the way you used it (Power Pivot has min, but its for columns of data).
There is FIND() and SEARCH(), but they don't support passing multiple values like your whacky excel array range syntax thingy.

It is certainly POSSIBLE to do this in Power Pivot, but I can't think of way that isn't pretty complicated. Anybody else?
 
Upvote 0

Forum statistics

Threads
1,224,016
Messages
6,175,947
Members
452,689
Latest member
spookralls

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top