We’d like to remind Forumites to please avoid political debate on the Forum.
This is to keep it a safe and useful space for MoneySaving discussions. Threads that are – or become – political in nature may be removed in line with the Forum’s rules. Thank you for your understanding.
📨 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?

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
- 351.8K Banking & Borrowing
- 253.4K Reduce Debt & Boost Income
- 454K Spending & Discounts
- 244.7K Work, Benefits & Business
- 600.2K Mortgages, Homes & Bills
- 177.3K Life & Family
- 258.4K Travel & Transport
- 1.5M Hobbies & Leisure
- 16.2K Discuss & Feedback
- 37.6K Read-Only Boards