ไปยังเนื้อหาหลัก

วิธีแทนที่สูตรด้วยผลลัพธ์หรือค่าใน Excel

สมมติว่าคุณต้องแทนที่สูตรด้วยค่าที่คำนวณได้ในเซลล์แน่นอนว่าคุณสามารถแทนที่สูตรเหล่านี้ได้ด้วยตนเอง อย่างไรก็ตามจะเสียเวลามากหากคุณจะเปลี่ยนหลายคน มีวิธีง่ายๆไหม? ใช่วิธีที่ยุ่งยากต่อไปนี้จะช่วยให้คุณแทนที่สูตรด้วยค่าที่คำนวณได้อย่างรวดเร็วในการเลือก:

ตัวอย่างเช่นฉันมีช่วงของสูตรและตอนนี้ฉันต้องแทนที่สูตรด้วยค่าของเซลล์ดังที่แสดงภาพหน้าจอต่อไปนี้:


ลูกศรสีฟ้าฟองขวา แทนที่สูตรด้วยผลลัพธ์หรือค่าด้วยคำสั่ง Paste Special

Microsoft Excel's วางแบบพิเศษ คำสั่งสามารถช่วยคุณลบสูตรทั้งหมด แต่ยังคงค่าที่คำนวณไว้ในเซลล์

Step1: เลือกช่วงที่คุณจะใช้งาน

Step2: กด Ctrl + C เพื่อคัดลอกเซลล์ที่เลือก

Step3: คลิกขวาที่เซลล์ที่เลือกแล้วคลิก วางค่า ใต้ปุ่ม วางตัวเลือก.
doc- แปลงสูตรเป็นค่า 3

ตอนนี้คุณมีสูตรทั้งหมดในการเลือกแทนที่ด้วยค่าที่คำนวณได้ในคราวเดียว


ลูกศรสีฟ้าฟองขวา แทนที่สูตรด้วยผลลัพธ์หรือค่าด้วย VBA

สำหรับผู้ใช้ Microsoft Excel ที่มีประสบการณ์มาโคร VBA เป็นอีกหนึ่งทางเลือกที่ดีในการแทนที่สูตรด้วยค่าที่คำนวณได้อย่างรวดเร็ว

Step1: กดปุ่ม อื่น ๆ + F11 ใน Excel และจะเปิดไฟล์ Microsoft Visual Basic สำหรับแอปพลิเคชัน หน้าต่าง

Step2คลิกที่นี่ สิ่งที่ใส่เข้าไป > โมดูลและวางมาโครต่อไปนี้ในหน้าต่างโมดูล

VBA สำหรับการแทนที่สูตรด้วยค่าจากการคำนวณ:

Sub DisplayedToActual()
'Updateby20131126
Dim Rng As Range
Dim WorkRng As Range
On Error Resume Next
xTitleId = "KutoolsforExcel"
Set WorkRng = Application.Selection
Set WorkRng = Application.InputBox("Range", xTitleId, WorkRng.Address, Type:=8)
Application.ScreenUpdating = False
For Each Rng In WorkRng
    Rng.Value = Rng.Text
Next
Application.ScreenUpdating = True
End Sub

Step3: กด F5 กุญแจสำคัญในการเรียกใช้แมโครนี้ กล่องโต้ตอบจะปรากฏขึ้นเพื่อให้คุณเลือกช่วงที่จะแปลงเป็นค่าจริงดูภาพหน้าจอ:

Step4: คลิก OK. และคุณจะเห็นผลลัพธ์ที่แสดงด้านล่าง:


ลูกศรสีฟ้าฟองขวาแทนที่สูตรด้วยผลลัพธ์หรือค่าด้วย Kutools for Excel

ถ้าคุณมี Kutools สำหรับ Excelมัน แสดงเป็นจริง เครื่องมือสามารถช่วยให้คุณแปลงค่าหรือสูตรในเซลล์ที่เลือกไปเป็นรูปแบบได้อย่างรวดเร็ว

Kutools สำหรับ Excel, ที่มีมากกว่า 300 ฟังก์ชั่นที่มีประโยชน์ทำให้งานของคุณง่ายขึ้น 

