How to group ages in ranges with VLOOKUP in Excel?
Author: SunLast Modified: 2024-08-13
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?
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.
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...