A
A
Andy19912015-10-14 14:14:30
excel
Andy1991, 2015-10-14 14:14:30

How to write a formula in excel for a range of numbers?

I need a formula for excel, so that when you enter a number in the cell in the range from 1500-2500 in another cell, it gives out one number, from 2501-5000, another, from 5001-9000 the third

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Andy1991, 2015-10-14
@Andy1991

I need that when entering a number in cell A1 in the ranges <1500 , >=1501<=2500, >=2501<=3500 in cell B1, it would just give the number 0.2, 0.25, 0.35, respectively

A
Alexander, 2015-10-14
@NeiroNx

It's better to use incremental nesting:
=IF(A1<=1500,0.2,IF(A1<=2500,0.25,IF(A1<=3500,0.35,A1/10000)))

B
Bambr0, 2021-03-29
@Bambr0

Old of course, but may be useful to someone. It is much easier and clearer to use the "view" function, rather than a bunch of "if" attachments. The only thing is that the list must be sorted in ascending order and the lower limit must be specified.
=LOOKUP(A1;{-10000000000000;1501;2501;3501};{0.5;2.5;3.5;"OUT OF RANGE"}) .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question