Hlookup in google sheets

Author: t | 2025-04-24

★★★★☆ (4.5 / 2220 reviews)

buy lifemiles

How to Combine VLOOKUP and HLOOKUP Functions to Do 2D Searches in Google Sheets. VLOOKUP and HLOOKUP are two of the most often used functions in Google Sheets.VLOOKUP conducts vertical searches, whereas HLOOKUP does horizontal searches.In Google Sheets, combining VLOOKUP and HLOOKUP may be quite effective.They may be Vlookup alternative functions in Google Sheets: Hlookup function . Having covered two other Vlookup alternative functions in Google Sheets, now let’s learn about another useful function in Google Sheets called Hlookup. It’s

doawnload media

How to Hlookup in Google Sheets

The Consolidate dialog box, choose the function you want to use (Sum, Average, etc.). Click on the Reference box, then navigate to the first sheet you want to include. Select the data range and click Add. Repeat the previous step for each sheet you want to include in the consolidation. Check the boxes for Top row and Left column if your data has headers. Click OK to consolidate your data.And there you have it! Your data should now be combined into the sheet you selected. This tool is relatively straightforward, but keep in mind it doesn't automatically update if you change the source data.Using Formulas: The VLOOKUP and HLOOKUPFormulas like VLOOKUP and HLOOKUP can be your best friends when it comes to combining data. They allow you to search for a specific value in one table and return a related value from another table. Here's how you can use them:Using VLOOKUP: Identify the common key between the sheets (e.g., an ID number or name). Go to the sheet where you want the data to appear. Use the VLOOKUP formula in a cell like this: =VLOOKUP(lookup_value, table_array, col_index_num, [range_lookup])some text lookup_value: The value you want to search for. table_array: The range that contains the data. col_index_num: The column number from which to return the value. range_lookup: Use FALSE for an exact match. For example, if you're looking up a product name based on an ID, your formula might look like this: =VLOOKUP(A2, Sheet2!A:B, 2, FALSE)Using HLOOKUP:HLOOKUP works similarly to VLOOKUP, but it searches for values in a row rather than a column. This can be handy if your data is organized horizontally.While VLOOKUP and HLOOKUP are powerful, they can become cumbersome with large datasets. If your data is massive or you're dealing with multiple sheets, you might want to consider more. How to Combine VLOOKUP and HLOOKUP Functions to Do 2D Searches in Google Sheets. VLOOKUP and HLOOKUP are two of the most often used functions in Google Sheets.VLOOKUP conducts vertical searches, whereas HLOOKUP does horizontal searches.In Google Sheets, combining VLOOKUP and HLOOKUP may be quite effective.They may be Vlookup alternative functions in Google Sheets: Hlookup function . Having covered two other Vlookup alternative functions in Google Sheets, now let’s learn about another useful function in Google Sheets called Hlookup. It’s La Fonction RECHERCHEH (HLOOKUP) - Google Sheets La Fonction RECHERCHEH (HLOOKUP) - Google Sheets The function HLOOKUP in Google Sheets is a tool that allows you to search and find specific data in a table and return the related information. It is a very useful function for searching and comparing data in a spreadsheet. 2. How do you use the HLOOKUP function in Google Sheets? To use the function HLOOKUP In Google Sheets, follow these steps: Let us now practice using the HLOOKUP function. How to use HLOOKUP Function in Google Sheets Before you input the HLOOKUP function, make sure that all data in the source spreadsheet is correct.; In this example, we use this data: Now, when we input the HLOOKUP function, we must start it with an ‘ ‘sign. Otherwise, the Google Sheet HLOOKUP (ฟังก์ชัน HLOOKUP) Applies ToExcel for Microsoft 365 Excel for Microsoft 365 for Mac Excel สำหรับเว็บ Excel 2024 Excel 2024 for Mac Excel 2021 Excel 2021 for Mac Excel 2019 Excel 2016 Office for iPhone ของฉัน Office.com เคล็ดลับ: ลองใช้ฟังก์ชัน XLOOKUP ใหม่ ซึ่งเป็น HLOOKUP เวอร์ชันที่ได้รับการปรับปรุงที่ทํางานในทุกทิศทางและส่งกลับรายการที่ตรงกันตามค่าเริ่มต้น ทําให้ใช้งานง่ายและสะดวกกว่ารุ่นก่อน บทความนี้จะอธิบายเกี่ยวกับไวยากรณ์ของสูตรและการใช้ฟังก์ชัน HLOOKUP ใน Microsoft Excel คำอธิบาย ค้นหาค่าในแถวบนสุดของตารางหรือ อาร์เรย์ ค่า แล้วส่งกลับค่าในคอลัมน์เดียวกันจากแถวที่คุณระบุในตารางหรืออาร์เรย์ ใช้ HLOOKUP เมื่อค่าการเปรียบเทียบของคุณอยู่ในแถวทางด้านบนของตารางข้อมูล และคุณต้องการหาจํานวนแถวที่ระบุ ใช้ VLOOKUP เมื่อค่าการเปรียบเทียบของคุณอยู่ในคอลัมน์ทางด้านซ้ายของข้อมูลที่คุณต้องการค้นหา อักษร H ในฟังก์ชัน HLOOKUP ย่อมาจาก "Horizontal" ไวยากรณ์ HLOOKUP(lookup_value, table_array, row_index_num, [range_lookup]) ไวยากรณ์ของฟังก์ชัน HLOOKUP มีอาร์กิวเมนต์ดังนี้ Lookup_value จำเป็น ค่าที่จะพบในแถวแรกของตาราง Lookup_value อาจเป็นค่า การอ้างอิง หรือสตริงข้อความก็ได้ Table_array จำเป็น ตารางข้อมูลที่ข้อมูลถูกค้นหา ใช้การอ้างอิงไปยังช่วงหรือชื่อช่วง ค่าในแถวแรกของ table_array สามารถเป็นข้อความ ตัวเลข หรือค่าตรรกะ ถ้า range_lookup เป็น TRUE ค่าในแถวแรกของ table_array จะต้องเรียงลําดับจากน้อยไปหามาก: ...-2, -1, 0, 1, 2,... , A-Z, FALSE, TRUE; มิฉะนั้น HLOOKUP อาจให้ค่าที่ไม่ถูกต้อง ถ้า range_lookup เป็น FALSE table_array ไม่จําเป็นต้องเรียงลําดับ ข้อความแบบตัวพิมพ์ใหญ่และตัวพิมพ์เล็กจะมีค่าเท่ากัน เรียงลําดับค่าจากน้อยไปหามาก จากซ้ายไปขวา สําหรับข้อมูลเพิ่มเติม ให้ดู เรียงลําดับข้อมูลในช่วงหรือตาราง Row_index_num จำเป็น หมายเลขแถวใน table_array ที่จะส่งกลับค่าที่ตรงกัน row_index_num ของ 1 จะส่งกลับค่าแถวแรกใน table_array row_index_num ของ 2 จะส่งกลับค่าแถวที่สองใน table_array และอื่นๆ ถ้า row_index_num น้อยกว่า 1 ฟังก์ชัน HLOOKUP จะส่งกลับ #VALUE! เป็นค่าความผิดพลาด; ถ้า row_index_num มากกว่าจํานวนแถวบน table_array ฟังก์ชัน HLOOKUP จะส่งกลับ #REF! เป็นค่าความผิดพลาด Range_lookup ไม่จำเป็น ค่าตรรกะที่ระบุว่าคุณต้องการให้ HLOOKUP ค้นหาค่าที่ตรงกันพอดีหรือค่าที่ตรงกันโดยประมาณ ถ้าเป็น TRUE หรือละไว้ จะส่งกลับค่าที่ตรงกันโดยประมาณ กล่าวคือ ถ้าไม่พบค่าที่ตรงกันพอดี ค่าที่มากที่สุดถัดไปที่น้อยกว่า lookup_value จะถูกส่งกลับ ถ้าเป็น FALSE ฟังก์ชัน HLOOKUP จะค้นหาค่าที่ตรงกันพอดี ถ้าไม่พบจะส่งกลับค่าความผิดพลาด #N/A ข้อสังเกต ถ้า HLOOKUP ไม่สามารถหา lookup_value และ range_lookup เป็น TRUE จะใช้ค่าที่มากที่สุดรองจาก lookup_value ถ้า lookup_value เป็นค่าที่น้อยกว่าค่าที่น้อยที่สุดในแถวแรกของ table_array ฟังก์ชัน HLOOKUP จะส่งกลับ #N/A เป็นค่าความผิดพลาด ถ้า range_lookup เป็น FALSE และ lookup_value เป็นข้อความ คุณสามารถใช้อักขระตัวแทน เครื่องหมายคําถาม (?) และเครื่องหมายดอกจัน (*) ใน lookup_value เครื่องหมายคําถามจะตรงกับอักขระตัวเดียว เครื่องหมายดอกจันใช้แทนอักขระหลายตัวตามลําดับ ถ้าคุณต้องการค้นหาเครื่องหมายคําถามหรือดอกจันจริงๆ ให้พิมพ์เครื่องหมายตัวหนอน (~) ไว้หน้าอักขระ ตัวอย่าง คัดลอกข้อมูลตัวอย่างในตารางต่อไปนี้ และวางในเซลล์ A1 ของเวิร์กชีต Excel ใหม่ สำหรับสูตรที่จะแสดงผลลัพธ์ ให้เลือกสูตร กด F2 แล้วกด Enter ถ้าคุณต้องการ คุณสามารถปรับความกว้างของคอลัมน์เพื่อดูข้อมูลทั้งหมดได้ เพลา ตลับลูกปืน สลักเกลียว 4 4 9 5 7 10 6 8 11 สูตร คำอธิบาย ผลลัพธ์ =HLOOKUP("เพลา", A1:C4, 2, TRUE) ค้นหา "เพลา" ในแถวที่ 1 และส่งกลับค่าจากแถวที่ 2 ซึ่งอยู่ในคอลัมน์เดียวกัน (คอลัมน์ A) 4 =HLOOKUP("ตลับลูกปืน", A1:C4, 3, FALSE) ค้นหา "ตลับลูกปืน" ในแถวที่ 1 และส่งกลับค่าจากแถวที่ 3 ซึ่งอยู่ในคอลัมน์เดียวกัน (คอลัมน์ B) 7 =HLOOKUP("B", A1:C4, 3, TRUE) ค้นหา "B" ในแถวที่ 1 และส่งกลับค่าจากแถวที่ 3 ที่อยู่ในคอลัมน์เดียวกัน เนื่องจากไม่พบค่าที่ตรงกันสําหรับ "B" ค่าที่มากที่สุดในแถว 1 ที่น้อยกว่า "B" จะถูกใช้: "เพลา" ในคอลัมน์ A 5 =HLOOKUP("สลักเกลียว", A1:C4, 4) ค้นหา "สลักเกลียว" ในแถวที่ 1 และส่งกลับค่าจากแถวที่ 4 ซึ่งอยู่ในคอลัมน์เดียวกัน (คอลัมน์ C) 11 =HLOOKUP(3, {1,2,3;"a","b","c";"d","e","f"}, 2, TRUE) ค้นหาตัวเลข 3 ในค่าคงที่อาร์เรย์ที่มีสามแถว และส่งกลับค่าจากแถวที่ 2 ในคอลัมน์เดียวกัน (ในกรณีนี้คือคอลัมน์ที่สาม) มีแถวของค่าสามแถวในค่าคงที่อาร์เรย์ แต่ละแถวคั่นด้วยเครื่องหมายอัฒภาค (;)) เนื่องจากพบ "c" ในแถวที่ 2 และในคอลัมน์เดียวกับ 3 จึงส่งกลับ "c" c ต้องการความช่วยเหลือเพิ่มเติมหรือไม่ ต้องการตัวเลือกเพิ่มเติมหรือไม่ สํารวจสิทธิประโยชน์ของการสมัครใช้งาน เรียกดูหลักสูตรการฝึกอบรม เรียนรู้วิธีการรักษาความปลอดภัยอุปกรณ์ของคุณ และอื่นๆ

