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

วิธีค้นหาค่าสูงสุดหรือต่ำสุดตามเกณฑ์ใน Excel

doc-find-max-value-with-criteria-1

สมมติว่าฉันมีช่วงข้อมูลต่อไปนี้คอลัมน์ A มีชื่อผลิตภัณฑ์และคอลัมน์ B มีปริมาณการสั่งซื้อตอนนี้ฉันต้องการค้นหามูลค่าการสั่งซื้อสูงสุดของผลิตภัณฑ์ KTE ตามภาพหน้าจอต่อไปนี้ที่แสดง ใน Excel เราจะแยกค่าสูงสุดหรือต่ำสุดตามเกณฑ์อย่างน้อยหนึ่งเกณฑ์ได้อย่างไร

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

ค้นหาค่าสูงสุดหรือต่ำสุดตามเกณฑ์หลายเกณฑ์


ลูกศรสีฟ้าฟองขวา ค้นหาค่าสูงสุดหรือต่ำสุดตามเกณฑ์เดียวเท่านั้น

หากต้องการส่งคืนค่าสูงสุดหรือต่ำสุดด้วยเกณฑ์เดียวฟังก์ชัน MAX จะช่วยคุณได้

1. ใส่สูตรนี้: =MAX((A2:A13=D2)*B2:B13) ลงในเซลล์เฉพาะที่คุณต้องการดูภาพหน้าจอ:

doc-find-max-value-with-criteria-2

เคล็ดลับ: ในสูตรนี้: A2: A13 is เซลล์ช่วงที่มีเกณฑ์ D2 คือเกณฑ์ที่คุณต้องการค้นหาค่าสูงสุดตาม B2: B13 คือช่วงที่ส่งคืนค่าที่สอดคล้องกัน

2. จากนั้นกด Ctrl + Shift + Enter คีย์เข้าด้วยกันเพื่อรับค่าสูงสุดของ KTE ดูภาพหน้าจอ:

doc-find-max-value-with-criteria-3

หมายเหตุ: หากต้องการรับค่าขั้นต่ำตามเกณฑ์เฉพาะโปรดป้อนสูตรนี้ =MIN(IF(A2:A13=D2,B2:B13))หลังจากพิมพ์สูตรคุณต้องกด Ctrl + Shift + Enter คีย์เข้าด้วยกันจากนั้นคุณจะได้รับผลลัพธ์ต่อไปนี้:

doc-find-max-value-with-criteria-4


ลูกศรสีฟ้าฟองขวา ค้นหาค่าสูงสุดหรือต่ำสุดตามเกณฑ์หลายเกณฑ์

หากคุณต้องการค้นหาค่าสูงสุดหรือต่ำสุดที่มีหลายเกณฑ์คุณสามารถใช้สูตรต่อไปนี้:

รับข้อมูลต่อไปนี้เช่นฉันต้องการค้นหาคำสั่งซื้อสูงสุดหรือต่ำสุดของ KTE ในเดือนมกราคม:

doc-find-max-value-with-criteria-5

1. ป้อนสูตรนี้ลงในเซลล์ที่คุณต้องการวางผลลัพธ์: =MAX(IF(A2:A13=F1,IF(B2:B13=F2,C2:C13)))ดูภาพหน้าจอ:

doc-find-max-value-with-criteria-7

เคล็ดลับ: ในสูตรนี้: A2: A13 คือข้อมูลที่มีเงื่อนไข 1 B2: B13 คือช่วงข้อมูลที่มีเงื่อนไข 2 F1 และ F2 เป็นเกณฑ์ที่คุณยึดตาม C2: C13 หมายถึงช่วงที่คุณต้องการส่งคืนค่าสูงสุด

2. จากนั้นกด Ctrl + Shift + Enter คีย์พร้อมกันค่าสูงสุดที่ค่าที่สอดคล้องกันใน A2: A13 เท่ากับค่าใน F1และค่าที่สอดคล้องกันใน B2: B13 เท่ากับค่าใน F2 จะถูกส่งกลับ

doc-find-max-value-with-criteria-8

หมายเหตุ: เพื่อให้ได้ค่าต่ำสุดตามเกณฑ์เหล่านี้โปรดใช้สูตรนี้: =MIN(IF(A2:A13=F1,IF(B2:B13=F2,C2:C13)))และอย่าลืมกด Ctrl + Shift + Enter คีย์ร่วมกัน