หลังจาก ติดตั้งฟรี Kutools สำหรับ Excel โปรดทำดังนี้:

Step1: เลือกช่วงที่คุณจะใช้งาน

Step2: คลิก Kutools > เป็นจริงดูภาพหน้าจอ:

doc เป็นจริง 1 
 doc ลูกศรลง
 doc เป็นจริง 2


จากนั้นสูตรในการเลือกจะถูกแปลงเป็นค่าที่แสดง

สำหรับข้อมูลเพิ่มเติมเกี่ยวกับคุณลักษณะนี้โปรดไปที่ แสดงเป็นจริง.

ลูกศรสีฟ้าฟองขวาเป็นจริง - แทนที่สูตรด้วยค่าที่แสดง



ลูกศรสีฟ้าฟองขวา แทนที่สูตรด้วยข้อความโดย Kutools for Excel

หากคุณต้องการแทนที่สูตรด้วยข้อความคุณสามารถใช้ Kutools สำหรับ Excel's แปลงสูตรเป็นเท็กซ์t ยูทิลิตี้ในการแปลงสูตรเป็นข้อความในคลิกเดียว

หลังจากการติดตั้ง Kutools สำหรับ Excel โปรดทำดังนี้ :(ดาวน์โหลด Kutools for Excel ได้ฟรีทันที!)

เลือกสูตรแล้วคลิก Kutools > คอนเทนต์ > แปลงสูตรเป็นข้อความ. ดูภาพหน้าจอ:
doc แทนที่สูตรด้วยข้อความ 3

doc kutools แปลงสูตรเป็นข้อความ 2

จากนั้นสูตรจะถูกแปลงเป็นข้อความและหากคุณต้องการแปลงกลับเป็นสูตรให้คลิก Kutools > คอนเทนต์ > แปลงข้อความเป็นสูตร.

ลูกศรสีฟ้าฟองขวา แทนที่สูตรด้วยข้อความ



สุดยอดเครื่องมือเพิ่มผลผลิตในสำนักงาน

🤖 Kutools AI ผู้ช่วย: ปฏิวัติการวิเคราะห์ข้อมูลโดยยึดตาม: การดำเนินการที่ชาญฉลาด   |  สร้างรหัส  |  สร้างสูตรที่กำหนดเอง  |  วิเคราะห์ข้อมูลและสร้างแผนภูมิ  |  เรียกใช้ฟังก์ชัน Kutools...
คุณสมบัติยอดนิยม: ค้นหา เน้น หรือระบุรายการที่ซ้ำกัน   |  ลบแถวว่าง   |  รวมคอลัมน์หรือเซลล์โดยไม่สูญเสียข้อมูล   |   รอบโดยไม่มีสูตร ...
การค้นหาขั้นสูง: VLookup หลายเกณฑ์    VLookup หลายค่า  |   VLookup ข้ามหลายแผ่น   |   การค้นหาที่ไม่ชัดเจน ....
รายการแบบเลื่อนลงขั้นสูง: สร้างรายการแบบหล่นลงอย่างรวดเร็ว   |  รายการแบบหล่นลงขึ้นอยู่กับ   |  เลือกหลายรายการแบบหล่นลง ....
ผู้จัดการคอลัมน์: เพิ่มจำนวนคอลัมน์เฉพาะ  |  ย้ายคอลัมน์  |  สลับสถานะการมองเห็นของคอลัมน์ที่ซ่อนอยู่  |  เปรียบเทียบช่วงและคอลัมน์ ...
คุณสมบัติเด่น: กริดโฟกัส   |  มุมมองการออกแบบ   |   บาร์สูตรใหญ่    สมุดงานและตัวจัดการชีต   |  ห้องสมุดทรัพยากร (ข้อความอัตโนมัติ)   |  เลือกวันที่   |  รวมแผ่นงาน   |  เข้ารหัส/ถอดรหัสเซลล์    ส่งอีเมลตามรายการ   |  ซุปเปอร์ฟิลเตอร์   |   ตัวกรองพิเศษ (กรองตัวหนา/ตัวเอียง/ขีดทับ...) ...
ชุดเครื่องมือ 15 อันดับแรก12 ข้อความ เครื่องมือ (เพิ่มข้อความ, ลบอักขระ, ... )   |   50 + แผนภูมิ ประเภท (แผนภูมิ Gantt, ... )   |   40+ ใช้งานได้จริง สูตร (คำนวณอายุตามวันเกิด, ... )   |   19 การแทรก เครื่องมือ (ใส่ QR Code, แทรกรูปภาพจากเส้นทาง, ... )   |   12 การแปลง เครื่องมือ (ตัวเลขเป็นคำ, การแปลงสกุลเงิน, ... )   |   7 ผสานและแยก เครื่องมือ (แถวรวมขั้นสูง, แยกเซลล์, ... )   |   ... และอื่น ๆ

