What creative formula will be able to find and extract only the number from a cell with string like this: abc1233efg. Answer is 1233. length and number of characters is not fixed.
On your spreadsheet in the cell where the formula is. On the Formula tab, click on Evaluate Formula, then keep clicking Evaluate until it gets to the answer and you can see what it is doing.
But basically, it's finding the position of the first number, then making an array of 1 to 15 character strings. It adds 0 to try and coerce each of these values to a number. LOOKUP(9.99999999E+307 will find the last number in this array while ignoring errors and this is your number.
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.