AutoFill detects the pattern between the first two cells.
AutoFill sees the difference between 2 and 4 is +2, so it continues adding 2 each step: 2, 4, 6, 8, 10. Cell A5 is the 5th value, which is 10.
Flash Fill learns from the example you provide.
To get initials, you must type the exact desired output in B2, which is "JD" for "John Doe". Flash Fill then fills the rest automatically.
Look at the difference in days between the first two dates.
The difference between 01/01/2024 and 01/03/2024 is 2 days. AutoFill continues adding 2 days each step: 01/01, 01/03, 01/05, 01/07, 01/09. So A5 is 01/09/2024.
Flash Fill shortcut is Ctrl+E after typing an example.
Typing the first name example and pressing Ctrl+E triggers Flash Fill to extract first names automatically.
AutoFill tries to detect a pattern but stops when data types differ.
Because of the text in A3, AutoFill treats the series as text and repeats the pattern. The value in A8 will be "Text" repeating the pattern.