We'd like to remind Forumites to please avoid political debate on the Forum... Read More »
We're aware that some users are experiencing technical issues which the team are working to resolve. See the Community Noticeboard for more info. Thank you for your patience.
📨 Have you signed up to the Forum's new Email Digest yet? Get a selection of trending threads sent straight to your inbox daily, weekly or monthly!
Excel Formula Problem?
Options

Tony_H_3
Posts: 2,643 Forumite


in Techie Stuff
Right, I am attempting to use the "countif" function and it works fine if I enter a value. Example:
=countif(D4:D15, "<=500")
However 500 is a variable amount so if I enter the formula like this. Example:
=countif(D4:D15, "<=B2")
it doesn't produce the desired result, how can I get around this?
=countif(D4:D15, "<=500")
However 500 is a variable amount so if I enter the formula like this. Example:
=countif(D4:D15, "<=B2")
it doesn't produce the desired result, how can I get around this?
0
Comments
-
Those smiley faces
actually mean ':'
0 -
= COUNTIF ( C 1 : C 1 9 , " < = " & C 2 5 )
Assuming your variable is in C25 - Take all of the spaces out
Sam.0 -
Cheer's that works nicely!!0
This discussion has been closed.
Confirm your email address to Create Threads and Reply

Categories
- All Categories
- 350.8K Banking & Borrowing
- 253.1K Reduce Debt & Boost Income
- 453.5K Spending & Discounts
- 243.8K Work, Benefits & Business
- 598.7K Mortgages, Homes & Bills
- 176.8K Life & Family
- 257.1K Travel & Transport
- 1.5M Hobbies & Leisure
- 16.1K Discuss & Feedback
- 37.6K Read-Only Boards