字幕列表 影片播放
(upbeat music)
(歡快的音樂)
- This is serious.
- 這很嚴重。
We have to learn how to control inputs in our spreadsheets.
我們必須學會如何控制電子表格中的輸入。
Mistakes cause problems.
錯誤導致問題。
They invite a lot of questions.
他們邀請了很多問題。
And when we can control the inputs,
而當我們可以控制輸入的時候。
we keep crazy stuff out
我們將瘋狂的東西排除在外
and we maintain the integrity of the data that we allow in.
並保持我們允許進入的數據的完整性。
Let's check this out.
讓我們來看看這個。
Now here, we've got some data about programs
現在在這裡,我們已經有了一些關於程序的數據
and our funding is tied to this data.
而我們的資金是與這些數據聯繫在一起的。
We've got
我們已經有了
kids names,
孩子們的名字。
ages,
年齡。
and the number of days they were absent.
以及他們缺席的天數。
We know we only deal with kids from eight to 12,
我們知道我們只和8到12歲的孩子打交道。
so we should not have a five or a 19 or a J
所以我們不應該有一個5或一個19或一個J
in this sale.
在這次銷售中。
So let's look at this
所以我們來看看這個
Andrea age.
安德烈的年齡。
So I go to type of nine for Andrea,
所以我為安德里亞去了九型。
but I accidentally hit I
但我不小心按了I
Excel should not take that.
Excel不應該採取這種做法。
So let's delete that.
所以讓我們刪除這個。
Now, I'm going to highlight the entire column
現在,我將高亮顯示整列的內容
in the Data tab in the ribbon
在功能區的數據標籤中
Data tools,
數據工具。
Data Validation
數據驗證
allow any value,
允許任何值。
No,
沒有。
that gives the forensic accounts to show up,
這給了法醫賬戶以顯示。
hit the drop down list,
點擊下拉列表。
whole number
整數
between minimum eight,
至少八人之間。
maximum 12.
最多12個。
We can put an Error Alert.
我們可以放一個錯誤警報。
If somebody puts in something crazy,
如果有人放入一些瘋狂的東西。
we're going to have the message,
我們要有這個消息。
you know better than that exclamation point.
你知道比那個感嘆號更好。
OK.
好的。
Now, Andrea,
現在,安德里亞。
I accidentally type, I Enter,
我不小心打字,我回車。
"You know, better than that!"
"你知道,比這更好!"
Cancel.
取消。
So now Andrea is 10 years old.
所以現在安德里亞已經10歲了。
Great. It took the 10.
很好。它花了10。
With data validation.
隨著數據的驗證。
You can control a lot.
你可以控制很多東西。
So go in there and check it out.
是以,去那裡看看吧。
You can control dates.
你可以控制日期。
You can control certain texts.
你可以控制某些文本。
You can control whether something is an integer
你可以控制某物是否為整數
or a decimal.
或一個小數。
The bottom line though,
但底線是。
is you need to get to know data validation
是你需要了解數據驗證的問題
so that you can keep the crazy stuff out of your data.
這樣,你就可以把那些瘋狂的東西從你的數據中剔除。
(upbeat music)
(歡快的音樂)