Greater than or equal to

Sroule

New Member
Joined
Jun 9, 2020
Messages
14
Office Version
  1. 365
Platform
  1. Windows
Two columns

column 1: Depth
Column 2: Box Width

I need a formula for the box width column that says.....if the number in the depth column is greater than 4 but less than 6 it equals 4....If the number is greater than 6 but less than 20 it equals 8
 

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.
What should happen if the depth is less than 4 or greater than 20?
 
Upvote 0
Two columns

column 1: Depth
Column 2: Box Width

I need a formula for the box width column that says.....if the number in the depth column is greater than 4 but less than 6 it equals 4....If the number is greater than 6 but less than 20 it equals

What should happen if the depth is less than 4 or greater than 20?
less than 4 it would equal 0
greater than 20 it would still equal 8
 
Upvote 0
Ok, how about
Excel Formula:
=IF(A2<4,0,IF(A2<6,4,8))
 
Upvote 0
Ok, how about
Excel Formula:
=IF(A2<4,0,IF(A2<6,4,8))
with the same scenario could you create another formula that has it where if it is less than 4 than it would equal that number EX; 3.7 would equal 3.7, but 4.1 = 4 still!
 
Upvote 0
Just replace the 0 with A2
 
Upvote 0

Forum statistics

Threads
1,214,885
Messages
6,122,085
Members
449,064
Latest member
MattDRT

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