Conditional Format

Sparky

Board Regular
Joined
Feb 18, 2002
Messages
210
Office Version
  1. 2010
Platform
  1. Windows
A1:A25 contain the numbers 1 to 25.
I have used the count function to total the amount of numbers (25) in A27.
How do I insert a message such as ERROR! in B27 if the total is less than 25.
I do not require any cells to be protected.

Thanks in advance
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.

Barry Katcher

Well-known Member
Joined
Feb 25, 2002
Messages
4,053
Conditional formatting is optional, but not needed. Enter this formula in B27:

=IF(A27<25,"ERROR","")

You can then conditionally format if you wish.
 

Sparky

Board Regular
Joined
Feb 18, 2002
Messages
210
Office Version
  1. 2010
Platform
  1. Windows
Barry

Thanks for waking me up I was trying to do the CF first.
I was actually using in the formula is =IF(A27<25,"ERROR")and drawing blanks.


Thanks
 

PaddyD

MrExcel MVP
Joined
May 1, 2002
Messages
14,234
On 2002-11-02 22:32, Sparky wrote:
Barry

Thanks for waking me up I was trying to do the CF first.
I was actually using in the formula is =IF(A27<25,"ERROR")and drawing blanks.


Thanks

Sparky,

'cos it's conditional formatting, you don't need if statements in the formula - setting a check for a2 < 25 would suffice.

paddy
 

Barry Katcher

Well-known Member
Joined
Feb 25, 2002
Messages
4,053
To refine Paddy's formula, you can use in cell B27:

=A27=25

This will return TRUE if A27 equals 25 or FALSE if any other number. Use this variation of Paddy's if you don't mind a TRUE or FALSE return, use mine if you prefer ERROR or a blank cell.
 

Forum statistics

Threads
1,144,329
Messages
5,723,737
Members
422,512
Latest member
MHau5

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
Top