1. Extract the first category that starts with “G”
| Category | Month | Budgeted | Actual | Variance |
| Rent | Jan | 1200 | 1200 | 0 |
| Groceries | Jan | 300 | 350 | -50 |
| Utilities | Jan | 150 | 130 | 20 |
| Entertainment | Jan | 100 | 150 | -50 |
=REGEXEXTRACT(A2, "^G\\w+")Result: Groceries
The formula looks at cell A2, which contains "Rent", but the pattern ^G\w+ seeks a word that begins with G. Because A2 does not match, the function evaluates the next cell in the column when dragged down. In row 3 (A3) the value is "Groceries", which satisfies the pattern, so REGEXEXTRACT returns that exact word.