Page 1 of 1
Replace วงเล็บออกไม่ได้ค่ะ
Posted: Wed May 23, 2018 2:17 pm
by sarita21
จะเอาวงเล็บปิดเปิด ออกจากข้อความจำนวนมาก ใช้วิธี Replace แล้วไม่ได้ค่ะควรทำอย่างไร
Re: Replace วงเล็บออกไม่ได้ค่ะ
Posted: Wed May 23, 2018 2:55 pm
by Supachok
ฺB3
=REPLACE(RIGHT(A3,12),11,11,"")
Re: Replace วงเล็บออกไม่ได้ค่ะ
Posted: Wed May 23, 2018 3:00 pm
by sarita21
ใช้ ctrl+H ไม่ได้หรอค่ะ กรณีนี้
Re: Replace วงเล็บออกไม่ได้ค่ะ
Posted: Wed May 23, 2018 3:04 pm
by notta_nobi
ใช้ ctrl+H ได้ครับ
ต้องทำ 2 ครั้ง ครั้งแรกทำ "(" ครั้งที่สองทำ ")"
Re: Replace วงเล็บออกไม่ได้ค่ะ
Posted: Wed May 23, 2018 3:06 pm
by sarita21
notta_nobi wrote: Wed May 23, 2018 3:04 pm
ใช้ ctrl+H ได้ครับ
ต้องทำ 2 ครั้ง ครั้งแรกทำ "(" ครั้งที่สองทำ ")"
ลองแล้วไม่ได้ค่ะ ทำสองครั้ง
Re: Replace วงเล็บออกไม่ได้ค่ะ
Posted: Wed May 23, 2018 3:09 pm
by Supachok
แบบ dynamic.
B3
=LEFT(REPLACE(A3,1,1,),LEN(REPLACE(A3,1,1,))-1)
Re: Replace วงเล็บออกไม่ได้ค่ะ
Posted: Wed May 23, 2018 7:36 pm
by snasui
sarita21 wrote: Wed May 23, 2018 3:06 pm
notta_nobi wrote: Wed May 23, 2018 3:04 pm
ใช้ ctrl+H ได้ครับ
ต้องทำ 2 ครั้ง ครั้งแรกทำ "(" ครั้งที่สองทำ ")"
ลองแล้วไม่ได้ค่ะ ทำสองครั้ง

ช่วยเล่ารายละเอียดว่า Replace แล้วติดปัญหาอย่างไรมาด้วยจะได้ช่วยวินิจฉัยให้ได้ครับ
Re: Replace วงเล็บออกไม่ได้ค่ะ
Posted: Wed May 23, 2018 8:07 pm
by Serverchita
ฺเสริมให้ครับ ที่ B1 =TRIM(SUBSTITUTE(SUBSTITUTE(A1,"(",""),")",""))
Re: Replace วงเล็บออกไม่ได้ค่ะ
Posted: Thu May 24, 2018 7:43 am
by sarita21
snasui wrote: Wed May 23, 2018 7:36 pm
sarita21 wrote: Wed May 23, 2018 3:06 pm
notta_nobi wrote: Wed May 23, 2018 3:04 pm
ใช้ ctrl+H ได้ครับ
ต้องทำ 2 ครั้ง ครั้งแรกทำ "(" ครั้งที่สองทำ ")"
ลองแล้วไม่ได้ค่ะ ทำสองครั้ง

ช่วยเล่ารายละเอียดว่า Replace แล้วติดปัญหาอย่างไรมาด้วยจะได้ช่วยวินิจฉัยให้ได้ครับ
ขอบุณอาจารย์ค่ะ Replace ได้แล้วค่ะ
Re: Replace วงเล็บออกไม่ได้ค่ะ
Posted: Thu May 24, 2018 7:44 am
by sarita21
notta_nobi wrote: Wed May 23, 2018 3:04 pm
ใช้ ctrl+H ได้ครับ
ต้องทำ 2 ครั้ง ครั้งแรกทำ "(" ครั้งที่สองทำ ")"
ขอบคุณค่ะ ทำตามได้แล้วค่ะ