Link to home
Start Free TrialLog in
Avatar of Frank .S
Frank .SFlag for Australia

asked on

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"),"")
Avatar of Norie
Norie

Try this.

=IF(J3=$K$1,"now due",IF(J3>$K$1,"overdue",""))
Avatar of Frank .S

ASKER

hi norie, thankyou and is there a way i can protect the column & hide the formula where i have this ifstatement?
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.

User generated image
Are you using conditional formula?

If you are what options/formula are you using?
im not, please see screenshot below

User generated image
Oops, I meant conditional formatting not conditional formula.
i dont follow..
I was correcting a typo in  previous post.
try upload a sample here?
hi ryan chong, i have uploaded the file here for you.
protect---ifstatements_3.xlsx
ASKER CERTIFIED SOLUTION
Avatar of Ryan Chong
Ryan Chong
Flag of Singapore image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial