How to group ages in ranges with VLOOKUP in Excel?
In my sheet, I have some names and ages, and some age groups, now I want to group the ages based on the given age groups as below screenshot shown. How can I quickly solve it?
Group ages in ranges by using VLOOKUP
Group ages in ranges by using VLOOKUP
To handle this job, you can use the VLOOKUP function in Excel.
Select the cell next to the ages you want to group, and type this formula =VLOOKUP(B2,$E$2:$F$4,2,1), (B2 is the age you use, E2:F4 is the age groups you lookup based on, 2 indicates to return the second column in the lookup range) press Enter key, then drag fill handle down to fill the formulas to cells.
Look for a value in list |
![]() |
Best Office Productivity Tools
Supercharge Your Excel Skills with Kutools for Excel, and Experience Efficiency Like Never Before. Kutools for Excel Offers Over 300 Advanced Features to Boost Productivity and Save Time. Click Here to Get The Feature You Need The Most...
Office Tab Brings Tabbed interface to Office, and Make Your Work Much Easier
- Enable tabbed editing and reading in Word, Excel, PowerPoint, Publisher, Access, Visio and Project.
- Open and create multiple documents in new tabs of the same window, rather than in new windows.
- Increases your productivity by 50%, and reduces hundreds of mouse clicks for you every day!
