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

จะส่งคืนค่าในเซลล์อื่นได้อย่างไรหากเซลล์มีข้อความบางอย่างใน Excel

ตามตัวอย่างที่แสดงด้านล่าง เมื่อเซลล์ E6 มีค่า "ใช่" เซลล์ F6 จะถูกเติมโดยอัตโนมัติด้วยค่า "อนุมัติ" หากคุณเปลี่ยน "ใช่" เป็น "ไม่" หรือ "เป็นกลาง" ใน E6 ค่าใน F6 จะเปลี่ยนเป็น "ปฏิเสธ" หรือ "พิจารณาใหม่" ทันที คุณจะทำอย่างไรเพื่อให้บรรลุ? บทความนี้รวบรวมวิธีการที่มีประโยชน์ซึ่งจะช่วยให้คุณแก้ปัญหาได้อย่างง่ายดาย


ส่งคืนค่าในเซลล์อื่นหากเซลล์มีข้อความที่มีสูตร

สำหรับการส่งคืนค่าในเซลล์อื่นหากเซลล์มีเฉพาะข้อความเฉพาะโปรดลองใช้สูตรต่อไปนี้ ตัวอย่างเช่นถ้า B5 มี“ Yes” ให้ส่งคืน“ Approve” ใน D5 มิฉะนั้นจะส่งคืน“ No qualify” กรุณาดำเนินการดังนี้.

เลือก D5 แล้วคัดลอกสูตรด้านล่างลงไปแล้วกดปุ่ม เข้าสู่ สำคัญ. ดูภาพหน้าจอ:

สูตร: ส่งคืนค่าในเซลล์อื่นหากเซลล์มีข้อความบางอย่าง

= IF (ISNUMBER (ค้นหา ("ใช่",D5)), "อนุมัติ","ไม่มีคุณสมบัติ")

หมายเหตุ:

1. ในสูตร“ใช่" D5"อนุมัติ"และ"ไม่มีคุณสมบัติ” ระบุว่าหากเซลล์ B5 มีข้อความ“ ใช่” เซลล์ที่ระบุจะถูกเติมด้วยข้อความ“ อนุมัติ” มิฉะนั้นจะเต็มไปด้วย“ ไม่มีคุณสมบัติ” คุณสามารถเปลี่ยนแปลงได้ตามความต้องการของคุณ

2. สำหรับการส่งคืนค่าจากเซลล์อื่น (เช่น K8 และ K9) ตามค่าเซลล์ที่ระบุโปรดใช้สูตรนี้:

= IF (ISNUMBER (ค้นหา ("ใช่",D5))K8,K9)

เลือกทั้งแถวหรือทั้งแถวได้อย่างง่ายดายในการเลือกตามค่าเซลล์ในคอลัมน์หนึ่ง ๆ :

พื้นที่ เลือกเซลล์เฉพาะ ประโยชน์ของ Kutools สำหรับ Excel สามารถช่วยให้คุณเลือกทั้งแถวหรือทั้งแถวได้อย่างรวดเร็วในการเลือกโดยยึดตามค่าของเซลล์ที่ระบุในคอลัมน์หนึ่งใน Excel  ดาวน์โหลดฟีเจอร์เต็มฟรี 60 วันของ Kutools for Excel ตอนนี้!


ส่งคืนค่าในเซลล์อื่นหากเซลล์มีข้อความที่มีสูตรต่างกัน

ส่วนนี้จะแสดงสูตรการคืนค่าในเซลล์อื่นหากเซลล์มีข้อความที่แตกต่างกันใน Excel

1. คุณต้องสร้างตารางที่มีค่าเฉพาะและส่งคืนค่าที่แยกจากกันในสองคอลัมน์ ดูภาพหน้าจอ:

2. เลือกเซลล์ว่างเพื่อส่งคืนค่าพิมพ์สูตรด้านล่างลงไปแล้วกด เข้าสู่ กุญแจสำคัญในการรับผลลัพธ์ ดูภาพหน้าจอ:

สูตร: ส่งคืนค่าในเซลล์อื่นหากเซลล์มีข้อความที่แตกต่างกัน

= VLOOKUP (E6,B5: C7,2, FALSE)

หมายเหตุ:

ในสูตร E6 คือเซลล์มีค่าเฉพาะที่คุณจะส่งคืนค่าตาม B5: C7 คือช่วงคอลัมน์ที่มีค่าเฉพาะและค่าที่ส่งคืนค่า 2 จำนวนหมายความว่าค่าส่งคืนที่อยู่ในคอลัมน์ที่สองในช่วงตาราง

