Details:
A1 contains a number, range B1:K1 contain also numbers.
The function will get both the value of A1 and the vales inside the B1:K1 range.
It will check where is the first time a value inside that range (beginning value in B1) is higher than A1, and output a number that represents the number of cells till finding the highest number for the first time.
Example is always better to understand:
A1 = 250
B1=55 C1=60 D1=20 E1=170 F1=90 G1=300 H1=200 I1=400 J1=550 K1=10
Function finds that G1 is higher than A1 so result will be 5 (B1:F1).
In case all range B1:K1 is smaller than A1 then result will be 10.
Is there a built-in function for that, otherwise, can you help me write a function that does that?
Thank you!
A1 contains a number, range B1:K1 contain also numbers.
The function will get both the value of A1 and the vales inside the B1:K1 range.
It will check where is the first time a value inside that range (beginning value in B1) is higher than A1, and output a number that represents the number of cells till finding the highest number for the first time.
Example is always better to understand:
A1 = 250
B1=55 C1=60 D1=20 E1=170 F1=90 G1=300 H1=200 I1=400 J1=550 K1=10
Function finds that G1 is higher than A1 so result will be 5 (B1:F1).
In case all range B1:K1 is smaller than A1 then result will be 10.
Is there a built-in function for that, otherwise, can you help me write a function that does that?
Thank you!
Last edited: