> Thank

limo2088

Board Regular
Joined
Feb 10, 2006
Messages
53
Office Version
  1. 2019
How can create a formula which based on looking at a number will give me the following results, i can get it to work for the first ones but cannot seem to do it multiple times


37 This one is >30

93 This one is >90

124 This one is >120

Book1
DE
3
4<3033
5
Sheet1
Cell Formulas
RangeFormula
D4D4=IF(AND(E4>30,E4<60),"<30")
Cells with Conditional Formatting
CellConditionCell FormatStop If True
D4Cell Value="Over"textYES
 

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)
Is this what you are looking for?
Excel Formula:
=IF(E4>120,">120",IF(E4>90,">90",IF(E4>30,">30","<=30")))
 
Upvote 0
Is this what you are looking for?
Excel Formula:
=IF(E4>120,">120",IF(E4>90,">90",IF(E4>30,">30","<=30")))
Thank you very much, I should have explained it better, so if the number is
>30 and <60 I need it to say >30,
if a number is >60 and <90 needs to say >60
If a number is >90 and <120 needs to say >90
and anything over 120 would just say >120
Thank you again
 
Upvote 0
Thank you very much, I should have explained it better, so if the number is
>30 and <60 I need it to say >30,
if a number is >60 and <90 needs to say >60
If a number is >90 and <120 needs to say >90
and anything over 120 would just say >120
Thank you again
Then you only need to insert/nest one more IF in my formula (hopefully, you are starting to see the pattern!)
Excel Formula:
=IF(E4>120,">120",IF(E4>90,">90",IF(E4>60,">60",IF(E4>30,">30","<=30"))))

Also, you want want to revisit your logic to determine what you want return if it equals EXACTLY 30, 60, 90, or 120.
You might want to change some of those ">" to ">=".
 
Upvote 0
Solution
Then you only need to insert/nest one more IF in my formula (hopefully, you are starting to see the pattern!)
Excel Formula:
=IF(E4>120,">120",IF(E4>90,">90",IF(E4>60,">60",IF(E4>30,">30","<=30"))))

Also, you want want to revisit your logic to determine what you want return if it equals EXACTLY 30, 60, 90, or 120.
You might want to change some of those ">" to ">=".
Perfect, again thank you!
 
Upvote 0
You are welcome.
Glad I was able to help!
 
Upvote 0

Forum statistics

Threads
1,215,338
Messages
6,124,351
Members
449,155
Latest member
ravioli44

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