- To post as a guest, your comment is unpublished.· 1 years ago=IFERROR(INDEX(Sheet2!A$1:J$1,SMALL(IF(Sheet2!A$2:J$2=A$5,COLUMN(A$1:J$1)),COLUMNS(A$5:A5))),"")
How to populate rows based on specified cell value in Excel?
Supposing you have a project table with corresponding person’s name who is in charge of each project as below screenshot shown. And now you need to list out all project names in rows based on given person, how to achieve it? Actually an array formula in this article can help you solve the problem.
- Reuse Anything: Add the most used or complex formulas, charts and anything else to your favorites, and quickly reuse them in the future.
- More than 20 text features: Extract Number from Text String; Extract or Remove Part of Texts; Convert Numbers and Currencies to English Words.
- Merge Tools: Multiple Workbooks and Sheets into One; Merge Multiple Cells/Rows/Columns Without Losing Data; Merge Duplicate Rows and Sum.
- Split Tools: Split Data into Multiple Sheets Based on Value; One Workbook to Multiple Excel, PDF or CSV Files; One Column to Multiple Columns.
- Paste Skipping Hidden/Filtered Rows; Count And Sum by Background Color; Send Personalized Emails to Multiple Recipients in Bulk.
- Super Filter: Create advanced filter schemes and apply to any sheets; Sort by week, day, frequency and more; Filter by bold, formulas, comment...
- More than 300 powerful features; Works with Office 2007-2019 and 365; Supports all languages; Easy deploying in your enterprise or organization.
Please do as follows to populate rows with the corresponding record based on given value in Excel.
1. Select a blank cell, enter formula =IFERROR(INDEX(Sheet2!A$1:A$10,SMALL(IF(Sheet2!B$1:B$10=D$2,ROW(A$1:A$10)),ROWS(D$2:D2))),"") into Formula Bar, and then press the Ctrl + Shift + Enter keys. See screenshot:
Note: in the formula, Sheet2 is the name of current worksheet, A$1:A$10 is the column range contains all project names (include header), B$1:B$10 is the column range contains all person names (include header), and D$2 is the cell contains the person name you will populate rows based on. Please change them as you need.
2. Select the first result cell, drag the Fill Handle down to fill all rows with corresponding task names. See screenshot:
- How to move entire row to another sheet based on cell value in Excel?
- How to lock or unlock cells based on values in another cell in Excel?
You are guest
or post as a guest, but your post won't be published automatically.
- To post as a guest, your comment is unpublished.· 1 years agoWhat if I wanted to populate the rows horizontally instead of vertically what would I change from the formula you put above: =IFERROR(INDEX(Sheet2!A$1:A$10,SMALL(IF(Sheet2!B$1:B$10=D$2,ROW(A$1:A$10)),ROWS(D$2:D2))),"")