How to Use the Google Sheets API to Automate Processes with Python

In this video, we learn how to use the Google Sheets API to automate processes with Python.

Google Sheets is a free, web-based spreadsheet application that is provided by Google within the Google Drive service. The application is also available as a desktop application on ChromeOS, and as a mobile app on Android, Windows, iOS, and BlackBerry. The Google Drive service also hosts other Google products such as Google Docs, Slides, and Forms.

Documentation: https://developers.google.com/sheets/api/quickstart/python 

📁 GitHub: https://github.com/NeuralNine

🎵 Outro Music From: https://www.bensound.com/

Subscribe : https://www.youtube.com/c/NeuralNine/featured

#python #googlesheets 

How to Use the Google Sheets API to Automate Processes with Python
Romolo  Morelli

Romolo Morelli

1679168580

3 modi per compilare automaticamente le date su Fogli Google (Google S

3 modi per compilare automaticamente le date su Fogli Google (Google Sheets)

Tutto ciò che devi sapere su come compilare automaticamente le date su Fogli Google (Google Sheets). 3 modi per aggiungere date su Fogli Google, tra cui il riempimento automatico delle celle, l'utilizzo della funzione data, la formattazione delle celle o l'inserimento del collegamento alla data. Abbiamo illustrato questi metodi utilizzando un browser Web su un PC Windows, ma funzionano anche su Mac, iPhone e Android.

Come aggiungere date automaticamente in Fogli Google (Google Sheets)

Non è necessario preoccuparsi dei costosi costi di abbonamento di Microsoft per Office 365, poiché Google offre un'alternativa gratuita, Fogli Google. Proprio come Excel, ci sono tantissime funzionalità che aspettano di essere scoperte. Quando stavamo compilando un rapporto giornaliero, abbiamo trovato numerosi modi per aggiungere automaticamente le date su un documento di Fogli Google.

Esistono tre modi per aggiungere date a Fogli Google, tra cui il riempimento automatico delle celle, l'utilizzo della funzione data, la formattazione delle celle o l'inserimento del collegamento alla data. Abbiamo illustrato questi metodi utilizzando un browser Web su un PC Windows, ma funzionano anche su Mac, iPhone e Android.

Utilizzando questi metodi, puoi automatizzare alcune attività ripetitive che comportano l'aggiunta di date alle celle e migliorare la tua efficienza. Scopriamoli tutti.

Suggerimento : i formati di data e ora dipendono dalle impostazioni locali predefinite dei tuoi fogli Google. Ecco come cambiarlo: apri Fogli Google > vai su File > impostazioni. Nella finestra pop-up, vai alla scheda Generale > seleziona la tua regione nel menu a discesa Locale.

Sommario:

  • Inserisci automaticamente la data corrente su Fogli Google
  • Come compilare automaticamente le date in Fogli Google
    • Compila automaticamente i giorni in una colonna in Fogli Google
    • Compila automaticamente le settimane in una colonna su Fogli Google
    • Compila automaticamente i mesi in una colonna su Fogli Google
  • Compila automaticamente i giorni feriali solo su Fogli Google
  • Bonus: unisci data e timestamp su Fogli Google

1. Inserisci automaticamente la data corrente su Fogli Google

Iniziamo inserendo automaticamente la data odierna utilizzando la funzione data di Fogli Google chiamata TODAY(). Questo restituisce la data odierna in una cella. Ecco come usarlo.

Passaggio 1: apri Fogli Google, posiziona il cursore in una cella e digita la funzione seguente.

=TODAY()

Passaggio 2: ora premi il tasto Invio.

Ecco qua. Ora puoi vedere la data odierna in una cella su Fogli Google.

In alternativa, puoi anche utilizzare la combinazione di tasti ' Ctrl +; ' su una cella in Fogli Google e restituirà la data corrente.

Successivamente, diamo un'occhiata a come possiamo inserire automaticamente le date in ordine cronologico in Fogli Google.

2. Come compilare automaticamente le date in Fogli Google

Il riempimento automatico è una funzione di Fogli Google che ti aiuta a riempire le celle in serie con dati basati sui valori presenti in poche celle. Ad esempio, se inserisco una data nella cella A1, posso riempire l'intera colonna A con le date, poiché Google Sheets riconosce che c'è una data in A1 e quando viene richiesto di riempire automaticamente il resto della colonna, la riempie con un ordine crescente di date.

Tuttavia, nel caso in cui desideri controllare il formato della data e dell'ora prima di inserire una data, ecco come farlo.

Possiamo compilare automaticamente giorni, settimane e mesi in Fogli Google. Vediamo come possiamo farlo.

1. Riempi automaticamente i giorni in una colonna in Fogli Google

Passaggio 1: apri Fogli Google e inserisci una data in una cella.

Passaggio 2: fai clic e tieni premuto nell'angolo in basso a destra della cella e trascinalo verso il basso nella cella per la quale desideri compilare automaticamente le date.

Come puoi vedere, le date vengono riempite automaticamente per tutte le celle selezionate in una colonna nello stesso formato.

 

È così che puoi compilare automaticamente giorni consecutivi in ​​​​Fogli Google. Successivamente, vediamo come compilare automaticamente le date a distanza di una settimana.

2. Compila automaticamente le settimane in una colonna su Fogli Google

Ecco come puoi compilare automaticamente le date in una colonna in Fogli Google a distanza di una settimana.

Passaggio 1: apri un foglio Google e inserisci due date a distanza di una settimana nelle celle consecutive.

Passaggio 2: selezionare ed evidenziare le celle.

Passaggio 3: fare clic sull'angolo in basso a destra delle celle evidenziate e trascinarlo fino alla cella che si desidera riempire automaticamente.

 

Come puoi vedere, la colonna è piena di date a distanza di una settimana.

Allo stesso modo, possiamo compilare automaticamente le date in una colonna a distanza di un mese. Ecco come.

3. Compila automaticamente i mesi in una colonna su Fogli Google

Passaggio 1: apri Fogli Google e inserisci due date a distanza di un mese in celle consecutive nella colonna.

Passaggio 2: selezionare ed evidenziare le celle.

 

Passaggio 3: fare clic sull'angolo in basso a destra delle celle evidenziate e trascinarlo fino alla cella che si desidera riempire automaticamente.

La colonna viene compilata automaticamente con date che distano alcuni mesi.

Successivamente, diamo un'occhiata a come possiamo inserire i giorni della settimana solo su Fogli Google.

3. Compila automaticamente i giorni feriali solo su Fogli Google

Se utilizzi Fogli Google al lavoro , raramente devi inserire i dati per un giorno non lavorativo o un fine settimana. Ma nel metodo precedente per compilare automaticamente le date, anche i fine settimana venivano compilati automaticamente. Se stai lavorando su un foglio di calcolo ad alto contenuto di dati, è necessario molto tempo per eliminare manualmente i fine settimana.

Pertanto, puoi compilare automaticamente le date escludendo i fine settimana: sabato e domenica. Ecco come.

Passaggio 1: apri Fogli Google e inserisci una data in una cella con cui desideri iniziare.

Passaggio 2: inserisci la formula nella cella sottostante. Assicurati di inserire la colonna corretta nella formula. (colonna A nel nostro caso)

=WORKDAY.INTL($A$2, row(A1),1)

Passaggio 3: la cella successiva viene riempita automaticamente con il giorno lavorativo successivo.

Passaggio 4: fare clic sull'angolo in basso a destra della cella e trascinarlo verso il basso nella cella che si desidera riempire. La formula regola il modello e inserirà solo i giorni lavorativi escludendo il sabato e la domenica.

Come puoi vedere nell'immagine qui sotto, le celle contengono solo i giorni lavorativi, e sono esclusi il sabato e la domenica.

Questo è tutto ciò che devi sapere su come compilare automaticamente le date in Fogli Google. Se stai cercando un modo per modificare e cambiare il formato delle date su Fogli Google, puoi dare un'occhiata all'articolo che abbiamo recentemente pubblicato.

Successivamente, vediamo come possiamo unire data e ora su Fogli Google. Questo sarà utile se hai due colonne: una per la data e un'altra per l'ora.

Bonus: unisci data e timestamp su Fogli Google

Quando hai una colonna con una data e un'ora che le corrispondono in una colonna, ha senso unirle in un'unica colonna e ridurre al minimo la ridondanza. Ecco come farlo.

Passaggio 1: apri Fogli Google e inserisci la formula seguente che ti aiuta a unire le funzioni di data e ora su Fogli Google in un testo.

Assicurati di inserire le posizioni delle celle corrette rispettivamente per la data e l'ora. Nel nostro caso, è A2 e B2.

=TEXT(A2,"m/dd/yy")&TEXT(B2,"hh:mm:ss")

Passaggio 2: come puoi vedere, la data e l'ora vengono unite in un'unica cella come testo normale. Puoi selezionare e trascinare le celle unite per riempire automaticamente l'intera colonna se hai più celle di data e ora separate.

Ecco fatto, questo è tutto ciò che devi sapere su come compilare automaticamente le date su Fogli Google.

Fonte: https://www.guidingtech.com

#googlesheets

3 modi per compilare automaticamente le date su Fogli Google (Google S
许 志强

许 志强

1679157720

(Google Sheets) 在 Google 表格上自動填充日期的 3 種方法

您需要了解的有關如何在 Google 表格中自動填充日期的所有信息。在 Google 表格上添加日期的 3 種方法,包括自動填充單元格、使用日期函數、格式化單元格或插入日期快捷方式。我們已經在 Windows PC 上使用 Web 瀏覽器演示了這些方法,但它們也適用於 Mac、iPhone 和 Android。

(Google Sheets) 如何在 Google 表格中自動添加日期

人們不必擔心微軟對 Office 365 的昂貴訂閱費,因為谷歌提供了一種免費的替代品,即谷歌表格。就像 Excel 一樣,有大量的功能等待被發現。在編寫每日報告時,我們發現了多種在 Google 表格文檔中自動添加日期的方法。

可以通過三種方式將日期添加到 Google 表格,包括自動填充單元格、使用日期函數、格式化單元格或插入日期快捷方式。我們已經在 Windows PC 上使用 Web 瀏覽器演示了這些方法,但它們也適用於 Mac、iPhone 和 Android。

使用這些方法,您可以自動執行一些涉及向單元格添加日期的重複性任務並提高效率。讓我們發現它們。

提示:日期和時間格式取決於您的 Google 表格的默認區域設置。更改方法如下:打開 Google 表格 > 轉到文件 > 設置。在彈出窗口中,轉到“常規”選項卡 > 在“區域設置”下拉菜單下選擇您所在的地區。

目錄:

  • 在 Google 表格上自動輸入當前日期
  • 如何在 Google 表格中自動填充日期
    • 在 Google 表格的列中自動填充天數
    • 在 Google 表格的列中自動填充週數
    • 在 Google 表格的列中自動填充月份
  • 僅在 Google 表格上自動填充工作日
  • 獎勵:在 Google 表格上合併日期和時間戳

1. 在 Google 表格上自動輸入當前日期

讓我們首先使用名為 TODAY() 的 Google 表格日期函數自動輸入今天的日期。這將在單元格中返回今天的日期。下面是如何使用它。

第 1 步:打開 Google 表格,將光標放在一個單元格中,然後鍵入以下函數。

=TODAY()

第 2 步:現在,按回車鍵。

給你。您現在可以在 Google 表格的單元格中查看今天的日期。

或者,您也可以使用組合鍵 ' Ctrl +; ' 在 Google 表格中的單元格上,它將返回當前日期。

接下來,讓我們看看如何在 Google 表格中自動按時間順序輸入日期。

2. 如何在 Google 表格中自動填寫日期

自動填充是 Google 表格上的一項功能,可幫助您根據幾個單元格中存在的值用數據連續填充單元格。例如,如果我在單元格 A1 中輸入一個日期,我可以用日期填充整個 A 列,因為 Google 表格識別出 A1 中有一個日期,並且當系統提示自動填充該列的其餘部分時,它會以遞增的順序填充它日期。

但是,如果您想在輸入日期之前檢查日期和時間格式,請按以下步驟操作。

我們可以在 Google 表格中自動填充日、周和月。讓我們看看我們如何做到這一點。

1. 在 Google 表格的列中自動填充天數

第 1 步:打開 Google 表格並在單元格中輸入日期。

第 2 步:單擊並按住單元格的右下角並將其向下拖動到要為其自動填充日期的單元格。

如您所見,系統會以相同的格式為列中所有選定的單元格自動填充日期。

 

這就是您可以在 Google 表格中自動填充連續幾天的方法。接下來,讓我們看看如何自動填充相隔一周的日期。

2. 在 Google 表格的列中自動填充週數

以下是如何在 Google 表格中的一列中自動填充相隔一周的日期。

第 1 步:打開 Google 表格並在連續的單元格中輸入相隔一周的兩個日期。

第 2 步:選擇並突出顯示單元格。

第三步:點擊高亮單元格右下角,拖拽至要自動填充的單元格。

 

As you can see, the column is filled with dates that are a week apart.

Similarly, we can autofill dates in a column that are a month apart. Here’s how.

3. Autofill Months in a Column on Google Sheets

Step 1: Open Google Sheets and enter two dates that are a month apart in consecutive cells in the column.

Step 2: Select and highlight the cells.

 

Step 3: Click on the bottom right corner of the highlighted cells, and drag it until the cell you want to autofill.

The column is auto-filled with dates that are a few months apart.

Next, let us take a look at how we can enter weekdays only on Google Sheets.

3. Autofill Weekdays Only on Google Sheets

If you are using Google Sheets at work, you seldom need to enter data for a non-working day or a weekend. But in the previous method to autofill dates, weekends were also auto-filled. If you are working on a data-heavy spreadsheet, it is time-consuming to manually delete weekends.

Therefore, you can autofill dates excluding the weekends – Saturdays and Sundays. Here’s how.

Step 1: Open Google Sheets and enter a date in a cell that you want to start with.

Step 2: Enter the formula in the cell below. Make sure you enter the correct column in the formula. (column A in our case)

=WORKDAY.INTL($A$2, row(A1),1)

Step 3: The next cell is automatically filled with the next working day.

第四步:點擊單元格右下角,向下拖動到要填充的單元格處。公式支配模式,只會輸入工作日,不包括週六和周日。

如下圖所示,單元格僅包含工作日,不包括週六和周日。

這就是您需要了解的有關如何在 Google 表格中自動填充日期的所有信息。如果您正在尋找修改和更改 Google 表格中日期格式的方法,可以查看我們最近發布的文章。

接下來,讓我們看看如何在 Google 表格上合併日期和時間。如果您有兩列,這將很有幫助:一列用於日期,另一列用於時間。

獎勵:在 Google 表格上合併日期和時間戳

當您有一列的日期和時間與其在一列中對應時,將它們合併到一個列中並最大限度地減少冗餘是有意義的。這是如何做的。

第 1 步:打開 Google 表格並輸入以下公式,幫助您將 Google 表格上的日期和時間函數合併到文本中。

確保分別為日期和時間輸入正確的單元格位置。在我們的例子中,它是 A2 和 B2。

=TEXT(A2,"m/dd/yy")&TEXT(B2,"hh:mm:ss")

第 2 步:如您所見,日期和時間作為純文本合併到一個單元格中。如果您有多個單獨的日期和時間單元格,您可以選擇並拖動合併的單元格以自動填充整個列。

好了,這就是您需要了解的有關如何在 Google 表格上自動填充日期的所有信息。

來源: https: //www.guidingtech.com

#googlesheets

(Google Sheets) 在 Google 表格上自動填充日期的 3 種方法

3 วิธีในการป้อนวันที่อัตโนมัติใน Google ชีต (Google Sheets)

ทุกสิ่งที่คุณต้องรู้เกี่ยวกับวิธีป้อนวันที่อัตโนมัติใน Google ชีต 3 วิธีในการเพิ่มวันที่ใน Google ชีต (Google Sheets) ได้แก่ การเติมเซลล์อัตโนมัติ การใช้ฟังก์ชันวันที่ การจัดรูปแบบเซลล์ หรือการแทรกทางลัดวันที่ เราได้แสดงวิธีการเหล่านี้โดยใช้เว็บเบราว์เซอร์บนพีซีที่ใช้ Windows แต่ใช้ได้กับ Mac, iPhone และ Android เช่นกัน

วิธีเพิ่มวันที่โดยอัตโนมัติใน Google ชีต (Google Sheets)

ไม่จำเป็นต้องกังวลเกี่ยวกับค่าสมัครที่แพงของ Microsoft สำหรับ Office 365 เนื่องจาก Google เสนอทางเลือกฟรีคือ Google ชีต เช่นเดียวกับ Excel มีคุณสมบัติมากมายที่รอให้ค้นพบ เมื่อเรารวบรวมรายงานประจำวัน เราพบวิธีมากมายในการเพิ่มวันที่โดยอัตโนมัติในเอกสาร Google ชีต

มีสามวิธีในการเพิ่มวันที่ใน Google ชีต ซึ่งรวมถึงการเติมเซลล์อัตโนมัติ การใช้ฟังก์ชันวันที่ การจัดรูปแบบเซลล์ หรือการแทรกทางลัดวันที่ เราได้แสดงวิธีการเหล่านี้โดยใช้เว็บเบราว์เซอร์บนพีซีที่ใช้ Windows แต่ใช้ได้กับ Mac, iPhone และ Android เช่นกัน

เมื่อใช้วิธีการเหล่านี้ คุณสามารถทำงานซ้ำๆ สองสามอย่างโดยอัตโนมัติซึ่งเกี่ยวข้องกับการเพิ่มวันที่ลงในเซลล์และปรับปรุงประสิทธิภาพของคุณ มาค้นพบพวกเขาทั้งหมดกันเถอะ

เคล็ดลับ : รูปแบบวันที่และเวลาขึ้นอยู่กับภาษาเริ่มต้นของ Google ชีตของคุณ วิธีเปลี่ยนมีดังนี้ เปิด Google ชีต > ไปที่ไฟล์ > การตั้งค่า ในหน้าต่างป๊อปอัป ไปที่แท็บทั่วไป > เลือกภูมิภาคของคุณภายใต้เมนูแบบเลื่อนลงตำแหน่งที่ตั้ง

สารบัญ:

  • ป้อนวันที่ปัจจุบันใน Google ชีตโดยอัตโนมัติ
  • วิธีป้อนวันที่อัตโนมัติใน Google ชีต
    • ป้อนวันอัตโนมัติในคอลัมน์ใน Google ชีต
    • ป้อนสัปดาห์อัตโนมัติในคอลัมน์บน Google ชีต
    • ป้อนเดือนอัตโนมัติในคอลัมน์บน Google ชีต
  • ป้อนวันธรรมดาโดยอัตโนมัติใน Google ชีตเท่านั้น
  • โบนัส: รวมวันที่และการประทับเวลาบน Google ชีต

1. ป้อนวันที่ปัจจุบันบน Google ชีตโดยอัตโนมัติ

เริ่มต้นด้วยการป้อนวันที่ของวันนี้โดยอัตโนมัติโดยใช้ฟังก์ชันวันที่ของ Google ชีตชื่อ TODAY() ซึ่งจะส่งคืนวันที่ของวันนี้ในเซลล์ นี่คือวิธีการใช้งาน

ขั้นตอนที่ 1:เปิด Google ชีต วางเคอร์เซอร์ในเซลล์ แล้วพิมพ์ฟังก์ชันด้านล่าง

=TODAY()

ขั้นตอนที่ 2:ตอนนี้ กดปุ่ม Enter

ไปแล้ว คุณสามารถดูวันที่ของวันนี้ในเซลล์บน Google ชีตได้แล้ว

หรือคุณสามารถใช้คีย์ผสม ' Ctrl +; ' บนเซลล์ใน Google ชีต และจะส่งคืนวันที่ปัจจุบัน

ต่อไป ให้เราดูว่าเราสามารถป้อนวันที่โดยอัตโนมัติตามลำดับเวลาใน Google ชีตได้อย่างไร

2. วิธีป้อนวันที่อัตโนมัติใน Google ชีต

ป้อนข้อความอัตโนมัติเป็นฟีเจอร์ใน Google ชีตที่ช่วยให้คุณเติมข้อมูลในเซลล์เป็นชุดโดยอิงตามค่าที่มีอยู่ในเซลล์บางเซลล์ ตัวอย่างเช่น ถ้าฉันป้อนวันที่ในเซลล์ A1 ฉันสามารถเติมวันที่ในคอลัมน์ A ทั้งคอลัมน์ได้ เนื่องจาก Google ชีตรับรู้ว่ามีวันที่ในเซลล์ A1 และเมื่อได้รับข้อความให้ป้อนส่วนที่เหลือของคอลัมน์โดยอัตโนมัติ ก็จะเติมด้วยลำดับที่เพิ่มขึ้นของ วันที่.

อย่างไรก็ตาม ในกรณีที่คุณต้องการตรวจสอบรูปแบบวันที่และเวลาก่อนที่จะป้อนวันที่ ให้ทำดังนี้

เราสามารถป้อนวัน สัปดาห์ และเดือนโดยอัตโนมัติใน Google ชีต มาดูกันว่าเราจะทำได้อย่างไร

1. ป้อนวันอัตโนมัติในคอลัมน์ใน Google ชีต

ขั้นตอนที่ 1:เปิด Google ชีตและป้อนวันที่ในเซลล์

ขั้นตอนที่ 2:คลิกที่มุมล่างขวาของเซลล์ค้างไว้แล้วลากลงไปที่เซลล์ที่คุณต้องการป้อนวันที่อัตโนมัติ

อย่างที่คุณเห็น วันที่จะถูกเติมอัตโนมัติสำหรับเซลล์ที่เลือกทั้งหมดในคอลัมน์ในรูปแบบเดียวกัน

 

นั่นคือวิธีที่คุณสามารถป้อนวันติดต่อกันโดยอัตโนมัติใน Google ชีต ต่อไป เรามาดูวิธีการป้อนวันที่ที่ห่างกันหนึ่งสัปดาห์โดยอัตโนมัติ

2. ป้อนสัปดาห์อัตโนมัติในคอลัมน์บน Google ชีต

ต่อไปนี้คือวิธีป้อนวันที่อัตโนมัติในคอลัมน์ใน Google ชีตซึ่งห่างกัน 1 สัปดาห์

ขั้นตอนที่ 1:เปิด Google ชีตและป้อนวันที่สองวันที่ห่างกันหนึ่งสัปดาห์ในเซลล์ที่อยู่ติดกัน

ขั้นตอนที่ 2:เลือกและเน้นเซลล์

ขั้นตอนที่ 3:คลิกที่มุมล่างขวาของเซลล์ที่ไฮไลต์แล้วลากไปยังเซลล์ที่คุณต้องการป้อนอัตโนมัติ

 

อย่างที่คุณเห็น คอลัมน์นี้เต็มไปด้วยวันที่ซึ่งห่างกันหนึ่งสัปดาห์

ในทำนองเดียวกัน เราสามารถป้อนวันที่อัตโนมัติในคอลัมน์ที่ห่างกันหนึ่งเดือน นี่คือวิธีการ

3. ป้อนเดือนอัตโนมัติในคอลัมน์บน Google ชีต

ขั้นตอนที่ 1:เปิด Google ชีตและป้อนวันที่สองวันที่ห่างกันหนึ่งเดือนในเซลล์ที่อยู่ติดกันในคอลัมน์

ขั้นตอนที่ 2:เลือกและเน้นเซลล์

 

ขั้นตอนที่ 3:คลิกที่มุมล่างขวาของเซลล์ที่ไฮไลต์แล้วลากไปยังเซลล์ที่คุณต้องการป้อนอัตโนมัติ

คอลัมน์จะถูกเติมโดยอัตโนมัติด้วยวันที่ซึ่งห่างกันไม่กี่เดือน

ต่อไป เรามาดูว่าเราสามารถป้อนวันธรรมดาใน Google ชีตได้อย่างไร

3. ป้อนวันธรรมดาอัตโนมัติใน Google ชีตเท่านั้น

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

ดังนั้น คุณสามารถป้อนวันที่อัตโนมัติ ยกเว้นวันหยุดสุดสัปดาห์ - วันเสาร์และวันอาทิตย์ นี่คือวิธีการ

ขั้นตอนที่ 1:เปิด Google ชีตและป้อนวันที่ในเซลล์ที่คุณต้องการเริ่มต้น

ขั้นตอนที่ 2:ป้อนสูตรในเซลล์ด้านล่าง ตรวจสอบให้แน่ใจว่าคุณป้อนคอลัมน์ที่ถูกต้องในสูตร (คอลัมน์ A ในกรณีของเรา)

=WORKDAY.INTL($A$2, row(A1),1)

ขั้นตอนที่ 3:เซลล์ถัดไปจะถูกเติมโดยอัตโนมัติด้วยวันทำการถัดไป

ขั้นตอนที่ 4:คลิกที่มุมล่างขวาของเซลล์ แล้วลากลงไปที่เซลล์ที่คุณต้องการเติม สูตรจะควบคุมรูปแบบ และจะป้อนเฉพาะวันทำการและไม่รวมวันเสาร์และอาทิตย์

ดังที่คุณเห็นในภาพด้านล่าง เซลล์จะมีเฉพาะวันทำการ และไม่รวมวันเสาร์และอาทิตย์

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

ต่อไป มาดูกันว่าเราจะรวมวันที่และเวลาใน Google ชีตได้อย่างไร ซึ่งจะเป็นประโยชน์หากคุณมีสองคอลัมน์: คอลัมน์หนึ่งสำหรับวันที่และอีกคอลัมน์หนึ่งสำหรับเวลา

โบนัส: รวมวันที่และการประทับเวลาบน Google ชีต

เมื่อคุณมีคอลัมน์ที่มีวันที่และเวลาที่ตรงกันในคอลัมน์ คุณควรรวมคอลัมน์เหล่านี้ไว้ในคอลัมน์เดียวและลดความซ้ำซ้อนให้เหลือน้อยที่สุด นี่คือวิธีการทำ

ขั้นตอนที่ 1:เปิด Google ชีตและป้อนสูตรด้านล่างที่ช่วยให้คุณรวมฟังก์ชันวันที่และเวลาใน Google ชีตเป็นข้อความ

ตรวจสอบให้แน่ใจว่าคุณป้อนตำแหน่งเซลล์ที่ถูกต้องสำหรับวันที่และเวลาตามลำดับ ในกรณีของเราคือ A2 และ B2

=TEXT(A2,"m/dd/yy")&TEXT(B2,"hh:mm:ss")

ขั้นตอนที่ 2:อย่างที่คุณเห็น วันที่และเวลาจะรวมเป็นเซลล์เดียวในรูปแบบข้อความธรรมดา คุณสามารถเลือกและลากเซลล์ที่ผสานเพื่อป้อนทั้งคอลัมน์โดยอัตโนมัติ ถ้าคุณมีเซลล์วันที่และเวลาที่แยกจากกันหลายเซลล์

เรียบร้อยแล้ว นั่นคือทุกสิ่งที่คุณจำเป็นต้องรู้เกี่ยวกับวิธีป้อนวันที่อัตโนมัติใน Google ชีต

ที่มา: https://www.guidingtech.com

#googlesheets

3 วิธีในการป้อนวันที่อัตโนมัติใน Google ชีต (Google Sheets)

3 formas de autocompletar fechas en hojas de cálculo de Google (Google

3 formas de autocompletar fechas en hojas de cálculo de Google (Google Sheets)

Todo lo que necesita saber sobre cómo autocompletar fechas en Hojas de cálculo de Google (Google Sheets). 3 formas de agregar fechas en Hojas de cálculo de Google, que incluyen el llenado automático de celdas, el uso de la función de fecha, el formato de las celdas o la inserción del atajo de fecha. Hemos ilustrado estos métodos utilizando un navegador web en una PC con Windows, pero también funcionan en Mac, iPhone y Android.

Cómo agregar fechas automáticamente en Google Sheets

Uno no necesita preocuparse por los costosos cargos de suscripción de Microsoft para Office 365, ya que Google ofrece una alternativa gratuita, Hojas de cálculo de Google. Al igual que Excel, hay un montón de características que esperan ser descubiertas. Cuando estábamos compilando un informe diario, encontramos numerosas formas de agregar fechas automáticamente en un documento de Hojas de cálculo de Google.

Hay tres formas de agregar fechas a Hojas de cálculo de Google, que incluyen el llenado automático de celdas, el uso de la función de fecha, el formato de las celdas o la inserción del acceso directo de fecha. Hemos ilustrado estos métodos utilizando un navegador web en una PC con Windows, pero también funcionan en Mac, iPhone y Android.

Con estos métodos, puede automatizar algunas tareas repetitivas que implican agregar fechas a las celdas y mejorar su eficiencia. Vamos a descubrirlos todos.

Sugerencia : los formatos de fecha y hora dependen de la configuración regional predeterminada de sus Hojas de cálculo de Google. He aquí cómo cambiarlo: abre Hojas de cálculo de Google > ve a Archivo > configuración. En la ventana emergente, vaya a la pestaña General > seleccione su región en el menú desplegable Configuración regional.

Tabla de contenido:

  • Ingrese automáticamente la fecha actual en las hojas de Google
  • Cómo autocompletar fechas en Google Sheets
    • Autocompletar días en una columna en Hojas de cálculo de Google
    • Autocompletar semanas en una columna en Hojas de cálculo de Google
    • Autocompletar meses en una columna en Hojas de cálculo de Google
  • Autocompletar días de semana solo en Hojas de cálculo de Google
  • Bonificación: combinar la fecha y la marca de tiempo en las hojas de cálculo de Google

1. Ingrese automáticamente la fecha actual en las hojas de Google

Comencemos ingresando automáticamente la fecha de hoy usando la función de fecha de Google Sheets llamada TODAY(). Esto devuelve la fecha de hoy en una celda. Aquí se explica cómo usarlo.

Paso 1: Abra Hojas de cálculo de Google, coloque el cursor en una celda y escriba la siguiente función.

=TODAY()

Paso 2: Ahora, presiona la tecla enter.

Ahí tienes Ahora puede ver la fecha de hoy en una celda en Hojas de cálculo de Google.

Alternativamente, también puede usar la combinación de teclas ' Ctrl +; ' en una celda en Hojas de cálculo de Google y devolverá la fecha actual.

Next, let us look at how we can automatically enter dates in chronological order in Google Sheets.

2. How to Autofill Dates in Google Sheets

Autofill is a feature on Google Sheets that helps you fill the cells in series with data based on values present in a few cells. For example, if I enter a date in Cell A1, I can fill the entire column A with dates, since Google Sheets recognizes that there’s a date in A1 and when prompted to autofill the rest of the column, it fills it with increasing order of dates.

However in case, you want to check the date and time format before you enter a date, here’s how to do it.

We can autofill days, weeks, and months in Google Sheets. Let’s see how we can do that.

1. Autofill Days in a Column in Google Sheets

Step 1: Open Google Sheets and enter a date in a cell.

Step 2: Click and hold on the bottom right corner of the cell and drag it down to the cell you want to autofill dates for.

As you can see, the dates are auto-filled for all the selected cells in a column in the same format.

 

That is how you can autofill consecutive days in Google Sheets. Next, let us see how to autofill dates that are a week apart.

2. Autofill Weeks in a Column on Google Sheets

Here’s how you can autofill dates in a column in Google Sheets that are a week apart.

Step 1: Open a Google Sheet and enter two dates that are a week apart in the consecutive cells.

Step 2: Select and highlight the cells.

Step 3: Click on the bottom right corner of the highlighted cells, and drag it until the cell you want to autofill.

 

Como puede ver, la columna está llena de fechas con una semana de diferencia.

Del mismo modo, podemos autocompletar fechas en una columna con un mes de diferencia. Así es cómo.

3. Autocompletar meses en una columna en Google Sheets

Paso 1: Abra Hojas de cálculo de Google e ingrese dos fechas que tengan un mes de diferencia en celdas consecutivas de la columna.

Paso 2: selecciona y resalta las celdas.

 

Paso 3: haga clic en la esquina inferior derecha de las celdas resaltadas y arrástrelo hasta la celda que desea autocompletar.

La columna se autocompleta con fechas que tienen algunos meses de diferencia.

A continuación, echemos un vistazo a cómo podemos ingresar los días de la semana solo en Hojas de cálculo de Google.

3. Autocompletar días de la semana solo en Google Sheets

Si usa Hojas de cálculo de Google en el trabajo , rara vez necesita ingresar datos para un día no laborable o un fin de semana. Pero en el método anterior para autocompletar fechas, los fines de semana también se autocompletaban. Si está trabajando en una hoja de cálculo con muchos datos, eliminar manualmente los fines de semana lleva mucho tiempo.

Por lo tanto, puede autocompletar fechas excluyendo los fines de semana: sábados y domingos. Así es cómo.

Paso 1: Abra Hojas de cálculo de Google e ingrese una fecha en una celda con la que desea comenzar.

Paso 2: Ingrese la fórmula en la celda a continuación. Asegúrese de ingresar la columna correcta en la fórmula. (columna A en nuestro caso)

=WORKDAY.INTL($A$2, row(A1),1)

Paso 3: la siguiente celda se llena automáticamente con el siguiente día hábil.

Step 4: Click on the bottom right corner of the cell, and drag it down to the cell that you want to fill. The formula governs the pattern, and will only enter working days and exclude Saturdays and Sundays.

As you can see in the image below, the cells contain only working days, and Saturdays and Sundays are excluded.

That is everything you need to know on how to autofill dates in Google Sheets. If you are looking for a way to modify and change the format of dates on Google Sheets, you can take a look at the article we recently published.

Next, let us see how we can merge date and time on Google Sheets. This will be helpful if you have two columns: one for the date and another for the time.

Bonus: Merge Date and Timestamp on Google Sheets

Cuando tiene una columna con una fecha y una hora que le corresponde en una columna, tiene sentido fusionarlas en una sola columna y minimizar la redundancia. Aquí está cómo hacerlo.

Paso 1: Abra Hojas de cálculo de Google e ingrese la siguiente fórmula que lo ayuda a fusionar las funciones de fecha y hora en Hojas de cálculo de Google en un texto.

Asegúrese de ingresar las ubicaciones de celda correctas para la fecha y la hora, respectivamente. En nuestro caso, es A2 y B2.

=TEXT(A2,"m/dd/yy")&TEXT(B2,"hh:mm:ss")

Paso 2: como puede ver, la fecha y la hora se fusionan en una sola celda como texto sin formato. Puede seleccionar y arrastrar las celdas combinadas para autocompletar toda la columna si tiene varias celdas de fecha y hora separadas.

Ahí lo tienes, eso es todo lo que necesitas saber sobre cómo completar automáticamente las fechas en Hojas de cálculo de Google.

Fuente: https://www.guidingtech.com

#googlesheets

3 formas de autocompletar fechas en hojas de cálculo de Google (Google
Poppy Cooke

Poppy Cooke

1679146740

3 façons de remplir automatiquement les dates sur Google Sheets

Tout ce que vous devez savoir sur la façon de remplir automatiquement les dates sur Google Sheets. 3 façons d'ajouter des dates sur Google Sheets, notamment le remplissage automatique des cellules, l'utilisation de la fonction de date, le formatage des cellules ou l'insertion du raccourci de date. Nous avons illustré ces méthodes à l'aide d'un navigateur Web sur un PC Windows, mais elles fonctionnent également sur Mac, iPhone et Android.

Comment ajouter des dates automatiquement dans Google Sheets

Il n'est pas nécessaire de s'inquiéter des frais d'abonnement coûteux de Microsoft pour Office 365, car Google propose une alternative gratuite, Google Sheets. Tout comme Excel, il y a des tonnes de fonctionnalités qui attendent d'être découvertes. Lorsque nous compilions un rapport quotidien, nous avons trouvé de nombreuses façons d'ajouter automatiquement des dates sur un document Google Sheets.

Il existe trois façons d'ajouter des dates à Google Sheets, notamment le remplissage automatique des cellules, l'utilisation de la fonction de date, le formatage des cellules ou l'insertion du raccourci de date. Nous avons illustré ces méthodes à l'aide d'un navigateur Web sur un PC Windows, mais elles fonctionnent également sur Mac, iPhone et Android.

En utilisant ces méthodes, vous pouvez automatiser quelques tâches répétitives qui impliquent d'ajouter des dates aux cellules et d'améliorer votre efficacité. Découvrons-les tous.

Conseil : Les formats de date et d'heure dépendent des paramètres régionaux par défaut de vos feuilles de calcul Google. Voici comment le modifier : ouvrez Google Sheets > accédez à Fichier > Paramètres. Dans la fenêtre contextuelle, accédez à l'onglet Général> sélectionnez votre région dans le menu déroulant Paramètres régionaux.

Table des matières:

  • Entrez automatiquement la date actuelle sur Google Sheets
  • Comment remplir automatiquement les dates dans Google Sheets
    • Remplissage automatique des jours dans une colonne dans Google Sheets
    • Remplissage automatique des semaines dans une colonne sur Google Sheets
    • Remplissage automatique des mois dans une colonne sur Google Sheets
  • Remplir automatiquement les jours de la semaine uniquement sur Google Sheets
  • Bonus : fusionner la date et l'horodatage sur Google Sheets

1. Entrez automatiquement la date actuelle sur Google Sheets

Commençons par saisir automatiquement la date du jour à l'aide de la fonction de date de Google Sheets appelée TODAY(). Cela renvoie la date du jour dans une cellule. Voici comment l'utiliser.

Étape 1 : Ouvrez Google Sheets, placez votre curseur dans une cellule et tapez la fonction ci-dessous.

=TODAY()

Étape 2 : Maintenant, appuyez sur la touche Entrée.

Voilà. Vous pouvez maintenant voir la date d'aujourd'hui dans une cellule sur Google Sheets.

Alternativement, vous pouvez également utiliser la combinaison de touches ' Ctrl + ; ' sur une cellule dans Google Sheets et il renverra la date actuelle.

Voyons ensuite comment saisir automatiquement les dates dans l'ordre chronologique dans Google Sheets.

2. Comment remplir automatiquement les dates dans Google Sheets

Le remplissage automatique est une fonctionnalité de Google Sheets qui vous aide à remplir les cellules en série avec des données basées sur les valeurs présentes dans quelques cellules. Par exemple, si j'entre une date dans la cellule A1, je peux remplir toute la colonne A avec des dates, car Google Sheets reconnaît qu'il y a une date dans A1 et lorsqu'il est invité à remplir automatiquement le reste de la colonne, il la remplit par ordre croissant de Rendez-vous.

Cependant, si vous souhaitez vérifier le format de la date et de l'heure avant d'entrer une date, voici comment procéder.

Nous pouvons remplir automatiquement les jours, les semaines et les mois dans Google Sheets. Voyons comment nous pouvons faire cela.

1. Remplissage automatique des jours dans une colonne dans Google Sheets

Étape 1 : Ouvrez Google Sheets et saisissez une date dans une cellule.

Étape 2 : Cliquez et maintenez le coin inférieur droit de la cellule et faites-le glisser vers la cellule pour laquelle vous souhaitez remplir automatiquement les dates.

Comme vous pouvez le voir, les dates sont remplies automatiquement pour toutes les cellules sélectionnées dans une colonne au même format.

 

C'est ainsi que vous pouvez remplir automatiquement des jours consécutifs dans Google Sheets. Voyons ensuite comment remplir automatiquement les dates espacées d'une semaine.

2. Remplir automatiquement les semaines dans une colonne sur Google Sheets

Voici comment vous pouvez remplir automatiquement les dates dans une colonne de Google Sheets qui sont espacées d'une semaine.

Étape 1 : Ouvrez une feuille de calcul Google et entrez deux dates espacées d'une semaine dans les cellules consécutives.

Étape 2 : Sélectionnez et mettez en surbrillance les cellules.

Étape 3 : Cliquez sur le coin inférieur droit des cellules en surbrillance et faites-le glisser jusqu'à la cellule que vous souhaitez remplir automatiquement.

 

Comme vous pouvez le voir, la colonne est remplie de dates espacées d'une semaine.

De même, nous pouvons remplir automatiquement les dates d'une colonne espacées d'un mois. Voici comment.

3. Remplissage automatique des mois dans une colonne sur Google Sheets

Étape 1 : Ouvrez Google Sheets et saisissez deux dates distantes d'un mois dans des cellules consécutives de la colonne.

Étape 2 : Sélectionnez et mettez en surbrillance les cellules.

 

Étape 3 : Cliquez sur le coin inférieur droit des cellules en surbrillance et faites-le glisser jusqu'à la cellule que vous souhaitez remplir automatiquement.

La colonne est remplie automatiquement avec des dates distantes de quelques mois.

Voyons ensuite comment nous pouvons saisir les jours de la semaine uniquement sur Google Sheets.

3. Remplissage automatique des jours de semaine uniquement sur Google Sheets

Si vous utilisez Google Sheets au travail , vous avez rarement besoin de saisir des données pour un jour non ouvrable ou un week-end. Mais dans la méthode précédente de remplissage automatique des dates, les week-ends étaient également remplis automatiquement. Si vous travaillez sur une feuille de calcul riche en données, la suppression manuelle des week-ends prend du temps.

Par conséquent, vous pouvez remplir automatiquement les dates en excluant les week-ends - samedis et dimanches. Voici comment.

Étape 1 : Ouvrez Google Sheets et entrez une date dans une cellule avec laquelle vous souhaitez commencer.

Étape 2 : Entrez la formule dans la cellule ci-dessous. Assurez-vous d'entrer la bonne colonne dans la formule. (colonne A dans notre cas)

=WORKDAY.INTL($A$2, row(A1),1)

Étape 3 : La cellule suivante est automatiquement remplie avec le jour ouvrable suivant.

Étape 4 : Cliquez sur le coin inférieur droit de la cellule et faites-le glisser vers la cellule que vous souhaitez remplir. La formule régit le modèle et n'entrera que les jours ouvrables et exclura les samedis et les dimanches.

Comme vous pouvez le voir dans l'image ci-dessous, les cellules ne contiennent que des jours ouvrables, et les samedis et dimanches sont exclus.

C'est tout ce que vous devez savoir sur la façon de remplir automatiquement les dates dans Google Sheets. Si vous cherchez un moyen de modifier et de changer le format des dates sur Google Sheets, vous pouvez jeter un œil à l'article que nous avons récemment publié.

Voyons ensuite comment fusionner la date et l'heure sur Google Sheets. Cela sera utile si vous avez deux colonnes : une pour la date et une autre pour l'heure.

Bonus : fusionner la date et l'horodatage sur Google Sheets

Lorsque vous avez une colonne avec une date et une heure qui lui correspondent dans une colonne, il est logique de les fusionner en une seule colonne et de minimiser la redondance. Voici comment procéder.

Étape 1 : Ouvrez Google Sheets et entrez la formule ci-dessous qui vous aide à fusionner les fonctions de date et d'heure sur Google Sheets dans un texte.

Assurez-vous d'entrer les bons emplacements de cellule pour la date et l'heure respectivement. Dans notre cas, il s'agit de A2 et B2.

=TEXT(A2,"m/dd/yy")&TEXT(B2,"hh:mm:ss")

Étape 2 : Comme vous pouvez le constater, la date et l'heure sont fusionnées dans une seule cellule sous forme de texte brut. Vous pouvez sélectionner et faire glisser les cellules fusionnées pour remplir automatiquement toute la colonne si vous avez plusieurs cellules de date et d'heure distinctes.

Voilà, c'est tout ce que vous devez savoir sur la façon de remplir automatiquement les dates sur Google Sheets.

Source : https://www.guidingtech.com

#googlesheets

3 façons de remplir automatiquement les dates sur Google Sheets
曾 俊

曾 俊

1679143080

(Google Sheets) Google スプレッドシートで日付を自動入力する 3 つの方法

(Google Sheets) Google スプレッドシートで日付を自動入力する方法について知っておく必要があるすべて。Google スプレッドシートに日付を追加する 3 つの方法。これらには、セルの自動入力、日付関数の使用、セルの書式設定、または日付ショートカットの挿入が含まれます。Windows PC の Web ブラウザーを使用してこれらの方法を説明しましたが、Mac、iPhone、および Android でも機能します。

(Google Sheets) Google スプレッドシートに日付を自動的に追加する方法

Office 365 の Microsoft の高額なサブスクリプション料金について心配する必要はありません。Google が無料の代替ツールである Google Sheets を提供しているためです。Excel と同じように、発見されるのを待っている機能がたくさんあります。日報を編集しているときに、Google スプレッドシート ドキュメントに日付を自動的に追加する方法を多数見つけました。

Google スプレッドシートに日付を追加する方法は 3 つあります。セルの自動入力、日付関数の使用、セルの書式設定、または日付ショートカットの挿入が含まれます。Windows PC の Web ブラウザーを使用してこれらの方法を説明しましたが、Mac、iPhone、および Android でも機能します。

これらの方法を使用すると、セルへの日付の追加を含むいくつかの反復タスクを自動化し、効率を向上させることができます。それらをすべて発見しましょう。

ヒント: 日付と時刻の形式は、Google スプレッドシートのデフォルトのロケールによって異なります。変更方法は次のとおりです。Google スプレッドシートを開き、[ファイル] > [設定] に移動します。ポップアップ ウィンドウで、[全般] タブに移動し、[ロケール] ドロップダウン メニューで地域を選択します。

目次:

  • Google スプレッドシートに現在の日付を自動的に入力する
  • Googleスプレッドシートで日付を自動入力する方法
    • Google スプレッドシートの列に日を自動入力する
    • Google スプレッドシートの列に週を自動入力する
    • Google スプレッドシートの列に月を自動入力
  • Google スプレッドシートで平日のみ自動入力
  • おまけ: Google スプレッドシートで日付とタイムスタンプを結合する

1. Google スプレッドシートに現在の日付を自動入力する

TODAY() という Google スプレッドシートの日付関数を使用して、今日の日付を自動的に入力することから始めましょう。これは、今日の日付をセルに返します。使用方法は次のとおりです。

ステップ 1: Google スプレッドシートを開き、カーソルをセルに置き、以下の関数を入力します。

=TODAY()

ステップ 2:次に、Enter キーを押します。

ほらね。Google スプレッドシートのセルに今日の日付が表示されるようになりました。

または、キーの組み合わせ ' Ctrl +;を使用することもできます。' Google スプレッドシートのセルに入力すると、現在の日付が返されます。

Next, let us look at how we can automatically enter dates in chronological order in Google Sheets.

2. How to Autofill Dates in Google Sheets

Autofill is a feature on Google Sheets that helps you fill the cells in series with data based on values present in a few cells. For example, if I enter a date in Cell A1, I can fill the entire column A with dates, since Google Sheets recognizes that there’s a date in A1 and when prompted to autofill the rest of the column, it fills it with increasing order of dates.

However in case, you want to check the date and time format before you enter a date, here’s how to do it.

We can autofill days, weeks, and months in Google Sheets. Let’s see how we can do that.

1. Autofill Days in a Column in Google Sheets

Step 1: Open Google Sheets and enter a date in a cell.

ステップ 2:セルの右下隅をクリックしたままにして、日付を自動入力するセルまでドラッグします。

ご覧のとおり、列内の選択されたすべてのセルの日付が同じ形式で自動入力されます。

 

これが、Google スプレッドシートで連続した日を自動入力する方法です。次に、1 週間離れた日付を自動入力する方法を見てみましょう。

2. Google スプレッドシートの列に週を自動入力する

Google スプレッドシートの列に 1 週​​間離れた日付を自動入力する方法を次に示します。

ステップ 1: Google スプレッドシートを開き、連続するセルに 1 週​​間離れた 2 つの日付を入力します。

ステップ 2:セルを選択して強調表示します。

ステップ 3:強​​調表示されたセルの右下隅をクリックし、自動入力するセルまでドラッグします。

 

As you can see, the column is filled with dates that are a week apart.

Similarly, we can autofill dates in a column that are a month apart. Here’s how.

3. Autofill Months in a Column on Google Sheets

Step 1: Open Google Sheets and enter two dates that are a month apart in consecutive cells in the column.

Step 2: Select and highlight the cells.

 

Step 3: Click on the bottom right corner of the highlighted cells, and drag it until the cell you want to autofill.

The column is auto-filled with dates that are a few months apart.

Next, let us take a look at how we can enter weekdays only on Google Sheets.

3. Autofill Weekdays Only on Google Sheets

If you are using Google Sheets at work, you seldom need to enter data for a non-working day or a weekend. But in the previous method to autofill dates, weekends were also auto-filled. If you are working on a data-heavy spreadsheet, it is time-consuming to manually delete weekends.

Therefore, you can autofill dates excluding the weekends – Saturdays and Sundays. Here’s how.

Step 1: Open Google Sheets and enter a date in a cell that you want to start with.

Step 2: Enter the formula in the cell below. Make sure you enter the correct column in the formula. (column A in our case)

=WORKDAY.INTL($A$2, row(A1),1)

Step 3: The next cell is automatically filled with the next working day.

ステップ 4:セルの右下隅をクリックし、塗りつぶしたいセルまでドラッグします。式はパターンを管理し、営業日のみを入力し、土曜日と日曜日を除外します。

下の画像でわかるように、セルには営業日のみが含まれており、土曜日と日曜日は除外されています。

Googleスプレッドシートで日付を自動入力する方法について知っておく必要があるのはこれだけです. Google スプレッドシートの日付の形式を修正および変更する方法を探している場合は、最近公開した記事をご覧ください。

次に、Google スプレッドシートで日付と時刻をマージする方法を見てみましょう。これは、日付用と時刻用の 2 つの列がある場合に役立ちます。

おまけ: Google スプレッドシートで日付とタイムスタンプを結合する

列に対応する日付と時刻を持つ列がある場合、それらを単一の列にマージして冗長性を最小限に抑えることは理にかなっています。方法は次のとおりです。

ステップ 1: Google スプレッドシートを開き、Google スプレッドシートの日付と時刻の関数をテキストに結合するのに役立つ以下の数式を入力します。

日付と時刻のそれぞれに正しいセル位置を入力してください。私たちの場合、それは A2 と B2 です。

=TEXT(A2,"m/dd/yy")&TEXT(B2,"hh:mm:ss")

ステップ 2:ご覧のとおり、日付と時刻がプレーン テキストとして 1 つのセルに結合されます。複数の個別の日付と時刻のセルがある場合は、結合されたセルを選択してドラッグし、列全体を自動入力できます。

これで、Google スプレッドシートで日付を自動入力する方法について知っておく必要があることがすべてわかりました。

ソース: https://www.guidingtech.com

#googlesheets

(Google Sheets) Google スプレッドシートで日付を自動入力する 3 つの方法

3 способа автозаполнения дат в Google Sheets

Все, что вам нужно знать о том, как автоматически заполнять даты в Google Таблицах. 3 способа добавления дат в Google Таблицы, в том числе автоматическое заполнение ячеек, использование функции даты, форматирование ячеек или вставка ярлыка даты. Мы проиллюстрировали эти методы с помощью веб-браузера на ПК с Windows, но они также работают на Mac, iPhone и Android.

Как автоматически добавлять даты в Google Sheets

Не нужно беспокоиться о дорогой подписке Microsoft на Office 365, поскольку Google предлагает бесплатную альтернативу — Google Таблицы. Как и в Excel, существует множество функций, которые ждут своего открытия. Когда мы составляли ежедневный отчет, мы нашли множество способов автоматического добавления дат в документ Google Sheets.

Есть три способа добавить даты в Google Таблицы, в том числе автоматическое заполнение ячеек, использование функции даты, форматирование ячеек или вставка ярлыка даты. Мы проиллюстрировали эти методы с помощью веб-браузера на ПК с Windows, но они также работают на Mac, iPhone и Android.

Используя эти методы, вы можете автоматизировать несколько повторяющихся задач, связанных с добавлением дат в ячейки, и повысить свою эффективность. Давайте откроем их все.

Совет . Форматы даты и времени зависят от региональных настроек ваших Google Таблиц по умолчанию. Вот как это изменить: откройте Google Sheets > выберите «Файл» > «Настройки». Во всплывающем окне перейдите на вкладку «Общие» > выберите свой регион в раскрывающемся меню «Язык».

Оглавление:

  • Автоматически вводить текущую дату в Google Sheets
  • Как автоматически заполнять даты в Google Sheets
    • Автозаполнение дней в столбце в Google Sheets
    • Автозаполнение недель в столбце в Google Таблицах
    • Автозаполнение месяцев в столбце в Google Sheets
  • Автозаполнение рабочих дней только в Google Sheets
  • Бонус: объединение даты и времени в Google Sheets

1. Автоматически вводить текущую дату в Google Sheets

Начнем с автоматического ввода сегодняшней даты с помощью функции даты Google Sheets под названием TODAY(). Это возвращает сегодняшнюю дату в ячейке. Вот как это использовать.

Шаг 1: Откройте Google Таблицы, поместите курсор в ячейку и введите приведенную ниже функцию.

=TODAY()

Шаг 2: Теперь нажмите клавишу ввода.

Ну вот. Теперь вы можете увидеть сегодняшнюю дату в ячейке Google Таблиц.

Кроме того, вы также можете использовать комбинацию клавиш ' Ctrl +; ' в ячейке в Google Sheets, и он вернет текущую дату.

Далее давайте посмотрим, как мы можем автоматически вводить даты в хронологическом порядке в Google Sheets.

2. Как автоматически заполнять даты в Google Sheets

Автозаполнение — это функция в Google Sheets, которая помогает вам последовательно заполнять ячейки данными на основе значений, присутствующих в нескольких ячейках. Например, если я ввожу дату в ячейку A1, я могу заполнить весь столбец A датами, поскольку Google Sheets распознает, что в A1 есть дата, и когда будет предложено автоматически заполнить остальную часть столбца, он заполнит ее в порядке возрастания. даты.

Однако в случае, если вы хотите проверить формат даты и времени перед вводом даты, вот как это сделать.

Мы можем автоматически заполнять дни, недели и месяцы в Google Таблицах. Давайте посмотрим, как мы можем это сделать.

1. Автозаполнение дней в столбце в Google Sheets

Шаг 1: Откройте Google Sheets и введите дату в ячейку.

Шаг 2: Нажмите и удерживайте правый нижний угол ячейки и перетащите его вниз к ячейке, для которой вы хотите автоматически заполнить даты.

Как видите, даты автоматически заполняются для всех выбранных ячеек в столбце в том же формате.

 

Вот как вы можете автоматически заполнять дни подряд в Google Таблицах. Далее давайте посмотрим, как автоматически заполнять даты с разницей в неделю.

2. Автозаполнение недель в столбце в Google Таблицах

Вот как вы можете автоматически заполнять даты в столбце в Google Таблицах, которые разделены на неделю.

Шаг 1. Откройте таблицу Google и введите две даты с разницей в неделю в последовательных ячейках.

Шаг 2: Выберите и выделите ячейки.

Шаг 3: Нажмите в правом нижнем углу выделенных ячеек и перетащите его до ячейки, которую вы хотите заполнить автоматически.

 

Как видите, столбец заполнен датами, отстоящими друг от друга на неделю.

Точно так же мы можем автоматически заполнять даты в столбце с разницей в месяц. Вот как.

3. Автозаполнение месяцев в столбце в Google Sheets

Шаг 1. Откройте Google Таблицы и введите две даты с разницей в месяц в последовательных ячейках столбца.

Шаг 2: Выберите и выделите ячейки.

 

Шаг 3: Нажмите в правом нижнем углу выделенных ячеек и перетащите его до ячейки, которую вы хотите заполнить автоматически.

Столбец автоматически заполняется датами с разницей в несколько месяцев.

Далее давайте посмотрим, как мы можем вводить дни недели только в Google Таблицах.

3. Автозаполнение рабочих дней только в Google Sheets

Если вы используете Google Sheets на работе , вам редко нужно вводить данные за нерабочий день или выходные. Но в предыдущем методе автоматического заполнения дат выходные также заполнялись автоматически. Если вы работаете с электронной таблицей с большим объемом данных, удаление выходных вручную занимает много времени.

Поэтому вы можете автоматически заполнять даты за исключением выходных — субботы и воскресенья. Вот как.

Шаг 1. Откройте Google Sheets и введите дату в ячейку, с которой вы хотите начать.

Шаг 2: Введите формулу в ячейку ниже. Убедитесь, что вы ввели правильный столбец в формуле. (столбец A в нашем случае)

=WORKDAY.INTL($A$2, row(A1),1)

Шаг 3: Следующая ячейка автоматически заполняется следующим рабочим днем.

Шаг 4: Нажмите в правом нижнем углу ячейки и перетащите его вниз к ячейке, которую вы хотите заполнить. Формула управляет шаблоном и будет вводить только рабочие дни, исключая субботу и воскресенье.

Как видно на изображении ниже, в ячейках указаны только рабочие дни, а субботы и воскресенья исключены.

Это все, что вам нужно знать о том, как автоматически заполнять даты в Google Таблицах. Если вы ищете способ изменить и изменить формат дат в Google Sheets, вы можете взглянуть на статью, которую мы недавно опубликовали.

Далее давайте посмотрим, как мы можем объединить дату и время в Google Таблицах. Это будет полезно, если у вас есть два столбца: один для даты, а другой для времени.

Бонус: объединение даты и времени в Google Sheets

Когда у вас есть столбец с датой и временем, которые ему соответствуют в столбце, имеет смысл объединить их в один столбец и свести к минимуму избыточность. Вот как это сделать.

Шаг 1. Откройте Google Sheets и введите приведенную ниже формулу, которая поможет вам объединить функции даты и времени в Google Sheets в текст.

Убедитесь, что вы ввели правильные ячейки для даты и времени соответственно. В нашем случае это A2 и B2.

=TEXT(A2,"m/dd/yy")&TEXT(B2,"hh:mm:ss")

Шаг 2: Как видите, дата и время объединяются в одну ячейку в виде обычного текста. Вы можете выбрать и перетащить объединенные ячейки, чтобы автоматически заполнить весь столбец, если у вас есть несколько отдельных ячеек даты и времени.

Вот и все, что вам нужно знать о том, как автоматически заполнять даты в Google Таблицах.

Источник: https://www.guidingtech.com

#googlesheets

3 способа автозаполнения дат в Google Sheets
최  호민

최 호민

1679135764

(Google Sheets) Google 스프레드시트에서 날짜를 자동으로 채우는 3가지 방법

(Google Sheets) Google 스프레드시트에서 날짜를 자동 완성하는 방법에 대해 알아야 할 모든 것. Google 스프레드시트에 날짜를 추가하는 3가지 방법에는 셀 자동 채우기, 날짜 기능 사용, 셀 서식 지정 또는 날짜 바로가기 삽입이 포함됩니다. Windows PC에서 웹 브라우저를 사용하여 이러한 방법을 설명했지만 Mac, iPhone 및 Android에서도 작동합니다.

Google 스프레드시트에서 자동으로 날짜를 추가하는 방법

Google은 무료 대안인 Google 스프레드시트를 제공하므로 Microsoft의 Office 365에 대한 비싼 구독료에 대해 걱정할 필요가 없습니다. Excel과 마찬가지로 수많은 기능이 발견되기를 기다리고 있습니다. 일일 보고서를 작성할 때 Google 스프레드시트 문서에 자동으로 날짜를 추가하는 다양한 방법을 찾았습니다.

Google 스프레드시트에 날짜를 추가하는 세 가지 방법에는 셀 자동 채우기, 날짜 기능 사용, 셀 서식 지정 또는 날짜 바로 가기 삽입이 포함됩니다. Windows PC에서 웹 브라우저를 사용하여 이러한 방법을 설명했지만 Mac, iPhone 및 Android에서도 작동합니다.

이러한 방법을 사용하면 셀에 날짜를 추가하고 효율성을 향상시키는 것과 관련된 몇 가지 반복 작업을 자동화할 수 있습니다. 그들 모두를 발견하자.

도움말 : 날짜 및 시간 형식은 Google 스프레드시트의 기본 로케일에 따라 다릅니다. 변경 방법은 다음과 같습니다. Google 스프레드시트를 열고 파일 > 설정으로 이동합니다. 팝업 창에서 일반 탭으로 이동하고 로케일 드롭다운 메뉴에서 지역을 선택합니다.

목차:

  • Google 스프레드시트에 현재 날짜 자동 입력
  • Google 스프레드시트에서 날짜를 자동으로 채우는 방법
    • Google 스프레드시트의 열에 날짜 자동 완성
    • Google Sheets의 열에 주 자동 채우기
    • Google 스프레드시트의 열에 월 자동 채우기
  • Google 스프레드시트에서만 평일 자동완성
  • 보너스: Google 스프레드시트에서 날짜 및 타임스탬프 병합

1. Google 스프레드시트에 현재 날짜 자동 입력

TODAY()라는 Google 스프레드시트 날짜 함수를 사용하여 오늘 날짜를 자동으로 입력하는 것으로 시작하겠습니다. 이것은 셀의 오늘 날짜를 반환합니다. 사용 방법은 다음과 같습니다.

1단계: Google 스프레드시트를 열고 셀에 커서를 놓고 아래 함수를 입력합니다.

=TODAY()

2단계: 이제 Enter 키를 누르십시오.

자. 이제 Google 스프레드시트의 셀에서 오늘 날짜를 볼 수 있습니다.

또는 ' Ctrl +; 키 조합을 사용할 수도 있습니다. '를 Google 스프레드시트의 셀에 입력하면 현재 날짜가 반환됩니다.

Next, let us look at how we can automatically enter dates in chronological order in Google Sheets.

2. How to Autofill Dates in Google Sheets

Autofill is a feature on Google Sheets that helps you fill the cells in series with data based on values present in a few cells. For example, if I enter a date in Cell A1, I can fill the entire column A with dates, since Google Sheets recognizes that there’s a date in A1 and when prompted to autofill the rest of the column, it fills it with increasing order of dates.

However in case, you want to check the date and time format before you enter a date, here’s how to do it.

We can autofill days, weeks, and months in Google Sheets. Let’s see how we can do that.

1. Autofill Days in a Column in Google Sheets

Step 1: Open Google Sheets and enter a date in a cell.

Step 2: Click and hold on the bottom right corner of the cell and drag it down to the cell you want to autofill dates for.

As you can see, the dates are auto-filled for all the selected cells in a column in the same format.

 

That is how you can autofill consecutive days in Google Sheets. Next, let us see how to autofill dates that are a week apart.

2. Autofill Weeks in a Column on Google Sheets

Here’s how you can autofill dates in a column in Google Sheets that are a week apart.

Step 1: Open a Google Sheet and enter two dates that are a week apart in the consecutive cells.

Step 2: Select and highlight the cells.

Step 3: Click on the bottom right corner of the highlighted cells, and drag it until the cell you want to autofill.

 

보시다시피 열은 일주일 간격의 날짜로 채워져 있습니다.

마찬가지로 한 달 간격인 열의 날짜를 자동으로 채울 수 있습니다. 방법은 다음과 같습니다.

3. Google 스프레드시트의 열에 월 자동 채우기

1단계: Google 스프레드시트를 열고 한 달 간격인 두 날짜를 열의 연속 셀에 입력합니다.

2단계: 셀을 선택하고 강조 표시합니다.

 

3단계: 강조 표시된 셀의 오른쪽 하단을 클릭하고 자동 채우기를 원하는 셀까지 드래그합니다.

열은 몇 개월 간격의 날짜로 자동 채워집니다.

다음으로 Google 스프레드시트에서 평일만 입력하는 방법에 대해 알아보겠습니다.

3. Google 스프레드시트에서만 평일 자동완성

If you are using Google Sheets at work, you seldom need to enter data for a non-working day or a weekend. But in the previous method to autofill dates, weekends were also auto-filled. If you are working on a data-heavy spreadsheet, it is time-consuming to manually delete weekends.

Therefore, you can autofill dates excluding the weekends – Saturdays and Sundays. Here’s how.

Step 1: Open Google Sheets and enter a date in a cell that you want to start with.

Step 2: Enter the formula in the cell below. Make sure you enter the correct column in the formula. (column A in our case)

=WORKDAY.INTL($A$2, row(A1),1)

Step 3: The next cell is automatically filled with the next working day.

Step 4: Click on the bottom right corner of the cell, and drag it down to the cell that you want to fill. The formula governs the pattern, and will only enter working days and exclude Saturdays and Sundays.

As you can see in the image below, the cells contain only working days, and Saturdays and Sundays are excluded.

That is everything you need to know on how to autofill dates in Google Sheets. If you are looking for a way to modify and change the format of dates on Google Sheets, you can take a look at the article we recently published.

Next, let us see how we can merge date and time on Google Sheets. This will be helpful if you have two columns: one for the date and another for the time.

Bonus: Merge Date and Timestamp on Google Sheets

열에 해당하는 날짜 및 시간이 있는 열이 있는 경우 단일 열로 병합하고 중복을 최소화하는 것이 좋습니다. 방법은 다음과 같습니다.

1단계: Google 스프레드시트를 열고 Google 스프레드시트의 날짜 및 시간 기능을 텍스트로 병합하는 데 도움이 되는 아래 수식을 입력합니다.

날짜와 시간에 각각 올바른 셀 위치를 입력했는지 확인하십시오. 우리의 경우 A2와 B2입니다.

=TEXT(A2,"m/dd/yy")&TEXT(B2,"hh:mm:ss")

2단계: 보시다시피 날짜와 시간이 일반 텍스트로 단일 셀에 병합됩니다. 별도의 날짜 및 시간 셀이 여러 개인 경우 병합된 셀을 선택하고 드래그하여 전체 열을 자동으로 채울 수 있습니다.

여기까지가 Google 스프레드시트에서 날짜를 자동 완성하는 방법에 대해 알아야 할 모든 것입니다.

출처: https://www.guidingtech.com

#googlesheets

(Google Sheets) Google 스프레드시트에서 날짜를 자동으로 채우는 3가지 방법
Mélanie  Faria

Mélanie Faria

1679132102

3 maneiras de preencher datas automaticamente no Planilhas Google (Google Sheets)

Tudo o que você precisa saber sobre como preencher datas automaticamente no Planilhas Google (Google Sheets). 3 maneiras de adicionar datas no Planilhas Google, incluindo células de preenchimento automático, usando a função de data, formatando as células ou inserindo o atalho de data. Ilustramos esses métodos usando um navegador da Web em um PC com Windows, mas eles também funcionam no Mac, iPhone e Android.

Como adicionar datas automaticamente no Planilhas Google (Google Sheets)

Não é preciso se preocupar com as caras taxas de assinatura do Office 365 da Microsoft, já que o Google oferece uma alternativa gratuita, o Planilhas Google. Assim como o Excel, existem muitos recursos esperando para serem descobertos. Quando estávamos compilando um relatório diário, encontramos várias maneiras de adicionar datas automaticamente em um documento do Planilhas Google.

Existem três maneiras de adicionar datas ao Planilhas Google, incluindo células de preenchimento automático, usando a função de data, formatando as células ou inserindo o atalho de data. Ilustramos esses métodos usando um navegador da Web em um PC com Windows, mas eles também funcionam no Mac, iPhone e Android.

Usando esses métodos, você pode automatizar algumas tarefas repetitivas que envolvem adicionar datas às células e melhorar sua eficiência. Vamos descobrir todos eles.

Dica : os formatos de data e hora dependem da localidade padrão do Planilhas Google. Veja como alterá-lo: abra o Planilhas Google > vá para Arquivo > configurações. Na janela pop-up, vá para a guia Geral > selecione sua região no menu suspenso Localidade.

Índice:

  • Insira automaticamente a data atual no Planilhas Google
  • Como preencher datas automaticamente no Planilhas Google
    • Dias de preenchimento automático em uma coluna no Planilhas Google
    • Semanas de preenchimento automático em uma coluna no Planilhas Google
    • Meses de preenchimento automático em uma coluna no Planilhas Google
  • Preenchimento automático apenas nos dias da semana no Planilhas Google
  • Bônus: mesclar data e carimbo de data/hora no Planilhas Google

1. Insira automaticamente a data atual no Planilhas Google

Vamos começar inserindo automaticamente a data de hoje usando a função de data do Google Sheets chamada TODAY(). Isso retorna a data de hoje em uma célula. Veja como usá-lo.

Etapa 1: abra o Planilhas Google, coloque o cursor em uma célula e digite a função abaixo.

=TODAY()

Passo 2: Agora, aperte a tecla Enter.

Ai está. Agora você pode ver a data de hoje em uma célula no Planilhas Google.

Como alternativa, você também pode usar a combinação de teclas ' Ctrl +; ' em uma célula no Planilhas Google e retornará a data atual.

A seguir, veremos como podemos inserir datas automaticamente em ordem cronológica no Planilhas Google.

2. Como preencher datas automaticamente no Planilhas Google

O preenchimento automático é um recurso do Planilhas Google que ajuda a preencher as células em série com dados baseados em valores presentes em algumas células. Por exemplo, se eu inserir uma data na célula A1, posso preencher toda a coluna A com datas, pois o Planilhas Google reconhece que há uma data na célula A1 e quando solicitado a preencher automaticamente o restante da coluna, ele a preenche com ordem crescente de datas.

No entanto, caso você queira verificar o formato de data e hora antes de inserir uma data, veja como fazê-lo.

Podemos preencher automaticamente dias, semanas e meses no Planilhas Google. Vamos ver como podemos fazer isso.

1. Dias de preenchimento automático em uma coluna no Planilhas Google

Etapa 1: abra o Planilhas Google e insira uma data em uma célula.

Etapa 2: clique e segure no canto inferior direito da célula e arraste-o para baixo até a célula para a qual deseja preencher automaticamente as datas.

Como você pode ver, as datas são preenchidas automaticamente para todas as células selecionadas em uma coluna no mesmo formato.

 

É assim que você pode preencher automaticamente dias consecutivos no Planilhas Google. A seguir, vamos ver como preencher automaticamente as datas com uma semana de intervalo.

2. Semanas de preenchimento automático em uma coluna no Planilhas Google

Veja como você pode preencher automaticamente as datas em uma coluna no Planilhas Google com uma semana de diferença.

Etapa 1: abra uma planilha do Google e insira duas datas com uma semana de intervalo nas células consecutivas.

Passo 2: Selecione e realce as células.

Passo 3: Clique no canto inferior direito das células destacadas e arraste-o até a célula que deseja preencher automaticamente.

 

Como você pode ver, a coluna é preenchida com datas com uma semana de diferença.

Da mesma forma, podemos preencher automaticamente as datas em uma coluna com um mês de diferença. Veja como.

3. Preencher meses automaticamente em uma coluna no Planilhas Google

Etapa 1: abra o Planilhas Google e insira duas datas com um mês de diferença em células consecutivas na coluna.

Passo 2: Selecione e realce as células.

 

Passo 3: Clique no canto inferior direito das células destacadas e arraste-o até a célula que deseja preencher automaticamente.

A coluna é preenchida automaticamente com datas com alguns meses de diferença.

Em seguida, vamos dar uma olhada em como podemos inserir dias da semana apenas no Planilhas Google.

3. Preencher automaticamente os dias da semana apenas no Planilhas Google

Se você estiver usando o Planilhas Google no trabalho , raramente precisará inserir dados para um dia não útil ou um fim de semana. Mas no método anterior para preencher automaticamente as datas, os fins de semana também eram preenchidos automaticamente. Se você estiver trabalhando em uma planilha com muitos dados, é demorado excluir manualmente os fins de semana.

Portanto, você pode preencher automaticamente as datas excluindo os finais de semana – sábados e domingos. Veja como.

Etapa 1: abra o Planilhas Google e insira uma data em uma célula com a qual deseja começar.

Etapa 2: insira a fórmula na célula abaixo. Certifique-se de inserir a coluna correta na fórmula. (coluna A no nosso caso)

=WORKDAY.INTL($A$2, row(A1),1)

Passo 3: A próxima célula é preenchida automaticamente com o próximo dia útil.

Etapa 4: clique no canto inferior direito da célula e arraste-a para baixo até a célula que deseja preencher. A fórmula rege o padrão e só entrará em dias úteis e excluirá sábados e domingos.

Como você pode ver na imagem abaixo, as células contêm apenas dias úteis, e sábados e domingos são excluídos.

Isso é tudo o que você precisa saber sobre como preencher datas automaticamente no Planilhas Google. Se você está procurando uma maneira de modificar e alterar o formato das datas no Google Sheets, pode dar uma olhada no artigo que publicamos recentemente.

A seguir, vamos ver como podemos mesclar data e hora no Planilhas Google. Isso será útil se você tiver duas colunas: uma para a data e outra para a hora.

Bônus: mesclar data e carimbo de data/hora no Planilhas Google

Quando você tem uma coluna com uma data e uma hora que correspondem a ela em uma coluna, faz sentido mesclá-las em uma única coluna e minimizar a redundância. Veja como fazer isso.

Etapa 1: abra o Planilhas Google e insira a fórmula abaixo que ajuda a mesclar as funções de data e hora no Planilhas Google em um texto.

Certifique-se de inserir os locais de células corretos para a data e hora, respectivamente. No nosso caso, é A2 e B2.

=TEXT(A2,"m/dd/yy")&TEXT(B2,"hh:mm:ss")

Etapa 2: como você pode ver, a data e a hora são mescladas em uma única célula como texto simples. Você pode selecionar e arrastar as células mescladas para preencher automaticamente a coluna inteira se tiver várias células de data e hora separadas.

Pronto, isso é tudo o que você precisa saber sobre como preencher datas automaticamente no Planilhas Google.

Fonte: https://www.guidingtech.com

#googlesheets

3 maneiras de preencher datas automaticamente no Planilhas Google (Google Sheets)
Hoang  Ha

Hoang Ha

1679128380

3 cách để tự động điền ngày tháng trên Google Sheets

Mọi thứ bạn cần biết về cách tự động điền ngày trên Google Sheets. Có 3 cách để thêm ngày trên Google Sheets, bao gồm tự động điền ô, sử dụng hàm ngày, định dạng ô hoặc chèn phím tắt ngày. Chúng tôi đã minh họa các phương pháp này bằng trình duyệt web trên PC Windows, nhưng chúng cũng hoạt động trên Mac, iPhone và Android.

Cách tự động thêm ngày vào Google Sheets

Người ta không cần phải lo lắng về phí thuê bao đắt đỏ của Microsoft đối với Office 365, vì Google cung cấp một giải pháp thay thế miễn phí, Google Trang tính. Cũng giống như Excel, có rất nhiều tính năng đang chờ bạn khám phá. Khi soạn báo cáo hàng ngày, chúng tôi đã tìm thấy nhiều cách để tự động thêm ngày vào tài liệu Google Trang tính.

Có ba cách để thêm ngày vào Google Trang tính, bao gồm các ô tự động điền, sử dụng hàm ngày, định dạng ô hoặc chèn lối tắt ngày. Chúng tôi đã minh họa các phương pháp này bằng trình duyệt web trên PC Windows, nhưng chúng cũng hoạt động trên Mac, iPhone và Android.

Sử dụng các phương pháp này, bạn có thể tự động hóa một số tác vụ lặp đi lặp lại liên quan đến việc thêm ngày vào ô và cải thiện hiệu quả của mình. Hãy khám phá tất cả chúng.

Mẹo : Định dạng ngày và giờ phụ thuộc vào ngôn ngữ mặc định của Google Trang tính của bạn. Dưới đây là cách thay đổi: mở Google Trang tính > chuyển đến Tệp > cài đặt. Trong cửa sổ bật lên, chuyển đến tab Chung > chọn khu vực của bạn trong menu thả xuống Ngôn ngữ.

Mục lục:

  • Tự động nhập ngày hiện tại trên Google Sheets
  • Cách tự động điền ngày tháng trong Google Sheets
    • Tự động điền ngày vào một cột trong Google Trang tính
    • Tự động điền số tuần trong một cột trên Google Trang tính
    • Tự động điền tháng vào một cột trên Google Trang tính
  • Tự động điền các ngày trong tuần Chỉ trên Google Trang tính
  • Phần thưởng: Hợp nhất ngày và dấu thời gian trên Google Trang tính

1. Tự động nhập ngày hiện tại trên Google Sheets

Hãy bắt đầu bằng cách tự động nhập ngày hôm nay bằng cách sử dụng hàm ngày của Google Trang tính có tên là TODAY(). Điều này trả về ngày hôm nay trong một ô. Đây là cách sử dụng nó.

Bước 1: Mở Google Trang tính, đặt con trỏ vào một ô và nhập hàm bên dưới.

=TODAY()

Bước 2: Bây giờ, nhấn phím enter.

Của bạn đi. Giờ đây, bạn có thể xem ngày hôm nay trong một ô trên Google Trang tính.

Ngoài ra, bạn cũng có thể sử dụng tổ hợp phím “ Ctrl +; ' trên một ô trong Google Trang tính và nó sẽ trả về ngày hiện tại.

Tiếp theo, chúng ta hãy xem cách chúng ta có thể tự động nhập ngày theo thứ tự thời gian trong Google Trang tính.

2. Cách tự động điền ngày tháng trong Google Sheets

Tự động điền là một tính năng trên Google Trang tính giúp bạn điền dữ liệu vào các ô theo chuỗi dựa trên các giá trị có trong một vài ô. Ví dụ: nếu tôi nhập một ngày vào Ô A1, tôi có thể điền ngày vào toàn bộ cột A, vì Google Trang tính nhận ra rằng có một ngày trong A1 và khi được nhắc tự động điền vào phần còn lại của cột, nó sẽ điền vào theo thứ tự tăng dần của ngày.

Tuy nhiên, trong trường hợp, bạn muốn kiểm tra định dạng ngày và giờ trước khi nhập ngày, đây là cách thực hiện.

Chúng tôi có thể tự động điền ngày, tuần và tháng trong Google Trang tính. Hãy xem làm thế nào chúng ta có thể làm điều đó.

1. Tự động điền ngày vào một cột trong Google Trang tính

Bước 1: Mở Google Sheets và nhập ngày vào một ô.

Bước 2: Nhấp và giữ vào góc dưới cùng bên phải của ô và kéo nó xuống ô bạn muốn tự động điền ngày.

Như bạn có thể thấy, ngày tháng được tự động điền cho tất cả các ô đã chọn trong một cột có cùng định dạng.

 

Đó là cách bạn có thể tự động điền các ngày liên tiếp trong Google Trang tính. Tiếp theo, chúng ta hãy xem cách tự động điền các ngày cách nhau một tuần.

2. Tự động điền số tuần vào một cột trên Google Trang tính

Đây là cách bạn có thể tự động điền ngày vào một cột trong Google Trang tính cách nhau một tuần.

Bước 1: Mở Google Trang tính và nhập hai ngày cách nhau một tuần vào các ô liên tiếp.

Bước 2: Chọn và bôi đen các ô.

Bước 3: Nhấp vào góc dưới cùng bên phải của các ô được đánh dấu và kéo nó cho đến ô bạn muốn tự động điền.

 

Như bạn có thể thấy, cột chứa đầy các ngày cách nhau một tuần.

Tương tự, chúng ta có thể tự động điền ngày vào cột cách nhau một tháng. Đây là cách.

3. Tự động điền tháng vào một cột trên Google Sheets

Bước 1: Mở Google Trang tính và nhập hai ngày cách nhau một tháng vào các ô liên tiếp trong cột.

Bước 2: Chọn và bôi đen các ô.

 

Bước 3: Nhấp vào góc dưới cùng bên phải của các ô được đánh dấu và kéo nó cho đến ô bạn muốn tự động điền.

Cột được tự động điền với các ngày cách nhau vài tháng.

Tiếp theo, chúng ta hãy xem cách chúng ta chỉ có thể nhập các ngày trong tuần trên Google Trang tính.

3. Tự động điền các ngày trong tuần Chỉ trên Google Trang tính

Nếu bạn đang sử dụng Google Trang tính tại nơi làm việc , bạn hiếm khi cần nhập dữ liệu vào ngày không làm việc hoặc ngày cuối tuần. Nhưng trong phương pháp tự động điền ngày trước đây, các ngày cuối tuần cũng được tự động điền. Nếu bạn đang làm việc trên một bảng tính nhiều dữ liệu, việc xóa các ngày cuối tuần theo cách thủ công sẽ rất tốn thời gian.

Do đó, bạn có thể tự động điền ngày trừ ngày cuối tuần – Thứ Bảy và Chủ Nhật. Đây là cách.

Bước 1: Mở Google Trang tính và nhập ngày vào ô mà bạn muốn bắt đầu.

Bước 2: Nhập công thức vào ô bên dưới. Đảm bảo bạn nhập đúng cột trong công thức. (cột A trong trường hợp của chúng tôi)

=WORKDAY.INTL($A$2, row(A1),1)

Bước 3: Ô tiếp theo sẽ tự động được điền ngày làm việc tiếp theo.

Bước 4: Nhấp vào góc dưới cùng bên phải của ô và kéo nó xuống ô mà bạn muốn điền. Công thức chi phối mẫu và sẽ chỉ nhập ngày làm việc và loại trừ Thứ Bảy và Chủ Nhật.

Như bạn có thể thấy trong hình bên dưới, các ô chỉ chứa ngày làm việc và Thứ Bảy và Chủ nhật bị loại trừ.

Đó là tất cả những gì bạn cần biết về cách tự động điền ngày tháng trong Google Trang tính. Nếu đang tìm cách chỉnh sửa, thay đổi định dạng ngày tháng trên Google Sheets, bạn có thể xem qua bài viết mà chúng tôi mới đăng tải.

Tiếp theo, hãy xem cách hợp nhất ngày và giờ trên Google Trang tính. Điều này sẽ hữu ích nếu bạn có hai cột: một cho ngày và một cho thời gian.

Phần thưởng: Hợp nhất ngày và dấu thời gian trên Google Trang tính

Khi bạn có một cột có ngày và giờ tương ứng với nó trong một cột, bạn nên hợp nhất chúng thành một cột duy nhất và giảm thiểu sự dư thừa. Đây là cách để làm điều đó.

Bước 1: Mở Google Sheets và nhập công thức dưới đây giúp gộp hàm ngày giờ trên Google Sheets vào văn bản.

Đảm bảo bạn nhập đúng vị trí ô cho ngày và giờ tương ứng. Trong trường hợp của chúng tôi, đó là A2 và B2.

=TEXT(A2,"m/dd/yy")&TEXT(B2,"hh:mm:ss")

Bước 2: Như bạn có thể thấy, ngày và giờ được hợp nhất thành một ô dưới dạng văn bản thuần túy. Bạn có thể chọn và kéo các ô đã hợp nhất để tự động điền toàn bộ cột nếu bạn có nhiều ô ngày và giờ riêng biệt.

Vậy là xong, đó là mọi thứ bạn cần biết về cách tự động điền ngày trên Google Trang tính.

Nguồn: https://www.guidingtech.com

#googlesheets

3 cách để tự động điền ngày tháng trên Google Sheets
Enoch Barcenas

Enoch Barcenas

1679123668

3 Ways to Autofill Dates on Google Sheets

Everything you need to know on how to autofill dates on Google Sheets. 3 ways to add dates on Google Sheets, these include auto-filling cells, using the date function, formatting the cells, or inserting the date shortcut. We have illustrated these methods using a web browser on a Windows PC, but they work on Mac, iPhone, and Android as well.

How to Add Dates Automatically in Google Sheets

One doesn’t need to worry about Microsoft’s expensive subscription charges for Office 365, since Google offers a free alternative, Google Sheets. Just like Excel, there are tons of features waiting to be discovered. When we were compiling a daily report, we found numerous ways to add dates automatically on a Google Sheets document.

There are three ways to add dates to Google Sheets, these include auto-filling cells, using the date function, formatting the cells, or inserting the date shortcut. We have illustrated these methods using a web browser on a Windows PC, but they work on Mac, iPhone, and Android as well.

Using these methods, you can automate a few repetitive tasks that involve adding dates to cells and improve your efficiency. Let’s discover them all.

Tip: Date and time formats depend on the default locale of your Google Sheets. Here’s how to change it: open Google Sheets > go to File > settings. In the pop-up window, go to the General tab > select your region under the Locale drop-down menu.

Table of contents:

  • Automatically Enter the Current Date on Google Sheets
  • How to Autofill Dates in Google Sheets
    • Autofill Days in a Column in Google Sheets
    • Autofill Weeks in a Column on Google Sheets
    • Autofill Months in a Column on Google Sheets
  • Autofill Weekdays Only on Google Sheets
  • Bonus: Merge Date and Timestamp on Google Sheets

1. Automatically Enter the Current Date on Google Sheets

Let’s start by automatically entering today’s date using the Google Sheets date function called TODAY(). This returns today’s date in a cell. Here’s how to use it.

Step 1: Open Google Sheets, place your cursor in a cell, and type the below function.

=TODAY()

Step 2: Now, hit the enter key.

There you go. You can now see today’s date in a cell on Google Sheets.

Alternatively, you can also use the key combination ‘Ctrl +;‘ on a cell in Google Sheets and it will return the current date.

Next, let us look at how we can automatically enter dates in chronological order in Google Sheets.

2. How to Autofill Dates in Google Sheets

Autofill is a feature on Google Sheets that helps you fill the cells in series with data based on values present in a few cells. For example, if I enter a date in Cell A1, I can fill the entire column A with dates, since Google Sheets recognizes that there’s a date in A1 and when prompted to autofill the rest of the column, it fills it with increasing order of dates.

However in case, you want to check the date and time format before you enter a date, here’s how to do it.

We can autofill days, weeks, and months in Google Sheets. Let’s see how we can do that.

1. Autofill Days in a Column in Google Sheets

Step 1: Open Google Sheets and enter a date in a cell.

Step 2: Click and hold on the bottom right corner of the cell and drag it down to the cell you want to autofill dates for.

As you can see, the dates are auto-filled for all the selected cells in a column in the same format.

 

That is how you can autofill consecutive days in Google Sheets. Next, let us see how to autofill dates that are a week apart.

2. Autofill Weeks in a Column on Google Sheets

Here’s how you can autofill dates in a column in Google Sheets that are a week apart.

Step 1: Open a Google Sheet and enter two dates that are a week apart in the consecutive cells.

Step 2: Select and highlight the cells.

Step 3: Click on the bottom right corner of the highlighted cells, and drag it until the cell you want to autofill.

 

As you can see, the column is filled with dates that are a week apart.

Similarly, we can autofill dates in a column that are a month apart. Here’s how.

3. Autofill Months in a Column on Google Sheets

Step 1: Open Google Sheets and enter two dates that are a month apart in consecutive cells in the column.

Step 2: Select and highlight the cells.

 

Step 3: Click on the bottom right corner of the highlighted cells, and drag it until the cell you want to autofill.

The column is auto-filled with dates that are a few months apart.

Next, let us take a look at how we can enter weekdays only on Google Sheets.

3. Autofill Weekdays Only on Google Sheets

If you are using Google Sheets at work, you seldom need to enter data for a non-working day or a weekend. But in the previous method to autofill dates, weekends were also auto-filled. If you are working on a data-heavy spreadsheet, it is time-consuming to manually delete weekends.

Therefore, you can autofill dates excluding the weekends – Saturdays and Sundays. Here’s how.

Step 1: Open Google Sheets and enter a date in a cell that you want to start with.

Step 2: Enter the formula in the cell below. Make sure you enter the correct column in the formula. (column A in our case)

=WORKDAY.INTL($A$2, row(A1),1)

Step 3: The next cell is automatically filled with the next working day.

Step 4: Click on the bottom right corner of the cell, and drag it down to the cell that you want to fill. The formula governs the pattern, and will only enter working days and exclude Saturdays and Sundays.

As you can see in the image below, the cells contain only working days, and Saturdays and Sundays are excluded.

That is everything you need to know on how to autofill dates in Google Sheets. If you are looking for a way to modify and change the format of dates on Google Sheets, you can take a look at the article we recently published.

Next, let us see how we can merge date and time on Google Sheets. This will be helpful if you have two columns: one for the date and another for the time.

Bonus: Merge Date and Timestamp on Google Sheets

When you have a column with a date and a time that corresponds to it in a column, it makes sense to merge them into a single column and minimize the redundancy. Here’s how to do it.

Step 1: Open Google Sheets and enter the below formula that helps you merge date and time functions on Google Sheets into a text.

Make sure you enter the right cell locations for the date and time respectively. In our case, it is A2 and B2.

=TEXT(A2,"m/dd/yy")&TEXT(B2,"hh:mm:ss")

Step 2: As you can see, the date and time are merged into a single cell as plain text. You can select and drag the merged cells to autofill the entire column if you have multiple separate date and time cells.

There you go, that is everything you need to know on how to autofill dates on Google Sheets.

Source: https://www.guidingtech.com

#googlesheets

3 Ways to Autofill Dates on Google Sheets
Duong Tran

Duong Tran

1679090760

Trực quan hóa Dữ liệu (Data Visualization) trong Google Sheets

Trong hướng dẫn này về trực quan hóa dữ liệu (Data Visualization)  trong Google Sheets, bạn sẽ tìm hiểu cách tạo biểu đồ thanh và tròn trong Google Sheets, cách lọc dữ liệu để sử dụng trong biểu đồ và cuối cùng sẽ chỉ cho bạn cách xuất bản biểu đồ lên web miễn phí.

Trực quan hóa dữ liệu trong Google Trang tính cho người mới bắt đầu

Bảng tính là tài nguyên OG để trực quan hóa dữ liệu bằng biểu đồ và đồ thị... tôi cho rằng trừ khi bạn đếm bảng đen.

Bảng tính được xây dựng để xử lý hàng tấn dữ liệu. Và bằng cách sử dụng một số công cụ tích hợp đơn giản, bạn có thể thu thập thông tin chuyên sâu có giá trị từ khối dữ liệu lớn.

Và

gif của đồ họa "OG"

Khi xử lý các tập hợp dữ liệu nhỏ, bạn thường có thể tìm thấy câu trả lời và thông tin chi tiết trong nháy mắt. Nhưng khi bảng tính của bạn bắt đầu đạt tới hàng trăm và hàng nghìn hàng, biểu đồ có thể giúp cô đọng tất cả những con số đó thành những mẩu thông tin có thể sử dụng được...đặc biệt nếu bạn đang trình bày cho những người không giỏi về số!

Tổng quan về video

Nói về hình ảnh:

  • Đây là liên kết đến bảng tính demo với tất cả dữ liệu và biểu đồ của chúng tôi.
  • Và đây là video hướng dẫn về mọi thứ được trình bày bên dưới:

Cách lấy dữ liệu

Kaggle là một nguồn tài nguyên tuyệt vời để tìm các tập dữ liệu thú vị. Chúng tôi đang sử dụng bộ dữ liệu bán hàng trò chơi điện tử này. Để nhập nó vào Google Sheet, tất cả những gì chúng ta cần làm là tạo một Google Sheet mới bằng cách nhập sheets.newvào thanh địa chỉ của trình duyệt.

hình ảnh-140

ảnh chụp màn hình của thanh địa chỉ web

Sau đó, chọn File, Importtừ menu.

hinh-141

ảnh chụp màn hình menu tệp trong trang tính google

Bây giờ bạn có thể tải lên tệp .csv mà bạn đã tải xuống từ Kaggle.

hinh-142

Ảnh chụp màn hình các tùy chọn nhập trong google sheet

Điều này sẽ cung cấp cho bạn một số tùy chọn nhập. Nếu bạn đang theo dõi và sử dụng một bảng tính mới, hoàn toàn trống, chỉ cần chọn Replace spreadsheetvà nó sẽ tự động kéo mọi thứ vào.

Nếu dữ liệu được làm sạch tốt và bộ dữ liệu Kaggle thường là như vậy, thì bạn có thể để dấu tách thành Detect automatically.

hinh-143

ảnh chụp màn hình tùy chọn tệp nhập

Điều này sẽ cung cấp cho chúng tôi một bảng tính đáng yêu hơn 16.000 hàng chứa đầy dữ liệu trò chơi điện tử. 😁

hinh-145

ảnh chụp màn hình tập dữ liệu bảng tính

Cách Chèn Biểu đồ

Từ đây, chúng ta cần chọn Insert - Charttừ thanh công cụ.

hình ảnh-146

ảnh chụp màn hình chèn biểu đồ vào google sheet

Chúng ta sẽ đối mặt với một biểu đồ trống ở giữa màn hình và trình chỉnh sửa Biểu đồ ở thanh bên phải.

hinh-147

ảnh chụp màn hình của trình chỉnh sửa biểu đồ

Bây giờ, hãy đảm bảo rằng chúng tôi đang tham chiếu phạm vi dữ liệu chính xác. Google Trang tính khá thông minh và nếu bạn nhấp vào biểu tượng biểu đồ nhỏ ở bên phải biểu mẫu phạm vi dữ liệu, nó sẽ đề xuất một số phạm vi để sử dụng. Trong trường hợp của chúng tôi, phạm vi chúng tôi cần được đề xuất: A1:K16600.

phạm vi lựa chọn

Chúng tôi sẽ tìm doanh số bán hàng theo thể loại , vì vậy, tiếp theo, hãy chọn Genrecho trục x của chúng tôi:

hình ảnh-148

ảnh chụp màn hình của các tùy chọn biểu đồ 

Đôi khi Google Trang tính sẽ không thông minh lắm. Nếu có rất nhiều sê-ri được liệt kê và một biểu đồ thú vị, bạn chỉ cần xóa tất cả sê-ri và thêm thủ công những gì bạn cần:

hình ảnh-149

ảnh chụp màn hình của chuỗi biểu đồ

Bây giờ, hãy nhấp vào Aggregatenút để nhóm tất cả dữ liệu bán hàng cho từng thể loại và chọn NA-Saleslàm Sê-ri để hiển thị doanh số bán hàng triệu đô la trên trục y.

hình ảnh-150

ảnh chụp màn hình của các tùy chọn chuỗi biểu đồ

Và Voila! Chúng tôi đã có một biểu đồ thanh cột vấn đề tiêu chuẩn. Nhưng chúng ta có thể làm tốt hơn. Ở trên cùng bên phải của trình chỉnh sửa biểu đồ, chúng ta có thể Customizethêm biểu đồ bằng cách thay đổi hình thức, phông chữ, đường lưới và tiêu đề.

hinh-151

Ảnh chụp màn hình trình chỉnh sửa biểu đồ

Cách tùy chỉnh biểu đồ

Từ tab tùy chỉnh, chúng tôi có rất nhiều tùy chọn. Chúng ta có thể tạo kiểu cho biểu đồ của mình bằng cách thay đổi màu nền và phông chữ. Chúng tôi có thể làm cho nó ở dạng 3D và chúng tôi có thể chọn có tối đa hóa biểu đồ trong cửa sổ biểu đồ hay không.

hình ảnh-152

Ảnh chụp màn hình kiểu biểu đồ

Sau đó, chúng tôi có thể thêm tiêu đề biểu đồ, phụ đề và tiêu đề trục, đồng thời sửa đổi màu sắc và phông chữ.

hinh-153

Ảnh chụp màn hình tiêu đề biểu đồ

Sau đó, chúng ta có thể chỉnh sửa riêng lẻ từng tệp Series. Trong ví dụ của chúng tôi, chúng tôi chỉ sử dụng một chuỗi, nhưng nếu có nhiều chuỗi hơn, bạn có thể sửa đổi từng kiểu một cách độc lập.

hình ảnh-154

ảnh chụp màn hình của các tùy chọn tùy chỉnh loạt

Nếu bạn có chú thích, bạn có thể sửa đổi các tùy chọn đó trong cửa sổ thả xuống tiếp theo:

hinh-155

Sau đó, có các tùy chọn tùy chỉnh cho cả trục ngang và trục dọc.

hình ảnh-156

ảnh chụp màn hình của các tùy chọn trục

Và khối tùy chọn tùy chỉnh cuối cùng dành cho đường lưới và dấu tích. Chúng có thể được bật và tắt, đồng thời chúng ta có thể thay đổi màu sắc và tần số của lưới và các đường đánh dấu.

hinh-157

Sau khi hoàn thành, bây giờ chúng ta có một biểu đồ cách điệu hơn:

hình ảnh-158

Ảnh chụp màn hình biểu đồ cột trong Google Trang tính

Nếu chúng ta muốn di chuyển biểu đồ này xung quanh, chúng ta có thể kéo nó qua bảng tính hiện tại. Hoặc, chúng ta có thể đặt nó trên trang tính riêng của nó bằng cách nhấp vào ba dấu chấm ở trên cùng bên phải và chọn Move to own sheet.

hình ảnh-159

Cách xuất bản biểu đồ

Đây là một phần thưởng bổ sung: bạn thực sự có thể xuất bản biểu đồ (hoặc toàn bộ trang tính) lên web. Chọn Publish Charttùy chọn từ danh sách thả xuống trên biểu đồ hiển thị ở trên hoặc chọn File, Share, Publish to web:

Ảnh chụp màn hình-2023-03-16-at-10.46.55-AM

ảnh chụp màn hình của tùy chọn xuất bản lên web

Từ đây, bạn sẽ có thể chọn những gì bạn muốn xuất bản và cách bạn muốn nó hiển thị. Đối với ví dụ này, chúng tôi sẽ chọn Sales by Platformbiểu đồ được chia sẻ dưới dạng biểu đồ tương tác.

Ảnh chụp màn hình-2023-03-16-at-10.49.29-AM

Ảnh chụp màn hình các tùy chọn xuất bản trong google sheet

Điều này sẽ tạo ra một liên kết có thể chia sẻ tới biểu đồ. Có thể mất vài giây để tải, nhưng sau khi tải xong, bạn sẽ có một biểu đồ đẹp để dễ dàng chia sẻ có tính tương tác. Khi bạn di chuột qua các lát bánh, nó sẽ hiển thị phần trăm doanh thu của lát bánh.

Ảnh chụp màn hình-2023-03-16-at-10.52.14-AM

Ảnh chụp màn hình của một biểu đồ đã xuất bản

Đây là liên kết đến biểu đồ mà chúng tôi vừa thực hiện.

Phần kết luận

Cảm ơn vì đã đọc! Tôi hy vọng rằng bạn đã học được điều gì đó trong hướng dẫn dành cho người mới bắt đầu này về trực quan hóa dữ liệu trong Google Trang tính.

Bạn thực sự có thể làm được rất nhiều việc bằng cách sử dụng các biểu đồ tích hợp cơ bản có sẵn trong Google Trang tính cũng như Microsoft Excel. Biểu đồ vẫn là một cách cực kỳ hữu ích để diễn giải các tập dữ liệu lớn.

Có một cái tuyệt vời!

Nguồn: https://www.freecodecamp.org

#datavisualization #googlesheets

Trực quan hóa Dữ liệu (Data Visualization) trong Google Sheets
Archie  Clayton

Archie Clayton

1679043321

Google Sheets with Data Visualization

In this tutorial on data visualization in Google Sheets you will learn how to create bar and pie charts in Google Sheets, how to filter data for use in the charts and towards the end show you how to publish the charts to the web for free.

Data Visualization in Google Sheets for Beginners

Spreadsheets are the OG resource for visualizing data with charts and graphs...unless you count chalkboards, I suppose.

Spreadsheets are built to churn through tons of data. And by using a few simple built-in tools, you can glean valuable insights from large chunks of data.

og

gif of "OG" graphic

When dealing with small sets of data, you can often find answers and insights at a glance. But when your spreadsheets begin to reach into the hundreds and thousands of rows, charts can help condense all those numbers down to useable pieces of information...especially if you're presenting to people who aren't good with numbers!

Video Overview

Speaking of visuals:

  • Here's a link to the demo spreadsheet with all our data and charts.
  • And here's the video walkthrough of everything covered below:

How to Get the Data

Kaggle is a wonderful resource to find interesting data sets. We're using this video game sales dataset. To import it into a Google Sheet, all that we need to do is create a new Google Sheet by typing sheets.new in the address bar of our browser.

image-140

screenshot of web address bar

Then, select File, Import from the menu.

image-141

screenshot of file menu in google sheets

You can now upload the .csv file you downloaded from Kaggle.

image-142

Screenshot of importing options in google sheets

This will give you several import options. If you're following along and using a completely blank, new spreadsheet, simply select Replace spreadsheet and it will pull everything in automatically.

If the data is cleaned well, and Kaggle datasets typically are, you can leave the separator to Detect automatically.

image-143

screenshot of import file options

This will give us a lovely 16,000+ row spreadsheet full of video game data. 😁

image-145

screenshot of spreadsheet dataset

How to Insert Charts

From here, we need to select Insert - Chart from the toolbar.

image-146

screenshot of insert chart in google sheets

We'll be confronted with a blank chart in the middle of the screen and a Chart editor in the right sidebar.

image-147

screenshot of chart editor

Now let's make sure we're referencing the correct data range. Google Sheets is pretty smart, and if you click the little graph icon to the right of the data range form, it will suggest some ranges to use. In our case, the range we need is suggested: A1:K16600.

selectrange

We're going to find the sales by genre, so next let's select Genre for our x-axis:

image-148

screenshot of chart options 

Sometimes Google Sheets will be not-so-smart. If there are a ton of series listed and a funky graph, you can simply remove all the series and manually add what you need:

image-149

screenshot of chart series

Now click the Aggregate button to group all the sales data for each genre, and select NA-Sales as the Series to display the sales in millions of dollars on the y-axis.

image-150

screenshot of chart series options

And voilà! We've got a standard issue column bar chart. But we can do better. At the top right of our chart editor, we can Customize the chart further by changing the appearance, font, gridlines and titles.

image-151

chart editor screenshot

How to Customize the Chart

From the customization tab, we have a lot of options. We can style our chart by changing the background color and font. We can make it 3D, and we can choose whether or not to maximize the chart in the chart window.

image-152

Chart style screenshot

We can then add chart titles, subtitles and axis titles and also modify the color and fonts.

image-153

Chart titles screenshot

Then, we can individually edit each Series. In our example we're only using one series, but if there were more, you could modify each of their styles independently.

image-154

screenshot of series customization options

If you have a legend, you can modify those options in the next dropdown window:

image-155

Then there are customization options for both the horizontal and vertical axes.

image-156

screenshot of axes options

And the last block of customization options is for gridlines and tick marks. These can be toggled on and off, and we can change the color and frequency of the grid and tick lines.

image-157

Once we're done, we now have a more stylized chart:

image-158

Screenshot of column chart in Google Sheets

If we'd like to move this chart around, we can drag it throughout the current spreadsheet. Or, we can put it on its own dedicated sheet by clicking the three dots in the top right and selecting Move to own sheet.

image-159

How to Publish the Chart

Here's an added bonus: you can actually publish the chart (or the whole worksheet) to the web. Select the Publish Chart option from the dropdown on the chart shown above, or select File, Share, Publish to web:

Screenshot-2023-03-16-at-10.46.55-AM

screenshot of publish to web options

From here, you'll get to select what you wish to publish and how you want it displayed. For this example, we'll select the Sales by Platform chart to be shared as an interactive chart.

Screenshot-2023-03-16-at-10.49.29-AM

Screenshot of publishing options in google sheets

This will generate a shareable link to the chart. It may take a few seconds to load, but once it does, you'll have a nice chart to easily share that is interactive. When you hover over the slices, it will display the percent of sales of the pie slice.

Screenshot-2023-03-16-at-10.52.14-AM

Screenshot of a published chart

Here's the link to the chart that we just made.

Conclusion

Thanks for reading! I hope that you learned something in this beginners tutorial on data visualization in Google Sheets.

You can really do a whole lot using the basic built-in charts available in Google Sheets as well as Microsoft Excel. Charts remain an extremely helpful way to interpret large data sets.

Have a great one!

Source: https://www.freecodecamp.org

#datavisualization #googlesheets

Google Sheets with Data Visualization
Sean Robertson

Sean Robertson

1678780413

How to Create Custom Named Functions in Google Sheets

In this tutorial, you will learn how to create and use your own custom function in Google Sheets. Create your own custom named function in Google Sheets

There are 513 built-in functions in Google Sheets at the time of this writing. But what if you needed a custom function that wasn't included?

In this tutorial, I'll show you how to create and use your own custom function in Google Sheets.

Why would you need a custom function? There could be many reasons. It could minimize typing if you have a lot of instances where you need a few things calculated. It can tidy up an otherwise messy arrangement of manually typed formulas. You may just want to flex your spreadsheet muscles.

custom

gif of woman saying "this is custom"

I'll walk through a simple example below where we find the percent change between two numbers. I've written extensively about 5 ways to do this particular exercise in another post here.

Percent Change Example

First, here's a video walkthrough of creating custom named functions if you'd like to see a live demonstration.

Here's the demo spreadsheet.

 

To find the percent change between two numbers, we need to make a simple calculation by dividing the difference between them by the first number.

If we have the following table of sales data in columns E, F and G, we can find the percent change between the years 1 and 2 by manually writing the formula (F7-E7)/E7. And in the same way for years 2 to 3 by writing (G7-F7)/F7.

year 1year 2year 3
$180,000.00$200,088.00$340,000.00
$180,000.00$200,088.00$340,000.00

This is fine and good. But, Google Sheets allows for custom functions that we can define once and then use without having to manually type as much. For this example, it's quite simple, but for more complex formulas, it can save a lot of time and mistakes.

image-97

Google Sheets Screenshot

How to Create a Custom Named Function

To access named functions, click Data, Named functions from the toolbar.

Screenshot-2023-03-10-at-7.51.03-PM

screenshot of data menu and named functions option

Select Add new function from the bottom:

Screenshot-2023-03-10-at-7.52.24-PM

Screenshot of adding a new function

And from here we can fill in the details of our new function starting with the name and the description:

Screenshot-2023-03-10-at-7.53.03-PM-1

Screenshot of name of named function

Next we have optional argument placeholders. For our function, we need two of these: one for each year.

Then we fill in the actual formula definition. This is where we describe what we need the formula to do. We use the argument placeholders like variables instead of the specific cell references:

Screenshot-2023-03-10-at-7.53.14-PM

screenshot of arguments and formula definition

And in the final menu we can add additional details describing and giving examples of our arguments. This can be as detailed or sparse as need be. In our case, I filled in only the bare minimum:

Screenshot-2023-03-10-at-7.53.34-PM

Screenshot of argument details in custom named function

Check it out! Now we have a working custom named function to find the percent change between two numbers. Instead of having to enter the whole formula, now we just enter the cells for year1 and year2:

Screenshot-2023-03-10-at-8.16.52-PM

Screenshot of custom named function

Summary

The built in functions in Google Sheets can take you far, but if you ever have the need to define a unique function of your own, now you can.

I hope this has been helpful for you!

Have a great one!

Source: https://www.freecodecamp.org

#googlesheets

How to Create Custom Named Functions in Google Sheets