If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
|
Thread Tools | Display Modes |
#11
|
|||
|
|||
left/right or center ?
Very nice. And clean too.
Thanks much, Steve "Fred Smith" wrote: Use Substitute, as in: =Substitute(P21,"/","") Regards, Fred "Steve" wrote in message news 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 . |
#12
|
|||
|
|||
left/right or center ?
You're welcome. Thanks for the feedback.
Fred. "Steve" wrote in message ... Very nice. And clean too. Thanks much, Steve "Fred Smith" wrote: Use Substitute, as in: =Substitute(P21,"/","") Regards, Fred "Steve" wrote in message news 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 . |
#13
|
|||
|
|||
left/right or center ?
=if(len(P21)3,LEFT(P21,3)&RIGHT(P21,3),If(len(P21 )0,P21,"")) aircode, so double check the paran placement, but this takes care of the "empty cells equal zero" problem. "Steve" wrote: Thanks, Works great, but I'm getting zeros now in the cells when there is nothing in the P column cells, which is a lot. How can I eleminate the zeros if nothing is in the P column cell ? "ker_01" wrote: =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 |
#14
|
|||
|
|||
left/right or center ?
That'll do it.
Thank you, Steve "ker_01" wrote: =if(len(P21)3,LEFT(P21,3)&RIGHT(P21,3),If(len(P21 )0,P21,"")) aircode, so double check the paran placement, but this takes care of the "empty cells equal zero" problem. "Steve" wrote: Thanks, Works great, but I'm getting zeros now in the cells when there is nothing in the P column cells, which is a lot. How can I eleminate the zeros if nothing is in the P column cell ? "ker_01" wrote: =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 |
|
Thread Tools | |
Display Modes | |
|
|