View Single Post
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
CellShocked CellShocked is offline
external usenet poster
 
Posts: 277
Default Testing a cell value for a specific weekday.

On Tue, 18 Dec 2012 08:38:53 +0000, Kevin@Radstock
wrote:


Hi
Assuming A1 = week starting date cell and the date is in B1. The formula
in A1: =IF(WEEKDAY(B1)=7,"Saturday","").

or something along those lines!

CellShocked;1608096 Wrote:
I either want to set up a data validation formula, or do something
similar to IF(ISBLANK()) kind of thing.

I want a cell called "week starting date" to be locked to only
Saturdays (or a numeric test where I can choose which day gets tested).

So the user would choose the 'week starting day' (or number) in one
cell, and then the formula would take that choice and validate entries
in
another named cell.

Or simply raise a flag (message) if it isn't starting on a Saturday.

This makes my timesheet calendar begin with the right day first and
date the subsequent days correctly.



Cool. Thanks. I'll work with that for a while.