In my excel sheet 'List' I have colums from A1 to AO100 that contain values. In sheet…
- User
In my excel sheet 'List' I have colums from A1 to AO100 that contain values. In sheet 'Key Audit' cell I4 I want to enter a key word and when I do so, display from I6 downwards the headers of all columns in sheet 'List' where the key word exists
- Assistant
You can achieve this by using the following formula in cell I6 of sheet 'Key Audit':
=IFERROR(INDEX(List!$A$1:$AO$1, SMALL(IF(ISNUMBER(SEARCH($I$4, List!$A$2:$AO$100)), COLUMN(List!$A$1:$AO$1)-COLUMN(List!$A$1)+1), ROW()-5)), "")Note: This is an array formula, so you need to enter it with
Ctrl+Shift+Enter.This formula searches for the key word in each column of the 'List' sheet and returns the header of the column where the key word is found. It displays the headers starting from cell I6 downwards.