• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

export the header name for column if find a specific value

Afarag

Member
hello there,

please i need help in a function that get the header name if the cell value is greater than "0:00:00"

0


as per the mentioned pic at cell ("U2") the value is greater than "0:00:00" so i got the header name at "Comment" column , i need to get this comment via function,
then we can find for one "Login ID" more than one activity column greater than "0:00:00", need to CONCATENATE the 2 headers

thanks a lot,
 

Attachments

  • Header.xlsx
    95.2 KB · Views: 5
Check this in AC2

=IFERROR(IF(COUNTIF(Table1[[#This Row],[Planned sick]:[Vacation]],">0")>1,INDEX(Table1[[#Headers],[Planned sick]:[Vacation]],1,MATCH(TRUE,Table1[[#This Row],[Planned sick]:[Vacation]]>0,0))&","&LOOKUP(1,0.1/Table1[[#This Row],[Planned sick]:[Vacation]],Table1[[#Headers],[Planned sick]:[Vacation]]),LOOKUP(1,0.1/Table1[[#This Row],[Planned sick]:[Vacation]],Table1[[#Headers],[Planned sick]:[Vacation]])),"??")
 
Without table it will be like!

CSE

=IFERROR(IF(COUNTIF(Sheet1!$U2:$AB2,">0")>1,INDEX(Sheet1!$U$1:$AB$1,1,MATCH(TRUE,Sheet1!$U2:$AB2>0,0))&","&LOOKUP(1,0.1/Sheet1!$U2:$AB2,Sheet1!$U$1:$AB$1),LOOKUP(1,0.1/Sheet1!$U2:$AB2,Sheet1!$U$1:$AB$1)),"??")
 
Back
Top