Help using COUNTIF

Sean15

Well-known Member
Joined
Jun 25, 2005
Messages
698
Office Version
  1. 2010
Platform
  1. Windows
Hi:
I am trying to count rows of data in column A. If count is less than 10, then $B$2/$B$3, if count is more than 10, return ""
Formula in column B is not returning the required value. Could you help please

Regards,
Sean


Book1
ABC
1
2150,000.00
310.00
4
5
6Required value
76/1/2021 15,000.00
87/1/2021 15,000.00
98/1/2021 15,000.00
109/1/2021 15,000.00
1110/1/2021 15,000.00
1211/1/2021 15,000.00
1312/1/2021 15,000.00
141/1/2022 15,000.00
152/1/2022 15,000.00
163/1/2022 15,000.00
174/1/2022
185/1/2022
196/1/2022
207/1/2022
218/1/2022
22150,000.00
Sheet1
Cell Formulas
RangeFormula
B7:B21B7=IF(COUNTIF($A$7:$A8,">10"),"",$B$2/$B$3)
C22C22=SUM(C7:C21)
 

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.
How about
Excel Formula:
=IF(COUNT($A$7:$A7)>10,"",$B$2/$B$3)
 
Upvote 0
Solution

Forum statistics

Threads
1,214,827
Messages
6,121,812
Members
449,048
Latest member
greyangel23

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