I managed to finish the function but needed a helper column that concatenates the 2 column info.
Is there a way to do it without the helper column ?
Function Prev_week_delta_column_name(txt_header As Range, current_week As String, week_list_ID As Range, empl_id As String) As String
current_week_row = Application.Match(current_week & empl_id, week_list_ID, 0)
prev_week = "Week " & Right(current_week, 2) - 1
prev_week_row = Application.Match(prev_week & empl_id, week_list_ID, 0)
For Each cell In txt_header
If Cells(current_week_row, cell.Column) <> Cells(prev_week_row, cell.Column) Then
x = x & cell & "|"
End If
Next cell
Prev_week_delta_column_name = x
End Function
Bookmarks