Advanced Combine Rows: (ค้นหาค่าสูงสุดหรือต่ำสุดตามคอลัมน์หลัก)

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

  • 1. ระบุคอลัมน์หลักที่คุณต้องการค้นหาค่าสูงสุดหรือต่ำสุดที่คอลัมน์อื่นอ้างอิง
  • 2. เลือกการคำนวณที่คุณต้องการ

doc-find-max-value-with-criteria-9

Kutools สำหรับ Excel: ด้วย Add-in ของ Excel ที่มีประโยชน์มากกว่า 200 รายการให้ทดลองใช้ฟรีโดยไม่มีข้อ จำกัด ใน 60 วัน ดาวน์โหลดและทดลองใช้ฟรีทันที!


บทความที่เกี่ยวข้อง:

จะเลือกข้อมูล / ค่าสูงสุดด้วยฟังก์ชันสูงสุดใน Excel ได้อย่างไร

วิธีเลือกค่าสูงสุดและค่าต่ำสุดใน Excel

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

🤖 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 (10)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
Tip: use MAXIFS(max_range, criteria_range1, criteria1, [criteria_range2, criteria2], ...) or MINIFS...


The solution presented here is stupid and doesn't really work.
This comment was minimized by the moderator on the site
This was super helpful, thank you so much!
This comment was minimized by the moderator on the site
i'm finding min value from each cell (which not in a range), and it give me answer '-'. how to solve this? =min(A3, B3, D3, G3). but the B3 is zero.
This comment was minimized by the moderator on the site
Hello,

Similar to above example, where the MAX array formula finds the max value for KTE and Jan (two conditions) --> i am trying to do almost same, but i need to return not just the maximum value, but the name of the row which contains this maximum value... Imagine, if there is one more column between B and C, which contains the name of the person who did the order, for example... I was trying to use INDEX formula, but it doesn't really work. Like this: =INDEX(C2:C13,MAX(IF(A2:A13=F1,IF(B2:B13=F2,D2:D13)),0) What can be the solution here?
This comment was minimized by the moderator on the site
Hi,

I would like to get help to retrieve a value from a table based on an Object's Name (Multiple objects with multiple data from a same objects which differentiate by date) to get the latest data based on specified date ( more latest data may be available than the specified data).

No. Well Start Date End Date Oil Rates (stb/d)
1 BT-101L 1/1/2017 0:00 1/2/2017 0:00 59
2 BT-106L 1/7/2017 0:00 1/8/2017 0:00 124
3 BT-106S 1/8/2017 0:00 1/9/2017 0:00 132
4 BT-101L 1/9/2017 0:00 1/10/2017 0:00 138
5 BT-201S 1/10/2017 0:00 1/11/2017 0:00 144
6 BT-203S 1/11/2017 0:00 1/12/2017 0:00 150
7 BT-101L 1/29/2017 0:00 1/30/2017 0:00 269

In the results mode, I need to populate the data based on latest available data.

Date BT-101L
1-Jan 59
2-Jan 59
3-Jan 59
4-Jan 59
5-Jan 59
6-Jan 59
7-Jan 59
8-Jan 132
9-Jan 132
10-Jan 132
11-Jan 132
12-Jan 132
13-Jan 132
14-Jan 132
15-Jan 132
16-Jan 132

Can anyone help?
This comment was minimized by the moderator on the site
Similar question but based on reversed information. I work in land investment. I have a list of counties and corresponding values. The lower the value the more I need to work in the area. If I plug say "County A" with a value of 100, then County B with a value of 85, then County C with a value of 66, what statement can I use to identify County C as the one I need to work on?
This comment was minimized by the moderator on the site
Hi, when I try the MIN formula it doesn't work and just gives me 0??
This comment was minimized by the moderator on the site
Virtualcoyright - Do you have blanks in the range you are using the MIN for? If so, it will return with the following formula 0:

=MIN(IF(A2:A13=D2,B2:B13))

To prevent it getting 0 if blanks exist in the range B2:B13, write the formula in the following manner:

=MIN(IF(A2:A13=D2,IF(B2:B13<>0,B2:B13)))
This comment was minimized by the moderator on the site
Sir you have just saved my bacon ! I was facing a problem that i didn't have any blanks & all values where > 0 but the minimum formula resulted in 0 while i wanted the least positive value and your modified formula did just that. I think they should modify the article to include your modified formula.
There are no comments posted here yet
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations