I have an excel sheet named 'List' that has several columns with values. I would like to…
- User
I have an excel sheet named 'List' that has several columns with values. I would like to enter a search value in sheet 'Key Audit' cell 'I4' and reveal from 'I6' downwards all the Column Header Values in sheet 'List' where the search value is found.
- Assistant
You can achieve this by using a formula in the cell 'I6' of the 'Key Audit' sheet. Here's a step-by-step guide on how to do this:
-
In cell 'I6' of the 'Key Audit' sheet, enter the following formula:
=IFERROR(INDEX(List!$A$1:$Z$1, SMALL(IF(List!$A$2:$Z$100 = 'Key Audit'!$I$4, COLUMN(List!$A$2:$Z$100) - COLUMN(List!$A$1) + 1, ""), ROW()-5)),"")This is an array formula that will search for the value in cell 'I4' of the 'Key Audit' sheet within the range of cells A2:Z100 in the 'List' sheet. It will return the column header values where the search value is found, starting from row 6 downwards. -
Press 'Ctrl + Shift + Enter' to confirm the formula as an array formula.
-
Drag the formula down from cell 'I6' to show all the column header values where the search value is found.
This will dynamically show all the Column Header Values in sheet 'List' where the search value is found.
-
- User
The formula word perfectly. Can it be improved by doing a key word search, finding the word within
- Assistant
I'm glad to hear that the formula worked for you. If you want to perform a keyword search within the cells in the 'List' sheet, you can modify the formula as follows:
-
In cell 'I6' of the 'Key Audit' sheet, enter the following modified formula:
=IFERROR(INDEX(List!$A$1:$Z$1, SMALL(IF(ISNUMBER(SEARCH('Key Audit'!$I$4, List!$A$2:$Z$100)), COLUMN(List!$A$2:$Z$100) - COLUMN(List!$A$1) + 1, ""), ROW()-5)),"") -
Press 'Ctrl + Shift + Enter' to confirm the modified formula as an array formula.
-
Drag the formula down from cell 'I6' to show all the column header values that contain the keyword from cell 'I4' of the 'Key Audit' sheet.
This updated formula will now perform a keyword search within the cells in the 'List' sheet and return the column header values where the keyword is found.
-
- User
mANY tHANKS. IT WORKED BRILLIANTLY
- Assistant
You're welcome! I'm glad to hear that the modified formula worked brilliantly for you. If you have any more questions or need further assistance in the future, feel free to ask. Good luck with your Excel tasks!