E
Ed from AZ
In Excel 2007, I'm trying to insert the appropriate month in a
concatenated string of dates.
The worksheets are named as "Month Year". I have two rows (8 and 9)
across the top of my data that hold the dates in Cols E:AP; they have
all the days of the current moth, plus the last seven days of the
previous month. L9:AP9 are labeled 1 through 31; L8:AP8 use a formula
to pull the month off the sheet tab and insert it as MMM. E8:K8 use
the same formula -1 to get the previous MMM, and E9:K9 use a EOMONTH
formula based on E8:K8 to get the correct last 7 days.
Each set of rows underneath these headers is for a job. In one row,
the user places an X in the appropriate date column if the job was
supported on that day of the month. A concatenate formula at the end
of each of the "days worked" rows strings together the days marked by
"X" separated by commas. The formula is:
=CONCATENATE((IF($E10="X",$E$9&",","")),(IF($F10="X",$F$9&",","")),
etc through AP.
Right now, I get
28, 29, 1, 2
I can adjust the formula and get
MAR 28, MAR 29, APR 1, APR 2
I'd like to get
MAR 28, 29, APR 1, 2
I think I'd have to insert something into my current concatenate like
IF(any cells in E:K are "X", "MAR","")
but I can't quite come up with that. Any help?
Ed
concatenated string of dates.
The worksheets are named as "Month Year". I have two rows (8 and 9)
across the top of my data that hold the dates in Cols E:AP; they have
all the days of the current moth, plus the last seven days of the
previous month. L9:AP9 are labeled 1 through 31; L8:AP8 use a formula
to pull the month off the sheet tab and insert it as MMM. E8:K8 use
the same formula -1 to get the previous MMM, and E9:K9 use a EOMONTH
formula based on E8:K8 to get the correct last 7 days.
Each set of rows underneath these headers is for a job. In one row,
the user places an X in the appropriate date column if the job was
supported on that day of the month. A concatenate formula at the end
of each of the "days worked" rows strings together the days marked by
"X" separated by commas. The formula is:
=CONCATENATE((IF($E10="X",$E$9&",","")),(IF($F10="X",$F$9&",","")),
etc through AP.
Right now, I get
28, 29, 1, 2
I can adjust the formula and get
MAR 28, MAR 29, APR 1, APR 2
I'd like to get
MAR 28, 29, APR 1, 2
I think I'd have to insert something into my current concatenate like
IF(any cells in E:K are "X", "MAR","")
but I can't quite come up with that. Any help?
Ed