เพิ่มพูนทักษะ Excel ของคุณด้วย Kutools สำหรับ Excel และสัมผัสประสิทธิภาพอย่างที่ไม่เคยมีมาก่อน Kutools สำหรับ Excel เสนอคุณสมบัติขั้นสูงมากกว่า 300 รายการเพื่อเพิ่มประสิทธิภาพและประหยัดเวลา  คลิกที่นี่เพื่อรับคุณสมบัติที่คุณต้องการมากที่สุด...

รายละเอียด


แท็บ Office นำอินเทอร์เฟซแบบแท็บมาที่ Office และทำให้งานของคุณง่ายขึ้นมาก

  • เปิดใช้งานการแก้ไขและอ่านแบบแท็บใน Word, Excel, PowerPoint, ผู้จัดพิมพ์, Access, Visio และโครงการ
  • เปิดและสร้างเอกสารหลายรายการในแท็บใหม่ของหน้าต่างเดียวกันแทนที่จะเป็นในหน้าต่างใหม่
  • เพิ่มประสิทธิภาพการทำงานของคุณ 50% และลดการคลิกเมาส์หลายร้อยครั้งให้คุณทุกวัน!
Comments (7)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
Hi, Will it be possible to get a Macro that does what the above macro does but for the entire workbook all at once? would be of great help if you can write a macro that can.
This comment was minimized by the moderator on the site
Bah.. nothing new. Already knew all of hose tricks. In fact, I've been using paste special for quite a while. Unfortunately none of those options works for me. I would like to just set my spreadsheets on auto and let Excel do the trick on its own. I was looking to see if the folks at Microsoft have finally left the stone age by coming up with something more creative, more automated than paste special and VBA. Something that does not require cell selection or any other intervention by the user. For instance, it would be handy if there was a way to allow Excel to automatically kill the equations that are no longer needed but without eliminating the values or cell contents. That would be truly awesome. But I guess such a trick is not out of the cave yet so I'll have to live with 'paste special>values' option until we leave Excel prehistory behind.
This comment was minimized by the moderator on the site
Hello Friend,

Can you please make 2 vb code to convert all the linked formula to value
embedded within the formula. And the next to convert to formula again back to
normal with linked path. Like pack unpack option.

I make report in excel file which is linked to various other excel file and
then I have send this report to management but I don't want this to paste
special everytime. I just want to pack the formula and then unpack it when I
need to work on the same file.

I hope you understand my need.

Regards

Saysha
This comment was minimized by the moderator on the site
Can it be possible to apply this macro to specific formula in the range. i.e If we want to convert only vlookup formula to values but not sum formula in the selected range.
This comment was minimized by the moderator on the site
Please contact me at We welcome all questions, feedback and bug reports. If you're having an issue, we usually need the following information: A brief description of the issue and how it can be replicated (if applicable). Your Operating system (Windows 8, Windows 7, etc) and the version information of your Microsoft Office. Screenshots that illustrate the problem
This comment was minimized by the moderator on the site
I want to know or to apply script shown in your example but unable to understand about ---- "how to numbering in excel column or row having some cell single and some are merged". Please help me with pdf tutorials with complete explanation or how can i use your tool with complete explanation. Thanks Rakesh Upreti
This comment was minimized by the moderator on the site
THIS IS A LIFE SAVER... THANK YOU!!
There are no comments posted here yet
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations