Slecting the inbetween values

lprabhu1107

Board Regular
Joined
Mar 10, 2011
Messages
106
Hi,

I have a range of values like 20 -25 with 20 in column a1 and 25 in column b1. In column C1 this range is defined as YA. I have a lot of these ranges in Column A and B with definitions in column C. I have to check if 22 falls in beteen 20 and 25 and if true, i should get the result as YA.

kindly assist me with excel formula to solve this

Prabhu
 

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.
Welcome to the board.
Try:
Code:
=IF(AND(A1<22),B1>22),"YA","Not within defined range")
 
Upvote 0
Hello experts,

The above solution tests only one range i.e.a1 nd b1. I need the value to check the entire ranges in column a and column b and give the appropriate definitions in column c as the result.
 
Upvote 0

Forum statistics

Threads
1,224,516
Messages
6,179,231
Members
452,898
Latest member
Capolavoro009

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top