จากนี้ไปเมื่อเปลี่ยนค่าใน E6 เป็นค่าเฉพาะค่าที่เกี่ยวข้องจะถูกส่งกลับใน F6 ทันที


คืนค่าในเซลล์อื่นได้อย่างง่ายดายหากเซลล์มีข้อความที่แตกต่างกัน

จริงๆแล้วคุณสามารถแก้ปัญหาข้างต้นได้ด้วยวิธีที่ง่ายกว่า มองหาค่าในรายการ ประโยชน์ของ Kutools สำหรับ Excel สามารถช่วยให้คุณบรรลุได้ด้วยการคลิกเพียงไม่กี่ครั้งโดยไม่ต้องจำสูตร

1. เช่นเดียวกับวิธีการข้างต้นคุณต้องสร้างตารางที่มีค่าเฉพาะและส่งคืนค่าที่ค้นหาแยกกันในสองคอลัมน์

2. เลือกเซลล์ว่างเพื่อแสดงผลลัพธ์ (ที่นี่ฉันเลือก F6) จากนั้นคลิก Kutools > ตัวช่วยสูตร > ตัวช่วยสูตร. ดูภาพหน้าจอ:

3 ใน ตัวช่วยสูตร โปรดกำหนดค่าดังต่อไปนี้:

  • 3.1 ใน เลือกสูตร ค้นหาและเลือก มองหาค่าในรายการ;
    เคล็ดลับ: คุณสามารถตรวจสอบไฟล์ ตัวกรอง ป้อนคำบางคำลงในกล่องข้อความเพื่อกรองสูตรอย่างรวดเร็ว
  • 3.2 ใน Table_array เลือกตารางที่ไม่มีส่วนหัวที่คุณสร้างไว้ในขั้นตอนที่ 1
  • 3.2 ใน lookup_value เลือกเซลล์ที่มีค่าเฉพาะที่คุณจะส่งคืนค่าตาม;
  • 3.3 ใน คอลัมน์ ระบุคอลัมน์ที่คุณจะส่งคืนค่าที่ตรงกันจาก หรือคุณสามารถป้อนหมายเลขคอลัมน์ลงในกล่องข้อความได้โดยตรงตามที่คุณต้องการ
  • 3.4 คลิกปุ่ม OK ปุ่ม. ดูภาพหน้าจอ:

จากนี้ไปเมื่อเปลี่ยนค่าใน E6 เป็นค่าเฉพาะค่าที่เกี่ยวข้องจะถูกส่งกลับใน F6 ทันที ดูผลลัพธ์ด้านล่าง:

  หากคุณต้องการทดลองใช้ยูทิลิตีนี้ฟรี (30 วัน) กรุณาคลิกเพื่อดาวน์โหลดแล้วไปใช้การดำเนินการตามขั้นตอนข้างต้น


Kutools สำหรับ Excel - ช่วยให้คุณทำงานเสร็จก่อนเวลาเสมอมีเวลาสนุกกับชีวิตมากขึ้น
คุณมักพบว่าตัวเองมัว แต่เล่นงานไม่มีเวลาทำเพื่อตัวเองและครอบครัว?  Kutools สำหรับ Excel สามารถช่วยให้คุณจัดการกับ 80% ไขปริศนา Excel และปรับปรุงประสิทธิภาพการทำงาน 80% ให้คุณมีเวลาดูแลครอบครัวและสนุกกับชีวิตมากขึ้น
300 เครื่องมือขั้นสูงสำหรับ 1500 สถานการณ์การทำงาน ทำให้งานของคุณง่ายขึ้นกว่าที่เคย
ไม่จำเป็นต้องจำสูตรและรหัส VBA อีกต่อไปให้สมองของคุณได้พักผ่อนตั้งแต่บัดนี้เป็นต้นไป
การดำเนินการที่ซับซ้อนและซ้ำ ๆ สามารถดำเนินการครั้งเดียวในไม่กี่วินาที
ลดการใช้งานคีย์บอร์ดและเมาส์นับพันทุกวันบอกลาโรคจากการทำงานได้เลย
เป็นผู้เชี่ยวชาญด้าน Excel ใน 3 นาทีช่วยให้คุณได้รับการยอมรับอย่างรวดเร็วและโปรโมชั่นเพิ่มเงิน
110,000 คนที่มีประสิทธิภาพสูงและทางเลือกของ บริษัท ที่มีชื่อเสียงระดับโลกกว่า 300 บริษัท
ทำให้ $ 39.0 ของคุณคุ้มค่ากว่า $ 4000.0 การฝึกอบรมของผู้อื่น
ทดลองใช้ฟีเจอร์เต็มรูปแบบฟรี 30 วัน รับประกันคืนเงินภายใน 60 วันโดยไม่มีเหตุผล

