Greater than or equal to IF statement

Hoosier03

Board Regular
Joined
Apr 29, 2011
Messages
121
I am using excel 2007. I am trying to write an IF statement where if a number is between 4.12 and 5.50 it stays the same. If the number is below 4.12 then it is 4.12. If it is above 5.50 then it is 5.50.

=IF(AND(I88>=4.12,I88<=5.5),I88,'[Natural Gas Pricing FY12 13_Reprice from 7-26-2011.xlsx]Sheet1'!$H$29)

This is what I have so far. [Natural Gas Pricing FY12 13_Reprice from 7-26-2011.xlsx]Sheet1'!$H$29) refers to the cell that is 5.50. This returns all numbers above or below as 5.50. I need to return the numbers below 4.12 as 4.12.

Thanks,

Rodney
 

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.

Forum statistics

Threads
1,224,600
Messages
6,179,836
Members
452,947
Latest member
Gerry_F

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