The first part is easy, if your date is in A1 put =A1 in another cell and format as custom dddd. don't know about the other part
Thanks for your reply Paul ... that much I had, its getting the number that I'm looking for.
Fred,
Assuming the date of interest to be in A1.
In B1 enter: =TEXT(A1,"dddd") [as Paul also suggested ]
In C1 enter: =SUMPRODUCT((WEEKDAY(DATE(YEAR(A1),MONTH(A1),ROW(INDIRECT("1:"&DAY(DATE(YEAR(A1),MONTH(A1),DAY(A1)))))))=VLOOKUP(B1,{"Sunday",1;"Monday",2;"Tuesday",3;"Wednesday",4;"Thursday",5;"Friday",6;"Saturday",7},2,0))+0)
Aladin
=========
Aladin,
Thanks for the formula, it was a big help. Just for your info, when I ran it as you typed, it returned one less than the number I needed; i.e.
10/15 yields 2nd monday, 10/1 yields 0. I added one to your formula and it works great.
Thanks again
Not fully tested, but you could also try
=INT(DAY(A1)/7)+1-(MOD(DAY(A1),7)=0)
where your date is in A1
for the occurance of the day in the month as well.
Fred: I'd suggest switching to Ian's shorter formula. (NT)