Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Hey crew, I'm a little rusty and need some refresher...
In column A I have the dates in =Date(yyyy,mm,dd) format In column B, I am want the cells to say "OFF" if the day is equal to Sunday or Monday for instance. Right now I'm using this formula for Sunday: =IF(DAY(7)=A4,"OFF","") Which isn't working. I just can't remember the exact way to do it. Thanks for your help. |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Try
=IF(TEXT(A1,"ddd")="Sun","Sunday","Not a Sunday") OR =IF(WEEKDAY(A1)=1,"Sunday","") If this post helps click Yes --------------- Jacob Skaria "das" wrote: Hey crew, I'm a little rusty and need some refresher... In column A I have the dates in =Date(yyyy,mm,dd) format In column B, I am want the cells to say "OFF" if the day is equal to Sunday or Monday for instance. Right now I'm using this formula for Sunday: =IF(DAY(7)=A4,"OFF","") Which isn't working. I just can't remember the exact way to do it. Thanks for your help. |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
say "OFF" if the day is equal to Sunday or Monday
Try this: =IF(WEEKDAY(A1)<3,"Off","") -- Biff Microsoft Excel MVP "das" wrote in message ... Hey crew, I'm a little rusty and need some refresher... In column A I have the dates in =Date(yyyy,mm,dd) format In column B, I am want the cells to say "OFF" if the day is equal to Sunday or Monday for instance. Right now I'm using this formula for Sunday: =IF(DAY(7)=A4,"OFF","") Which isn't working. I just can't remember the exact way to do it. Thanks for your help. |
#4
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Thanks Jacob,
It was the Weekday function that I was having trouble with. I simply for got to identify the cell in question. "Jacob Skaria" wrote: Try =IF(TEXT(A1,"ddd")="Sun","Sunday","Not a Sunday") OR =IF(WEEKDAY(A1)=1,"Sunday","") If this post helps click Yes --------------- Jacob Skaria "das" wrote: Hey crew, I'm a little rusty and need some refresher... In column A I have the dates in =Date(yyyy,mm,dd) format In column B, I am want the cells to say "OFF" if the day is equal to Sunday or Monday for instance. Right now I'm using this formula for Sunday: =IF(DAY(7)=A4,"OFF","") Which isn't working. I just can't remember the exact way to do it. Thanks for your help. |
#5
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Well, what I've figured out is that Friday and Monday are the days that will
say "OFF" Im using Jacobs passed on suggestion like this: =IF(WEEKDAY(A8)=2,"OFF","") But what I need is it to do the same if the day is 6 as well... Something like this: =IF(WEEKDAY(A8)=2)or(Weekday(A8)=6),"OFF","") But this isn't working Any ideas Valko? |
#6
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]() Disregard last message. I messed around and figured it out with this: =IF(OR(WEEKDAY(A5)=2,WEEKDAY(A5)=6),"OFF","") Thanks everyone for you help |
#7
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
=IF(OR(WEEKDAY(A5)=2,WEEKDAY(A5)=6),"OFF","")
Try it like this: =IF(OR(WEEKDAY(A5)={2,6}),"Off","") -- Biff Microsoft Excel MVP "das" wrote in message ... Disregard last message. I messed around and figured it out with this: =IF(OR(WEEKDAY(A5)=2,WEEKDAY(A5)=6),"OFF","") Thanks everyone for you help |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
date in Cell to change colors if the date is beyond today's date | Excel Discussion (Misc queries) | |||
Given a date, how do I get the 1st date and the last date of theprevious month? | Excel Worksheet Functions | |||
Making a date go red, if date passes todays date. | Excel Worksheet Functions | |||
Report Date - Date Recv = Days Late, but how to rid completed date | Excel Worksheet Functions | |||
Date updates from worksheet to chart & changes date to a date series! Help!! | Charts and Charting in Excel |