if statement

hi experts, the following if statement is producing a "value error" and i dont understand why, could you assist?

=IF(AND(J3=$K$1,"now due",J3>$K$1,"overdue"),"")
Frank .SBuilding EstimatorAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

NorieVBA ExpertCommented:
Try this.

=IF(J3=$K$1,"now due",IF(J3>$K$1,"overdue",""))
0
Frank .SBuilding EstimatorAuthor Commented:
hi norie, thankyou and is there a way i can protect the column & hide the formula where i have this ifstatement?
0
Frank .SBuilding EstimatorAuthor Commented:
hi norie, i copy & pasted your formula down the same column but found all the cells would have the red background fill colors when it should only be the ones which meet the condition, please see screenshot below.

background fill to all cells
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

NorieVBA ExpertCommented:
Are you using conditional formula?

If you are what options/formula are you using?
0
Frank .SBuilding EstimatorAuthor Commented:
im not, please see screenshot below

screenshot 2
0
NorieVBA ExpertCommented:
Oops, I meant conditional formatting not conditional formula.
0
Frank .SBuilding EstimatorAuthor Commented:
i dont follow..
0
NorieVBA ExpertCommented:
I was correcting a typo in  previous post.
0
Ryan ChongCommented:
try upload a sample here?
0
Frank .SBuilding EstimatorAuthor Commented:
hi ryan chong, i have uploaded the file here for you.
protect---ifstatements_3.xlsx
0
Ryan ChongCommented:
you can modify the attached.

for your 3rd requirement:
3. all cells in column e are to be pwd protected so that the creator of this sheet can only enter data or change the data in this column, no other users can

check this out:

XL: How to Lock Individual Cells in a Worksheet
https://support.microsoft.com/en-us/help/214081/xl-how-to-lock-individual-cells-in-a-worksheet
protect---ifstatements_3_b.xlsx
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Excel

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.