Comments

User3663

The Consolidate dialog box, choose the function you want to use (Sum, Average, etc.). Click on the Reference box, then navigate to the first sheet you want to include. Select the data range and click Add. Repeat the previous step for each sheet you want to include in the consolidation. Check the boxes for Top row and Left column if your data has headers. Click OK to consolidate your data.And there you have it! Your data should now be combined into the sheet you selected. This tool is relatively straightforward, but keep in mind it doesn't automatically update if you change the source data.Using Formulas: The VLOOKUP and HLOOKUPFormulas like VLOOKUP and HLOOKUP can be your best friends when it comes to combining data. They allow you to search for a specific value in one table and return a related value from another table. Here's how you can use them:Using VLOOKUP: Identify the common key between the sheets (e.g., an ID number or name). Go to the sheet where you want the data to appear. Use the VLOOKUP formula in a cell like this: =VLOOKUP(lookup_value, table_array, col_index_num, [range_lookup])some text lookup_value: The value you want to search for. table_array: The range that contains the data. col_index_num: The column number from which to return the value. range_lookup: Use FALSE for an exact match. For example, if you're looking up a product name based on an ID, your formula might look like this: =VLOOKUP(A2, Sheet2!A:B, 2, FALSE)Using HLOOKUP:HLOOKUP works similarly to VLOOKUP, but it searches for values in a row rather than a column. This can be handy if your data is organized horizontally.While VLOOKUP and HLOOKUP are powerful, they can become cumbersome with large datasets. If your data is massive or you're dealing with multiple sheets, you might want to consider more

