Flash Fill in Excel is a new feature that was introduced in Excel 2013. Flash Fill allows you to combine, extract, move & transform data that belongs in one column, into a new column.
One of the cool uses of Flash Fill is extracting the numbers from your text automatically.
To demonstrate the power of Excel’s Flash Fill, we will start off with the following table of data:
Our mission is to extract the numbers from within the text cells. We can use a VBA macro or complex formulas (which will take time to figure out and implement) or simply use Flash Fill…
STEP 1: Type 803.45 as the first entry in the Extracted Number column:
STEP 2: In the second entry, once you type the first number 4 of 47512, Excel will auto-suggest to Flash Fill the rest of the numbers.
Excel is smart enough to infer that you are trying to extract the numbers in the text.
If the Flash Fill looks good, press Enter.
*** IMPORTANT: If Flash Fill doesnt’ start automatically in your selected cell when you type in data that matches a pattern, you will need to start Flash Fill manually.
This is done by clicking on Data > Flash Fill or by pressing the Flash Fill keyboard shortcut CTRL+E
What is very impressive is regardless of the location of the number i.e. Beginning, middle or the end, Excel was able to extract this number without the use of a single formula or VBA!