Dashboard Mode - Split text to columns
Goal
We want to separate full names into first and last names automatically. This helps us organize data better.
We want to separate full names into first and last names automatically. This helps us organize data better.
| Full Name | Age |
|---|---|
| John Smith | 28 |
| Mary Johnson | 34 |
| Linda Lee | 45 |
| James Brown | 22 |
| Patricia Davis | 31 |
=INDEX(SPLIT(A2, " "), 1) extracts the first name from the split text.=INDEX(SPLIT(A2, " "), 2) extracts the last name from the split text.Formulas are dragged down from row 2 to row 6 to cover all data.
+----------------+-----+------------+-----------+ | Full Name | Age | First Name | Last Name | +----------------+-----+------------+-----------+ | John Smith | 28 | John | Smith | | Mary Johnson | 34 | Mary | Johnson | | Linda Lee | 45 | Linda | Lee | | James Brown | 22 | James | Brown | | Patricia Davis | 31 | Patricia | Davis | +----------------+-----+------------+-----------+
You can add a filter on the Age column to show only people above or below a certain age. When you filter, the First Name and Last Name columns update automatically because they depend on the Full Name column.
Add a filter to show only rows where Age is greater than 30. Which first and last names remain visible?