2025-04-08
User1879

HLOOKUP (ฟังก์ชัน HLOOKUP) Applies ToExcel for Microsoft 365 Excel for Microsoft 365 for Mac Excel สำหรับเว็บ Excel 2024 Excel 2024 for Mac Excel 2021 Excel 2021 for Mac Excel 2019 Excel 2016 Office for iPhone ของฉัน Office.com เคล็ดลับ: ลองใช้ฟังก์ชัน XLOOKUP ใหม่ ซึ่งเป็น HLOOKUP เวอร์ชันที่ได้รับการปรับปรุงที่ทํางานในทุกทิศทางและส่งกลับรายการที่ตรงกันตามค่าเริ่มต้น ทําให้ใช้งานง่ายและสะดวกกว่ารุ่นก่อน บทความนี้จะอธิบายเกี่ยวกับไวยากรณ์ของสูตรและการใช้ฟังก์ชัน HLOOKUP ใน Microsoft Excel คำอธิบาย ค้นหาค่าในแถวบนสุดของตารางหรือ อาร์เรย์ ค่า แล้วส่งกลับค่าในคอลัมน์เดียวกันจากแถวที่คุณระบุในตารางหรืออาร์เรย์ ใช้ HLOOKUP เมื่อค่าการเปรียบเทียบของคุณอยู่ในแถวทางด้านบนของตารางข้อมูล และคุณต้องการหาจํานวนแถวที่ระบุ ใช้ VLOOKUP เมื่อค่าการเปรียบเทียบของคุณอยู่ในคอลัมน์ทางด้านซ้ายของข้อมูลที่คุณต้องการค้นหา อักษร H ในฟังก์ชัน HLOOKUP ย่อมาจาก "Horizontal" ไวยากรณ์ HLOOKUP(lookup_value, table_array, row_index_num, [range_lookup]) ไวยากรณ์ของฟังก์ชัน HLOOKUP มีอาร์กิวเมนต์ดังนี้ Lookup_value จำเป็น ค่าที่จะพบในแถวแรกของตาราง Lookup_value อาจเป็นค่า การอ้างอิง หรือสตริงข้อความก็ได้ Table_array จำเป็น ตารางข้อมูลที่ข้อมูลถูกค้นหา ใช้การอ้างอิงไปยังช่วงหรือชื่อช่วง ค่าในแถวแรกของ table_array สามารถเป็นข้อความ ตัวเลข หรือค่าตรรกะ ถ้า range_lookup เป็น TRUE ค่าในแถวแรกของ table_array จะต้องเรียงลําดับจากน้อยไปหามาก: ...-2, -1, 0, 1, 2,... , A-Z, FALSE, TRUE; มิฉะนั้น HLOOKUP อาจให้ค่าที่ไม่ถูกต้อง ถ้า range_lookup เป็น FALSE table_array ไม่จําเป็นต้องเรียงลําดับ ข้อความแบบตัวพิมพ์ใหญ่และตัวพิมพ์เล็กจะมีค่าเท่ากัน เรียงลําดับค่าจากน้อยไปหามาก จากซ้ายไปขวา สําหรับข้อมูลเพิ่มเติม ให้ดู เรียงลําดับข้อมูลในช่วงหรือตาราง Row_index_num จำเป็น หมายเลขแถวใน table_array ที่จะส่งกลับค่าที่ตรงกัน row_index_num ของ 1 จะส่งกลับค่าแถวแรกใน table_array row_index_num ของ 2 จะส่งกลับค่าแถวที่สองใน table_array และอื่นๆ ถ้า row_index_num น้อยกว่า 1 ฟังก์ชัน HLOOKUP จะส่งกลับ #VALUE! เป็นค่าความผิดพลาด; ถ้า row_index_num มากกว่าจํานวนแถวบน table_array ฟังก์ชัน HLOOKUP จะส่งกลับ #REF! เป็นค่าความผิดพลาด Range_lookup ไม่จำเป็น ค่าตรรกะที่ระบุว่าคุณต้องการให้ HLOOKUP ค้นหาค่าที่ตรงกันพอดีหรือค่าที่ตรงกันโดยประมาณ ถ้าเป็น TRUE หรือละไว้ จะส่งกลับค่าที่ตรงกันโดยประมาณ กล่าวคือ ถ้าไม่พบค่าที่ตรงกันพอดี ค่าที่มากที่สุดถัดไปที่น้อยกว่า lookup_value จะถูกส่งกลับ ถ้าเป็น FALSE ฟังก์ชัน HLOOKUP จะค้นหาค่าที่ตรงกันพอดี ถ้าไม่พบจะส่งกลับค่าความผิดพลาด #N/A ข้อสังเกต ถ้า HLOOKUP ไม่สามารถหา lookup_value และ range_lookup เป็น TRUE จะใช้ค่าที่มากที่สุดรองจาก lookup_value ถ้า lookup_value เป็นค่าที่น้อยกว่าค่าที่น้อยที่สุดในแถวแรกของ table_array ฟังก์ชัน HLOOKUP จะส่งกลับ #N/A เป็นค่าความผิดพลาด ถ้า range_lookup เป็น FALSE และ lookup_value เป็นข้อความ คุณสามารถใช้อักขระตัวแทน เครื่องหมายคําถาม (?) และเครื่องหมายดอกจัน (*) ใน lookup_value เครื่องหมายคําถามจะตรงกับอักขระตัวเดียว เครื่องหมายดอกจันใช้แทนอักขระหลายตัวตามลําดับ ถ้าคุณต้องการค้นหาเครื่องหมายคําถามหรือดอกจันจริงๆ ให้พิมพ์เครื่องหมายตัวหนอน (~) ไว้หน้าอักขระ ตัวอย่าง คัดลอกข้อมูลตัวอย่างในตารางต่อไปนี้ และวางในเซลล์ A1 ของเวิร์กชีต Excel ใหม่ สำหรับสูตรที่จะแสดงผลลัพธ์ ให้เลือกสูตร กด F2 แล้วกด Enter ถ้าคุณต้องการ คุณสามารถปรับความกว้างของคอลัมน์เพื่อดูข้อมูลทั้งหมดได้ เพลา ตลับลูกปืน สลักเกลียว 4 4 9 5 7 10 6 8 11 สูตร คำอธิบาย ผลลัพธ์ =HLOOKUP("เพลา", A1:C4, 2, TRUE) ค้นหา "เพลา" ในแถวที่ 1 และส่งกลับค่าจากแถวที่ 2 ซึ่งอยู่ในคอลัมน์เดียวกัน (คอลัมน์ A) 4 =HLOOKUP("ตลับลูกปืน", A1:C4, 3, FALSE) ค้นหา "ตลับลูกปืน" ในแถวที่ 1 และส่งกลับค่าจากแถวที่ 3 ซึ่งอยู่ในคอลัมน์เดียวกัน (คอลัมน์ B) 7 =HLOOKUP("B", A1:C4, 3, TRUE) ค้นหา "B" ในแถวที่ 1 และส่งกลับค่าจากแถวที่ 3 ที่อยู่ในคอลัมน์เดียวกัน เนื่องจากไม่พบค่าที่ตรงกันสําหรับ "B" ค่าที่มากที่สุดในแถว 1 ที่น้อยกว่า "B" จะถูกใช้: "เพลา" ในคอลัมน์ A 5 =HLOOKUP("สลักเกลียว", A1:C4, 4) ค้นหา "สลักเกลียว" ในแถวที่ 1 และส่งกลับค่าจากแถวที่ 4 ซึ่งอยู่ในคอลัมน์เดียวกัน (คอลัมน์ C) 11 =HLOOKUP(3, {1,2,3;"a","b","c";"d","e","f"}, 2, TRUE) ค้นหาตัวเลข 3 ในค่าคงที่อาร์เรย์ที่มีสามแถว และส่งกลับค่าจากแถวที่ 2 ในคอลัมน์เดียวกัน (ในกรณีนี้คือคอลัมน์ที่สาม) มีแถวของค่าสามแถวในค่าคงที่อาร์เรย์ แต่ละแถวคั่นด้วยเครื่องหมายอัฒภาค (;)) เนื่องจากพบ "c" ในแถวที่ 2 และในคอลัมน์เดียวกับ 3 จึงส่งกลับ "c" c ต้องการความช่วยเหลือเพิ่มเติมหรือไม่ ต้องการตัวเลือกเพิ่มเติมหรือไม่ สํารวจสิทธิประโยชน์ของการสมัครใช้งาน เรียกดูหลักสูตรการฝึกอบรม เรียนรู้วิธีการรักษาความปลอดภัยอุปกรณ์ของคุณ และอื่นๆ

