Forum

Notifications
Clear all

Formula to return a list of headers if array data matches a date

4 Posts
2 Users
0 Reactions
101 Views
(@ak008)
Posts: 2
New Member
Topic starter
 

Hi - I have a data set containing dates in short date format from A62:U98 and the header to this set contains some names in A59:U59. Request you to please help me with a formula which returns the list of headers (A59:U59) if the data set matches a date input in V1. Thank you 

File is also attached. 

 
Posted : 30/04/2023 4:18 am
(@mynda)
Posts: 4761
Member Admin
 

Hi Aayushi,

If you have Microsoft 365 you can use this formula:

=FILTER(A59:U59,BYCOL(IFERROR(SEARCH(V1,A62:U98),0),LAMBDA(array,SUM(array))))

 

Mynda

 
Posted : 30/04/2023 11:08 pm
(@ak008)
Posts: 2
New Member
Topic starter
 

Thank you Mynda. Any other formula for other excel versions? 

 
Posted : 02/05/2023 2:33 am
(@mynda)
Posts: 4761
Member Admin
 

If you don't have dynamic arrays, then I'd do this with helper columns. My head would explode if I had to write a Ctrl+Shift+Enter array formula for that!

You can use SEARCH to find the matching dates for each column e.g.

=MAX(IFERROR(SEARCH($V$1,A62:A98),0))

Then use the result with IF to return the column label and then join them together with TEXTJOIN. See file attached.

Mynda

 
Posted : 02/05/2023 7:22 am
Share: