Greater than or equal to

Sroule

New Member
Joined
Jun 9, 2020
Messages
8
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

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.

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
65,572
Office Version
  1. 365
Platform
  1. Windows
What should happen if the depth is less than 4 or greater than 20?
 

Sroule

New Member
Joined
Jun 9, 2020
Messages
8
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

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
 

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
65,572
Office Version
  1. 365
Platform
  1. Windows
Ok, how about
Excel Formula:
=IF(A2<4,0,IF(A2<6,4,8))
 

Sroule

New Member
Joined
Jun 9, 2020
Messages
8
Office Version
  1. 365
Platform
  1. Windows
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!
 

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
65,572
Office Version
  1. 365
Platform
  1. Windows
Just replace the 0 with A2
 

Forum statistics

Threads
1,147,450
Messages
5,741,189
Members
423,647
Latest member
lyanndominique

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
Top