Bob Phillips said:
in message
Great, glad some good came out of this thread.
Excellent, that is how I would do it.
Not straight-forward, but nt hard
=TEXT(DATE(YEAR($F$1),MONTH($F$1)-1,DAY($F$1)),"mmm") & " EOM"
But you have to be careful. For instance, if F1 has 31st March, take 1 month
off as I have shown, and you get 31st Feb, which Excel will smartly see as
2nd March (in a leap year), so will not be what you want. Will you have this
problem?
I'm not sure yet. It might.
I'll have to play with it to see if an error occurs.
I don't know if it will be an issue in the future
since new solutions tend to make some answers moot even as they are solved.
As an alternative
I could have the equation do a live compare:
extracting the month from the date from the 1st report for that month
compared to the month of the current date report
and
when the day value exceeds a number like 27 or 28
then I could default the month values for the titles
as a derivation from the 1st report's date (month value).
Kinda far to go, but I can't see any hitches to it,
unless part of the months reports are moved or deleted.
That is what I come up with as an immediate stream-of-conscousness solution.
Perhaps a little reflection and I'll come up with a better one.
Each report is done by the day and stored in that months folder.
New month, new folder.
Ideally this all should be done in Access, imo,
and spit out some Excel sheets autoformatted for emailing to the appropriate BigWig.
That way Year End Reports would be a snap.
Not sure what you are driving at here, so no suggestions yet. But have you
checked out the WORKDAY and NETWORKDAYS functions, part of the Analysis
Toolpak, which manage holidays. Do you want to explain what you are doing
with the dates re M-F?
Not seen the Toolpak yet, or where to acquire it.
As to the reason for the WORKDAY function I made it detects M-F
Explanation:
Assume A5 is the 1st workday of the month that you plug in manually.
Tou define the following eq. below as "WD" in the Name->Define section.
=IF(WEEKDAY($A5+1,2)=6,IF(WEEKDAY($A5+2,2)=7,$A5+3,$A3+2),$A5+1)
This equation detects for Saturday or Sunday and adds the appropriate number to "skip" the required days to get to the next workday... but it does not handle blocking the detection for EOM (end of month).
NOTE: for this discussion I changed the name of the function I created
"WORKDAY" to "WD" because as I now understand it
there is such a function of the same name in the Excel Toolpak.
That's where you past in this equation for the range A6:A31.
=IF(MONTH($A$5)=MONTH(WD),WD," ")
The conditional checks the 1st date for the month and compares it to the autoflowed equation values
determined by "WD"
It rejects anything out of the month comparison by giving a blank.
<There is a #VALUE! error after the second out of month values returned I have yet to fix>
Example: where bold is a plugged #, Day#=Count($A$5:A5) for the 1st cell
and =IF(MONTH($A$5)=MONTH(WORKDAY),COUNT($A$5:A6)," ") for the cells below,
and
Day of Wk=DAY(value in column A)=DAY(A5) for 1st cell example.
date
Day #
Day of wk
02/02/04
1
2
02/03/04
2
3
02/04/04
3
4
02/05/04
4
5
02/06/04
5
6
02/09/04
6
9
02/10/04
7
10
02/11/04
8
11
02/12/04
9
12
02/13/04
10
13
02/16/04
11
16
02/17/04
12
17
02/18/04
13
18
02/19/04
14
19
02/20/04
15
20
02/23/04
16
23
02/24/04
17
24
02/25/04
18
25
02/26/04
19
26
02/27/04
20
27
#VALUE!
#VALUE!
The rationales and goals.
<I want it to eventually exclude designated work holidays>
since the time the business is open is only on weekdays
excluding major designated holidays.
Week Workdays are the only days that have daily reports.
A report for the progress on a specific day is always done the next day,
as most of the IT staff goes home by 5pm.
So to report the full day,
The report is completed on the next day.
Data sheets are printed <yep stone age methods>
on a fast dot matrix/fan fold paper printout...
because there is no *soft* copy available.
Annoying, but that's as far as their integration has progressed,
and why it's not just dumped into something like Access
and then auto-dressed-up with Excel for the finished formatted reports.
Feel free to comment or ask a question.
My email gets about 80% spam so it's prolly best to discuss it here.
<grin>
Chris Hufford
Graystar
(e-mail address removed)