Excel - Display text w/ range of values [Closed]

Report
-
Posts
4476
Registration date
Thursday January 28, 2010
Status
Contributor
Last seen
August 2, 2020
-
I'm trying to get text displayed in a cell when the value is between a range of numbers. Example when the value of cell d18 is between 60% & 70% I want the cell to display the text "Warning". I can easily do this for a single value in this example formula

=if(d18=60%,"Warning","Good")

But how do I get that same text displayed if the cell's value equals any number between 60% and 70%?

1 reply

Posts
4476
Registration date
Thursday January 28, 2010
Status
Contributor
Last seen
August 2, 2020
767
60-70 of what. 10 is 10% of 100 but 100% of 10. So you need to add that information
Another formula creates the value of D18. In cell E18 I want to write a formula. In that formula, if the value of cell D18 is between a set of numbers, like between 60 & 70 then display "TEXT" in E18. if the value of cell D18 is not between 60 & 70, then display "DIFFERENTTEXT" in E18. Forget about the %. Say cell D18 = any # between 60 & 70, then I want "TEXT" to be displayed in E18. Say cell D18 = any # between 0 & 59 or between 71 & infinty, then I want "DIFFERENTTEXT" displayed in E18.
Posts
4476
Registration date
Thursday January 28, 2010
Status
Contributor
Last seen
August 2, 2020
767
In that case

=IF(AND(d18>=60, d18<=70), "TEXT", "DIFFERENTTEXT")

Subscribe To Our Newsletter!

The Best of CCM in Your Inbox

Subscribe To Our Newsletter!