Cell recognize positive or negative value then adds certain texts to the 2 possibilities

determinedtoexceed

New Member
Joined
Aug 20, 2019
Messages
38
Dear professionals,

when a cell result in ANY positive value, example such as "10%", I would like the very same cell to display as "Underestimate 10%"

on the other hand a cell result in ANY negative value, such as "-5%", i would like the very same cell to display as "Overestimate 5%"

Please help out and thanks for your time.

Best wishes.
 

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
You could try this custom format.

"Overestimate" 0%; "Underestimate" 0%
 
Upvote 0
... and

.. the 3rd element formats 0%

"Underestimate" 0%; "Overestimate" 0%;"Spot on!"

... to add colour to an element ..

[Red]"Underestimate" 0.00%;[Blue] "Overestimate" 0.00%;"Spot on!"
 
Last edited:
Upvote 0
Use this method - but apply your current formula to get the correct percentage value considered
(in my example the percentage is a simple division of 2 cellls)

=IF(A1/B1=0,"Spot on",IF(A1/B1>0,"Underestimate "&100*A1/B1&"%","Overestimate "&-100*A1/B1 & "%"))

I prefer custom format method to the messy formula in this post :)

You may want to round the values, which makes it even messier

=IF(A8/B8=0,"Spot on",IF(A8/B8>0,"Underestimate "&ROUND(100*A8/B8,0)&"%","overestimate "&ROUND(-100*A8/B8,0) & "%"))
 
Last edited:
Upvote 0
if you performed the percentage calculation in another cell (D1 in my example) first, then the formula could be simplified

=IF(D1=0,"Spot on",IF(D1,"Underestimate "&TEXT(D1,"0%"),"overestimate "&TEXT(D1,"0%")))
 
Upvote 0
:oops::oops: My previous post should have been ...
=IF(D1=0,"Spot on",IF(D1>0,"Underestimate "&TEXT(D1,"0%"),"overestimate "&TEXT(D1,"0%")))
 
Upvote 0

Forum statistics

Threads
1,213,558
Messages
6,114,296
Members
448,564
Latest member
ED38

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