Forum Discussion
Victor_Svensson
Dec 14, 2020Copper Contributor
Need help with a formula
I try to make a formula where I get a specific number if another cell is within a certain range. I tried many different solutions but no success. Give it in text IF H3 is in the range 0-299 = 0...
SergeiBaklan
Dec 14, 2020Diamond Contributor
Victor_Svensson
Dec 14, 2020Copper Contributor
- SergeiBaklanDec 14, 2020Diamond Contributor
Please open attached workbook and check within it how the formula looks for your locale.
- Victor_SvenssonDec 14, 2020Copper Contributor
- SergeiBaklanDec 14, 2020Diamond Contributor
Great. But even better not to hardcode constants within formula, but use helper range at any place of your workbook, like
Formulae could be
=XLOOKUP(H3,$L$2:$L$5,$M$2:$M$5,,-1) or =VLOOKUP(H3,$L$2:$L$5,2) or like
Above formulas are for English locale, if open attached file it will be transferred into your locale.