Comments (98)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
What would I need to add to this formula (Method A) to get a third BLANK option? And where would it go?
Example:
If the cell I'm searching is blank, I would like it to return no value in the other cell. I do not want the "if false" value to populate.
This comment was minimized by the moderator on the site
i want a cell to automatically choose a number based on the drop-down option in the cell before, e.g drop-down, half meal, full meal, if I select half meal drop-down, the next cell should show 50% while the full meal drop-down will reflect 100%. please help
This comment was minimized by the moderator on the site
Hi Josh,
In the cell where you want to output the percentage, enter the following formula and press the Enter key. Hope I can help.
=IF(C15="half meal", "50%", IF(C15="full meal", "100%", ""))
This comment was minimized by the moderator on the site
Is it possible to return a certain value in 1 column based on another?


What I currently have: On a differnt tab (same worksheet):
Column A Column B
Location Name Dept Location Name Location Code
Miami 4455 Miami 123


What I want to happen:
Location Name Dept
Miami 11234455

In Coumn B, I want it to first add a 1, then take what is in Column A, see what is the Location Code on then different tab, insert that location code, and add that to the front of the current data in Column B.

1 + 123 + 4455
This comment was minimized by the moderator on the site
Hi Jen Rader,
You can apply the following formula to get it done.
=IFERROR(1&VLOOKUP(A9,Sheet2!$A$2:$B$5,2, 0)&VLOOKUP(Sheet1!A9,Sheet1!$A$2:$B$5,2, 0),"")
In this formula,
1. A9 is the cell contains the value you want to return values based on;
2. Sheet2 is the tab name contains the "Location Code"; If the tab name contains space, please enclose the tab name in single quotes, such as 'tab name'.
3. Sheet1 is the tab name contains the "Dept";
4. $A$2:$B$5 is the range containing the table data (include both search values and return values ).
See screenshots below:
https://www.extendoffice.com/images/stories/comments/comment-picture-zxm/return1.png
https://www.extendoffice.com/images/stories/comments/comment-picture-zxm/return2.png
This comment was minimized by the moderator on the site
OMG Crystal! You are amazing! Show me your ways! Thank you so much - it worked exactly like I was hoping!
This comment was minimized by the moderator on the site
I am trying to find out the formula to copy the number shown in B2 on cell D2 if the Cell C2 has a letter "S". Can anyone help me?
This comment was minimized by the moderator on the site
Hi Aurora,
Please enter the following formula in cell D2.
=IF(ISNUMBER(SEARCH("S",C2)),B2,"No qualify")
This comment was minimized by the moderator on the site
Bonjour à tous, j'ai un tableau Excel et j'aimerais réaliser via une macro l'opération suivante: si une cellule contient une date, me renvoyer une valeur dans une autre cellule. Pourriez vous m'aider s'il vous plait? Je vous remercie par avance
This comment was minimized by the moderator on the site
STALLS D 25 Palais - Stalls SR
STALLS M 19 Palais - Stalls SR
LOUNGE E 22 Palais - Lounge SR
LOUNGE G 23 Palais - Lounge SL
ORCH K 40 Palais - Orchestra SR
For each line in a spreadsheet I need to evaluate against a table like above and find the value that matches all of the first 3 values.
Normally I would use sumifs for this type of problem but the answer is a text string so it returns 0
This comment was minimized by the moderator on the site
I need a formula that makes column N equal the text “OTO” if column K equals MCS TRAINING how do I do that???
This comment was minimized by the moderator on the site
Hi Abby,Please apply the following formula in the cells of column N:=IF(ISNUMBER(MATCH("MCS TRAINING",K1)),"OTO","NULL")
This comment was minimized by the moderator on the site
Hi - This is my formula that I am working with.  Currently it works, but where B21 is being returned, the value of B21 is a link to another place altogether.  I want to keep the display text but would like to include the link as well.  Can this be done?  =IF(ISNUMBER(SEARCH("DATA_MAPPING",general_report!AJ21)),general_report!B21,"")
This comment was minimized by the moderator on the site
Is it possible to split the return value to a different tab? IE: columns B and C are located on one tab, and values in columns E and F are located on a different tab?
This comment was minimized by the moderator on the site
Hi

Is it possible to populate another cell, not the cell with the formula.

Example
A1 Yes
A2 3
A3 Formula searches A1, Grabs value at A2 and if Yes Paste it in A4
A4 3 
This comment was minimized by the moderator on the site
Hi,
Sorry can't help you with the problem. I suggest you post the problem to the forum below to get help from other Excel enthusiasts.
https://www.extendoffice.com/forum/kutools-for-excel.html 
There are no comments posted here yet
Load More
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations