From: Steve on 11 Mar 2010 11:45 I have days off in the P column in this format: Sat/Sun I'm using them in another column in this format SatSun, so I'm using this formula: =LEFT(P21,3)&RIGHT(P21,3), which produces SatSun However, I have some days off that just have Sun, which produces SunSun. How can the formula be writen to produce SatSun when two days are showing, and only Sun when one day is showing ? Thanks, Steve
From: Fred Smith on 11 Mar 2010 11:51 Use Substitute, as in: =Substitute(P21,"/","") Regards, Fred "Steve" <Steve(a)discussions.microsoft.com> wrote in message news:D1729A01-069B-4F49-BE64-678E1C6E3788(a)microsoft.com... >I have days off in the P column in this format: Sat/Sun > I'm using them in another column in this format SatSun, so I'm using this > formula: > =LEFT(P21,3)&RIGHT(P21,3), which produces SatSun > However, I have some days off that just have Sun, which produces SunSun. > How can the formula be writen to produce SatSun when two days are showing, > and only Sun when one day is showing ? > > Thanks, > > Steve
From: Glenn on 11 Mar 2010 11:53 Steve wrote: > I have days off in the P column in this format: Sat/Sun > I'm using them in another column in this format SatSun, so I'm using this > formula: > =LEFT(P21,3)&RIGHT(P21,3), which produces SatSun > However, I have some days off that just have Sun, which produces SunSun. > How can the formula be writen to produce SatSun when two days are showing, > and only Sun when one day is showing ? > > Thanks, > > Steve =IF(LEN(P21)=7,LEFT(P21,3)&RIGHT(P21,3),P21)
From: Glenn on 11 Mar 2010 11:57 Yes, much better! Fred Smith wrote: > Use Substitute, as in: > =Substitute(P21,"/","") > > Regards, > Fred > > "Steve" <Steve(a)discussions.microsoft.com> wrote in message > news:D1729A01-069B-4F49-BE64-678E1C6E3788(a)microsoft.com... >> I have days off in the P column in this format: Sat/Sun >> I'm using them in another column in this format SatSun, so I'm using this >> formula: >> =LEFT(P21,3)&RIGHT(P21,3), which produces SatSun >> However, I have some days off that just have Sun, which produces SunSun. >> How can the formula be writen to produce SatSun when two days are >> showing, >> and only Sun when one day is showing ? >> >> Thanks, >> >> Steve >
From: ker_01 on 11 Mar 2010 12:19 =if(len(P21)>3,LEFT(P21,3)&RIGHT(P21,3),P21) Assumes that cell P21 has nothing in it but either Sat, Sun, or Sat...Sun HTH, Keith "Steve" wrote: > I have days off in the P column in this format: Sat/Sun > I'm using them in another column in this format SatSun, so I'm using this > formula: > =LEFT(P21,3)&RIGHT(P21,3), which produces SatSun > However, I have some days off that just have Sun, which produces SunSun. > How can the formula be writen to produce SatSun when two days are showing, > and only Sun when one day is showing ? > > Thanks, > > Steve
|
Next
|
Last
Pages: 1 2 3 Prev: create a button to print certain tabs in excel 2003 Next: Merging different sheets |