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
- 352.5K Banking & Borrowing
- 253.7K Reduce Debt & Boost Income
- 454.5K Spending & Discounts
- 245.5K Work, Benefits & Business
- 601.4K Mortgages, Homes & Bills
- 177.6K Life & Family
- 259.4K Travel & Transport
- 1.5M Hobbies & Leisure
- 16K Discuss & Feedback
- 37.7K Read-Only Boards