Perform a find on hidden cells

前端 未结 2 1806
后悔当初
后悔当初 2021-02-19 13:59

I have a computed range of values in a hidden column which I use for a dropdown box. To figure out which value the user has selected, I try to run a Find on that range, but for

2条回答
  •  生来不讨喜
    2021-02-19 14:16

    Is really necesary do it inside a macro, would be easier use match:

    =MATCH(G9;H9:H16;0)
    

    G9 : Cell of the DropDownBox

    H9:H16 : Your range

    0 : for exact match

    It returns the index inside the array

提交回复
热议问题