Count Function Error

Tgpitch16

New Member
Joined
Jul 8, 2015
Messages
25
Office Version
  1. 365
Platform
  1. Windows
How do I have the COUNT function ignore cells with formulas? The formula is below.

=IF(COUNT(C5,D5,E5,F5,G5)=1,((H5/1))*5-I5,IF(COUNT(C5,D5,E5,F5,G5)=2,((H5/2))*5-I5,IF(COUNT(C5,D5,E5,F5,G5)=3,((H5/3))*5-I5,IF(COUNT(C5,D5,E5,F5,G5)=4,((H5/4))*5-I5,IF(COUNT(C5,D5,E5,F5,G5)=5,((H5/5))*5-I5,"")))))
 

Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.
Ignore cells based on what condition(s)?

If based on simply whether or not they are a number (implied by your use of COUNT), try:

=IFERROR(5*H5/COUNT(C5:G5)-I5, "")

Otherwise, you might consider using COUNTIF or COUNTIFS instead of COUNT.
 
Upvote 0
That didn't work either. Essentially what I am doing is trying to predict a trend. Let's say the goal is 100 for the week (M-F) and I get 5 on Monday, I would be trending -75. Each cell is referencing another spreadsheet for the value, and some of them are blank based on the day.

Appreciate your help.
 
Upvote 0

Forum statistics

Threads
1,223,959
Messages
6,175,645
Members
452,663
Latest member
MEMEH

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