IF less than = Text, IF Greater than but less than = Text, If Greater than = Text

Zabelle

New Member
Joined
Apr 4, 2019
Messages
4
Hello,

I have been looking for a formula and still get errors!

If F2 <=110 = Short term OR
IF F2 >111 OR F2<220 = Medium term OR
IF F2>221= Long term

I am looking for one formula with the 3 possibles results.

Thank you in advance for your help!

Zab
 

Excel Facts

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.
Going by yor description maybe...
=IF(F2<=110,"Short term",IF(AND(F2>111,F2<220),"Medium term","Long term"))
but what is supposed to happen if the value is 111 or 220 or 221 (please note the last 2 I have guessed at in the formula)?
 
Last edited:
Upvote 0
maybe:
Code:
=IFNA(CHOOSE(MATCH(F2,{0,111,221},1),"Short","Medium","Long"),"")
if your excel doesn't support IFNA() function use IFERROR()

adjust values if necessary
 
Last edited:
Upvote 0
Thank you! Thank you! You are right I am missing the = sign, but It work!

=IF(F2<=110,"Short term",IF(AND(F2>=111,F2<220),"Medium term",IF(F2>221,"Long term")))
 
Upvote 0

Forum statistics

Threads
1,224,820
Messages
6,181,160
Members
453,021
Latest member
Justyna P

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