Computers & Electronics
Hobbies & Leisure
Programming
Reference
Software
Extract Number from Text String using Excel VBA
11K views
·
May 17, 2023
Visit Channel:computergaga.com
Extract number from text string into a different cell.
This video looks at using Excel VBA to extract a number from a text string. A formula can be used but would have been monstrous and heavy for the spreadsheet, so VBA was preferred.
This video provides a walkthrough the code explaining the different aspects of it. You see the code in actions is we step through it.
The procedure will loop through the characters in the string for a numeric value and store its position. It then loops through the characters for a non-numeric character to find the end of the string of numbers.
The MID function is used to print the numbers to the column offset to the right just like text to columns does.
Find more great free tutorials at;
https://www.computergaga.com
*** Online Excel Courses ***
The Ultimate Excel Course – Learn Everything ► https://bit.ly/UltimateExcel
Excel VBA for Beginners ► http://bit.ly/37XSKfZ
Advanced Excel Tricks ► https://bit.ly/3CGCm3M
Excel Formulas Made Easy ► http://bit.ly/2ujtOAN
Creating Sports League Tables and Tournaments in Excel ► http://bit.ly/2Siivkm
Connect with us!
LinkedIn ► https://www.linkedin.com/company/18737946/
Instagram ► https://www.instagram.com/computergaga1/
Twitter ► http://www.twitter.com/computergaga1
Show More
Show LessComments
loading text loading
loading text loading
loading text
loading text loading
loading text
loading text loading
loading text
loading text loading
loading text