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

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)
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,215,486
Messages
6,125,070
Members
449,205
Latest member
Healthydogs

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