Firstly, Your sample data has an error
View attachment 45519
The highlighted 7 shouldn't be there
Next Note that I have simply used the frequency numbers in Column A
View attachment 45520
Because I am going to refer to them in the formulas
If you simply want to pickup the position of each Frequency in Row 4
ie: Column B is 1, Column C is 2 etc
B12: =IFERROR(LARGE((COLUMN($B$4:$BB$4)-1)*($B$4:$BB$4=$A11),COUNTIF($B$4:$BB$4,$A11)-COLUMNS($B$1:B$1)+1),"")
Ctrl+Shift+Enter
Then copy across
If you want to retrieve the values from Row 5 then in
B12: =IFERROR(INDEX($B$5:$BB$5,,LARGE((COLUMN($B$4:$BB$4)-1)*($B$4:$BB$4=$A11),COUNTIF($B$4:$BB$4,$A11)-COLUMNS($B$1:B$1)+1)),"")
Ctrl+Shift+EnterThen copy across
You can then copy these formulas to the rows below
eg Rows 14, 16 & 18
The difference between the two equations above is shown as:
View attachment 45521
Note
Row 12 Returns the position Number of the matching Freq.
Row 11 Returns the Value from Row 4 corresponding to the position Number of the matching Freq.
or see the attached file