Excel's formatcells/Number/Custom >1 or =0

drom

Well-known Member
Joined
Mar 20, 2005
Messages
543
Office Version
  1. 2021
  2. 2019
  3. 2016
  4. 2013
  5. 2011
  6. 2010
  7. 2007
Hi and Thanks in advance!

For this eg I can't use the normal conditional formatting, not VBA

I have a huge SumProduct formula on a cell (No problem)
If the result Shows 0, I Am going to put "Wrong"

I can do this using excel's formatcells/Number/Custom like:
  • ;;"Wrong";

Now I would like to put when the formula shows >1 "Wrong" as well

kind of:

  • [>1] "Wrong";;"Wrong";


I could use the formula on other cell and use a easy formula on the activecell like:
  • If(OR(B2=0,B2>1),"Wrong","")
But is it possible using excel's formatcells/Number/Custom
 

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest
You must be using Excel 2021. I recommend you to show only current Excel version and platform in your profile.

As of your problem, with Excel 2021 better use LET Function like

=LET(x,Your entire formula, If(OR(X=0,X>1),"Wrong",x))

It shall solve your problem. Check this and revert.
 
Upvote 0
Yes (y) I am using 2021, anyway Iwas trying to know if was possible to use
Excel's formatcells/Number/Custom

Unfortunatelly this job goes for different users and for sure some of them are not using 2021, 365
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,335
Members
452,636
Latest member
laura12345

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