View Single Post
  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Ms-Exl-Learner Ms-Exl-Learner is offline
external usenet poster
 
Posts: 506
Default Literal based on Week end

=IF(OR(D51="Sunday",D51="Saturday"),"No Hours Recorded","Charged")

Remember to Click Yes, if this post helps!

--------------------
(Ms-Exl-Learner)
--------------------


"Umar" wrote:

I tried these to NO avail:
Cell D51 contains a formula - =TEXT(B51,"dddd")

For Cell E51 I want to enter an IF condition based upon the Weekday value in
Cell D51.

So, here is what I have tried and I also have tried some other variations:

1. IF(D51="Sunday" OR D51= "Saturday","No Hours Recorded","Charged")

2. IF(D51='Sunday' OR D51= 'Saturday','No Hours Recorded','Charged')

All failed, could anyone pinpoint and corrected the typo?