2025-04-07
User1880

Click the column header or select a cell in the column and press Ctrl + Spacebar.To freeze a row, select a cell below the row and press Alt + W + F + R (Press and release each key in turn).To freeze a column, select any cell to the right of the column and press Alt + W + F + R (Press and release each key in turn).To autofit content, double-click the bottom border of the row header. To autofit content, double-click the right border of the column header.To increase the row height, drag down the bottom border of the row header.To increase the column width, drag the right border of the column header to the right.Filters cannot be applied to rows.Filters can only be applied to columns.Use the HLOOKUP function to look up data in rows.Use the VLOOKUP function to look up data in columns.The Flash Fill feature cannot work on data in rows.The Flash Fill feature only works on data in columns.Sorting by rows can be done but is rare.Sorting by columns is the default option. This tutorial presented the differences between Excel rows and columns. We hope you found the presentation helpful.Other Excel articles you may also like:Microsoft Excel vs Google Sheets – Which One Is Better for You?Excel Table vs. Excel Range – What’s the Difference?SUMPRODUCT vs SUMIFS Function in ExcelHow to Convert Columns to Rows in Excel?How to Filter Multiple Columns in Excel? 3 Easy Ways!Group Rows or Columns (Shortcut)Count Columns Using VBA in ExcelHow to Delete Hidden Rows or Columns in Excel?

2025-04-02

Add Comment