Placeholder Image

字幕列表 影片播放

由 AI 自動生成
  • (upbeat music)

    (歡快的音樂)

  • - [Dennis] We're looking at a worksheet called XLOOKUP.

    - [Dennis]我們正在看一個叫做XLOOKUP的工作表。

  • That's the name of a new function

    這就是一個新函數的名稱

  • introduced in late August of 2019

    於2019年8月底推出

  • and available to Office 365 subscribers

    並提供給Office 365的訂戶

  • with the latest updates.

    有最新的更新。

  • This function is important,

    這個功能很重要。

  • it will replace both VLOOKUP and HLOOKUP

    它將同時取代VLOOKUP和HLOOKUP

  • although those functions are destined

    雖然這些功能註定了

  • to be around for quite a while.

    將會存在相當長的一段時間。

  • XLOOKUP is easier to work with,

    XLOOKUP更容易操作。

  • it changes the default setting to match up

    它改變了默認設置以匹配

  • with the most common use of VLOOKUP

    與最常用的VLOOKUP的使用

  • that's for an exact match.

    那是為了完全匹配。

  • And it eliminates some of the problems associated

    而且它消除了與之相關的一些問題

  • with redesigning the layout of tables as you work

    在工作中重新設計表格的佈局。

  • with Lookup functions.

    有查詢功能。

  • Let's first talk about how we will use this function

    讓我們首先談談我們將如何使用這個函數

  • for an exact match scenario.

    為完全匹配的情況。

  • In column A we've got ratings

    在A欄,我們得到了評級

  • for various people's names in column D

    為D列中不同人的名字

  • and we want to convert those ratings into a numerical score.

    而我們想把這些評分轉換為一個數字分數。

  • If we were using VLOOKUP

    如果我們使用的是VLOOKUP

  • and referring to the table over in columns A and B,

    並參照表格中的A和B列。

  • we would first have to redesign the layout of that table.

    我們首先必須重新設計該表的佈局。

  • VLOOKUP depends upon the idea of comparing a value,

    VLOOKUP依賴於比較一個值的想法。

  • let's say the word "fair"

    讓我們說說 "公平 "這個詞

  • with the leftmost column of a table somewhere.

    與某一表格的最左列。

  • And off to the left,

    而在左邊的地方。

  • column B that's where we find the word fair

    B欄是我們找到公平這個詞的地方

  • and other similar entries,

    和其他類似條目。

  • that's not the leftmost column

    這不是最左邊的那一欄

  • if we're trying to get answers out of column A.

    如果我們試圖從A欄中得到答案。

  • But with the new function XLOOKUP,

    但有了新的函數XLOOKUP。

  • we don't worry about that.

    我們不擔心這個問題。

  • In fact, the term table array

    事實上,表陣列這個詞

  • that we would see if you're using VLOOKUP,

    如果你使用VLOOKUP,我們會看到。

  • it doesn't even appear as we use this function.

    在我們使用這個函數時,它甚至沒有出現。

  • Equal XLOOKUP, and by the way, as you type XL,

    等於XLOOKUP,順便說一下,當你輸入XL。

  • it's the only function there

    它是那裡唯一的功能

  • so, you can simply type equal XL Tab.

    所以,你可以簡單地輸入等號XL Tab。

  • The Lookup value is in cell E2, comma.

    查詢值在單元格E2,逗號。

  • Notice we don't see table array

    注意,我們沒有看到表陣列

  • we see the term lookup array,

    我們看到了查找數組這個術語。

  • and then later return array.

    然後再返回數組。

  • Where are we looking up data here?

    我們在哪裡查詢數據呢?

  • In this case it's in column B, comma.

    在這種情況下,它是在B列,逗號。

  • And when we find a match,

    而當我們找到一個匹配的。

  • we'll pull up data from column A

    我們將從A列調出數據

  • that's the return array, comma.

    那是返回數組,逗號。

  • This is an exact match

    這是一個完全匹配

  • and we can put in zero if we wish,

    如果我們願意的話,我們可以填上零。

  • but that is the default.

    但這是默認的。

  • So we don't have to put in anything else at all.

    所以我們根本不需要放其他東西。

  • If it were an approximate match,

    如果是近似的匹配。

  • we'd probably be using minus one and some cases, one,

    我們可能會使用減一,有些情況下是一。

  • and there's an additional argument

    而且還有一個額外的說法

  • for more obscure uses of it.

    以瞭解它的更多晦澀的用途。

  • But for an exact match,

    但對於一個完全匹配的。

  • and that's the most common use for most Excel users,

    而這是大多數Excel用戶最常見的用途。

  • when they're using VLOOKUP,

    當他們使用VLOOKUP時。

  • we don't need to do anything else here.

    我們不需要在這裡做任何其他事情。

  • That's it, enter, there's our answer of 71.

    就這樣,進入,這就是我們的答案71。

  • We'll double click the lower right-hand corner,

    我們將雙擊右下角。

  • copy this down the column.

    把這一欄複製下來。

  • And we see the other answers.

    而我們看到的是其他的答案。

  • I'll simply press the function Key F2

    我將簡單地按下功能鍵 F2

  • we can see that a little bit more clearly.

    我們可以更清楚地看到這一點。

  • If we were using a horizontal table,

    如果我們使用的是一個水準表。

  • things would be pretty much the same,

    事情會基本相同。

  • obviously these would be in different locations,

    顯然,這些將是在不同的地點。

  • but just as with a VLOOKUP comparison,

    但就像VLOOKUP的比較一樣。

  • where we needed to get information

    我們需要在哪裡獲得資訊

  • out of the leftmost column,

    出最左邊的一欄。

  • if this were information in rows,

    如果這是在行的資訊。

  • we wouldn't necessarily have to be getting data

    我們不一定非要獲得數據

  • out of the top row of a table somewhere.

    從某個桌子的最上面一排出來。

  • So, when XLOOKUP is being for an exact match,

    是以,當XLOOKUP被用於精確匹配時。

  • whether it's corresponding

    是否對應

  • with your potential use of VLOOKUP or HLOOKUP,

    與你可能使用的VLOOKUP或HLOOKUP。

  • it just works more smoothly and easily.

    它只是工作得更順利、更容易。

  • And it is the default setting.

    而且是默認設置。

  • And that's it, that's all we need to do.

    就這樣,這就是我們需要做的一切。

  • Now off to the right in this same worksheet,

    現在,在這個相同的工作表的右邊。

  • we've got a scenario for an approximate match.

    我們已經有了一個近似比賽的場景。

  • We're trying to look up tax rates based on these salaries.

    我們正試圖根據這些工資來查詢稅率。

  • And if we're using VLOOKUP here,

    而如果我們在這裡使用VLOOKUP。

  • we would be laying out the data,

    我們將鋪設數據。

  • in the way that we see it here.

    以我們在這裡看到的方式。

  • But now the difference will be,

    但現在的區別將是。

  • is unlike VLOOKUP where approximate match

    與VLOOKUP不同,在VLOOKUP中,近似匹配的

  • is the default setting, here it isn't.

    是默認設置,這裡不是。

  • So how do we approach an approximate match,

    那麼,我們如何接近一個近似的匹配。

  • equal EXL Tab.

    等於EXL標籤。

  • We're looking up data in cell J2, comma.

    我們正在查找J2單元格中的數據,逗號。

  • We're trying to match it up

    我們正試圖將其匹配起來

  • with the data in column P, comma.

    與P列的數據,逗號。

  • And we find the match, we'll go into column Q.

    我們找到匹配的,我們就進入Q欄。

  • And if we want to make this function work

    而如果我們想讓這個函數發揮作用

  • the way it works in VLOOKUP, we'll use minus one here.

    按照VLOOKUP的工作方式,我們在這裡使用減一。

  • If we do nothing else and press Enter,

    如果我們不做其他事情,按回車鍵。

  • we're choosing exact match

    我們選擇精確匹配

  • and we won't get an answer here.

    而我們在這裡不會得到一個答案。

  • But we want an approximate match.

    但我們希望有一個近似的匹配。

  • And the way approximate match works with VLOOKUP,

    以及近似匹配與VLOOKUP的工作方式。

  • we want to find either an exact match

    我們希望找到一個完全匹配的

  • or the next smaller item.

    或下一個更小的項目。

  • So 64,387 isn't found in column Q.

    所以64,387在Q列中沒有找到。

  • The next lower value would be the 55000.

    下一個較低的值將是55000。

  • We'll get our answers out of column Q

    我們將從Q欄中得到答案

  • that's going to be 3%.

    這將是3%。

  • If somehow or other,

    如果以某種方式或其他方式。

  • we wanted our answers to be the next highest value,

    我們希望我們的答案是次高值。

  • we'd use one.

    我們會使用一個。

  • We're going to use minus one, type it or double-click,

    我們將使用減一,輸入或雙擊。

  • tab it into place.

    將其卡在適當位置。

  • Now in rare situations, but not here,

    現在在罕見的情況下,但不是在這裡。

  • we can put in comma and consider possibly searching

    我們可以加入逗號,並考慮可能的搜索

  • from the bottom up last to first.

    從下往上最後到第一。

  • The default is first to last,

    缺省是從頭到尾。

  • that's what we're using here,

    這就是我們在這裡使用的東西。

  • we don't have to put that in.

    我們沒有必要把這個放進去。

  • In more rare circumstances,

    在更罕見的情況下。

  • possibly we'll use a binary search

    可能我們將使用二進制搜索

  • to work with unsorted data.

    來處理未經分類的數據。

  • So that's all we need to put in here.

    所以這就是我們需要放在這裡的全部內容。

  • We can press Enter

    我們可以按回車鍵

  • or possibly get rid of the comma first either way.

    或者可能先把逗號去掉,無論如何。

  • Enter, we have the correct answer.

    進入,我們有正確的答案。

  • Double click to copy this down the column.

    雙擊將其複製到下一列。

  • And once again, I'll press the function key F2,

    再一次,我將按下功能鍵F2。

  • just to remind us how XLOOKUP is working.

    只是為了提醒我們XLOOKUP是如何工作的。

  • So this is a valuable function.

    是以,這是一個有價值的功能。

  • Is going to replace ultimately VLOOKUP and HLOOKUP,

    將最終取代VLOOKUP和HLOOKUP。

  • it's easier to work with.

    它更容易工作。

  • And it's made that big change,

    而且它已經做出了這一重大改變。

  • the exact search is now the default

    精確搜索現在是默認的

  • makes it easier to use the function.

    使得使用該函數更加容易。

  • So this is a valuable addition to Excel's Lookup functions.

    是以,這是對Excel的查找功能的一個寶貴補充。

  • XLOOKUP.

    XLOOKUP。

  • (upbeat music)

    (歡快的音樂)

(upbeat music)

(歡快的音樂)

字幕與單字
由 AI 自動生成

單字即點即查 點擊單字可以查詢單字解釋