If, then for X>2 but less than 4

ChrisS92

New Member
Joined
Mar 19, 2015
Messages
18
Hi,

How do I set an if/then statement for a result between two values? I have a value in A1 that will change periodically and I want the cells beneath it to reflect that change (this is part of a greater summation scheme that's already been set up):

A1= 2

A2: if (x<1, A1, 0), this one is easy
A3: if (3<x>1, A1, 0), I want this box to populate if it's greater than or equal to 1 but less than 3
A4: if (5<x>3, A1, 0), I want this box to populate if it's greater than or equal to 3 but less than 5

Any feedback appreciated, thanks!
 

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).
You can use an AND statement. Something like:

=IF(AND(X>=3,X<5),A1,0)

Also, you could combine all of your conditions into one formula, if you'd like.
 
Upvote 0

Forum statistics

Threads
1,215,823
Messages
6,127,071
Members
449,358
Latest member
Snowinx

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