How to validate a formulae

jim-jams3

New Member
Joined
Jan 30, 2009
Messages
48
I have a database on one sheet and a 2 count if formulae recording information on the next to be exact one formulae counts the number of monthly values and the other count yearly values. I want the sum of these formulaes to be equal or less than 25. and to show an error if the sum of these is mor than 25.

thanks jim
 
Mike, jim has sent me a copy of the workbook, and I'm having the same problems.

The data is imported from access so could this be the cause of the problem?
 
Upvote 0

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.
Unless I see the workbook, I'd just be guessing, but I'd check for extra spaces etc in the data and the sheet references.

Is the import embedding an object into the worksheet or is it writing values into cells?
 
Upvote 0
Writing cell values, think I've solved it.

There was an original total with the formula =SUM(D9:D10), the 2 cells with the original countif formulae, I've simply changed that to =IF(SUM(D9:D10)>25,"ERROR",SUM(D9:D10)) And thrown in a conditional format to show red cell shading if the cell reads ERROR, it works ok when I insert some extra lines manually to break the 25 limit, so in theory it should work with if the database import exceeds it as well.

Think maybe we were just overcomplicating it.
 
Upvote 0

Forum statistics

Threads
1,216,166
Messages
6,129,257
Members
449,497
Latest member
The Wamp

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