<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Daniel tayari</title>
    <description>The latest articles on DEV Community by Daniel tayari (@daniel_tayari_f6d6adccb69).</description>
    <link>https://dev.to/daniel_tayari_f6d6adccb69</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4081775%2F37a86062-d1b9-4480-bc49-a0391486703d.png</url>
      <title>DEV Community: Daniel tayari</title>
      <link>https://dev.to/daniel_tayari_f6d6adccb69</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/daniel_tayari_f6d6adccb69"/>
    <language>en</language>
    <item>
      <title>Getting Started with Excel for Data Analytics: From Basics to Data cleaning.</title>
      <dc:creator>Daniel tayari</dc:creator>
      <pubDate>Wed, 02 Sep 2026 13:38:39 +0000</pubDate>
      <link>https://dev.to/daniel_tayari_f6d6adccb69/getting-started-with-excel-for-data-analytics-from-basics-to-data-cleaning-28a9</link>
      <guid>https://dev.to/daniel_tayari_f6d6adccb69/getting-started-with-excel-for-data-analytics-from-basics-to-data-cleaning-28a9</guid>
      <description>&lt;h2&gt;
  
  
  1. Introduction
&lt;/h2&gt;

&lt;p&gt;Excel is the post popular data tool that involves entering, validating, cleaning and analysing data&lt;br&gt;
Data cleaning is a very important part of data analysis since it determines the quality of the data. Data cleaning improves accuracy, handles missing data, removes duplicate data and makes data analysis easy.&lt;br&gt;
This article explains the basics of excel and data cleaning.&lt;br&gt;
I will use fictional laboratory dataset for demonstration of basic excel and data cleaning.&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F2bj4kqlqatimgc0n5oms.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F2bj4kqlqatimgc0n5oms.png" alt="fictional lab dataset" width="800" height="500"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  2. Dataset Description
&lt;/h2&gt;

&lt;p&gt;The dataset used here is a fictional laboratory dataset containing approximately 50 lab records and one duplicate record.&lt;br&gt;
The dataset contain the following variables:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;PatientID
&lt;/li&gt;
&lt;li&gt;Age
-gender&lt;/li&gt;
&lt;li&gt;Test&lt;/li&gt;
&lt;li&gt;Results&lt;/li&gt;
&lt;li&gt;Unit&lt;/li&gt;
&lt;li&gt;Test Date&lt;/li&gt;
&lt;li&gt;Facility&lt;/li&gt;
&lt;li&gt;County&lt;/li&gt;
&lt;li&gt;Cost kes&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  3. Understanding Excel
&lt;/h2&gt;

&lt;h2&gt;
  
  
  3.1 Workbook and worksheets
&lt;/h2&gt;

&lt;p&gt;An Excel workbook can contain multiple worksheets. In this article the workbook will contain two sheets , one for the raw data and the other one will be the cleaned data.&lt;/p&gt;

&lt;h2&gt;
  
  
  3.2 Rows, Column and Cells
&lt;/h2&gt;

&lt;p&gt;Excel organizes information using rows and columns.&lt;br&gt;
Each observation occupies a row , while each variable occupies a column .&lt;br&gt;
A cell can be identified using a column letter and row number eg  LAB005 is in cell A6.&lt;/p&gt;

&lt;h2&gt;
  
  
  4. Data quality and Data Cleaning
&lt;/h2&gt;

&lt;p&gt;in the laboratory dataset I provided we will be using there are several deliberate data quality issues that we will use to do data cleaning. &lt;br&gt;
The issues include:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Missing values&lt;/li&gt;
&lt;li&gt;Duplicate records&lt;/li&gt;
&lt;li&gt;Inconsistent gender entries.&lt;/li&gt;
&lt;li&gt;Inconsistent facility names&lt;/li&gt;
&lt;li&gt;Inconsistent county capitalization &lt;/li&gt;
&lt;li&gt;Unrealistic age values &lt;/li&gt;
&lt;li&gt;invalid cost values&lt;/li&gt;
&lt;li&gt;Inconsistent qualitative results &lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  4.1 Identifying missing values
&lt;/h2&gt;

&lt;p&gt;In this section we will identify missing values in the dataset I have provided. I did the following steps to filter for blanks and fix then:&lt;br&gt;
-select the dataset&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;presse &lt;strong&gt;ctrl+shift+L&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;Click the filter arrow on all columns and select &lt;strong&gt;blanks&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;Excel will show only rows where there are missing values.
below are screenshots of how I have identified missing values:
I fixed the mossing vales by inputting some data. 
&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fx18i41556xzhm4hg3p6k.png" alt="Imissing values" width="800" height="500"&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  5. Removing Duplicate Records
&lt;/h2&gt;

&lt;p&gt;Duplicate record in an excel occurs when same observation appears more than once.&lt;br&gt;
The dataset contains an intentionally duplicated lab record. &lt;br&gt;
The following steps identify and remove duplicate records:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Select the whole sheet &lt;/li&gt;
&lt;li&gt;Click on the DATA icon then &lt;em&gt;remove duplicate&lt;/em&gt; &lt;/li&gt;
&lt;li&gt;A window will appear showing column names.
&lt;/li&gt;
&lt;li&gt;you can leave all columns or select some or even one column depends on how you define duplicate. in our case we will leave only patient ID column since it's the only column with duplicate data.&lt;/li&gt;
&lt;li&gt;after selecting the patient ID column, click &lt;strong&gt;OK&lt;/strong&gt;
A Window pop will appear saying&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;"1 duplicate value found and removed;50 unique values remain"&lt;br&gt;
NB: We can identify duplicates before deleting them by clicking:&lt;br&gt;
  Home &amp;gt; conditional formatting &amp;gt; highlight &amp;gt; cells rules &amp;gt; duplicate.&lt;br&gt;
Excel will show duplicate entries, allowing inspecting before deleting them.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fx5k8an5kyicnct9dmitm.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fx5k8an5kyicnct9dmitm.png" alt="identifying duplicate entries" width="800" height="500"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ffqe3uh2woe4jmys0cxs0.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ffqe3uh2woe4jmys0cxs0.png" alt="removing duplicate enties" width="800" height="500"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  6. Standardizing Inconsistent Text Data
&lt;/h2&gt;

&lt;h3&gt;
  
  
  6.1 Gender
&lt;/h3&gt;

&lt;p&gt;The dataset contain variations such as :&lt;br&gt;
Male&lt;br&gt;
 male&lt;br&gt;
Male &lt;br&gt;
Female&lt;br&gt;
female&lt;br&gt;
FEMALE&lt;br&gt;
Although these values represent the same categories, inconsistent formatting can affect analysis.&lt;br&gt;
For example, Excel may treat differently formatted text as separate categories during some analytical operations.&lt;br&gt;
Therefore, the values should be standardized to:&lt;br&gt;
Male&lt;br&gt;
Female&lt;br&gt;
I followed the following steps to standardize:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Selected the gender column.&lt;/li&gt;
&lt;li&gt;Pressed &lt;strong&gt;ctrl+H&lt;/strong&gt; (Find and Replace).&lt;/li&gt;
&lt;li&gt;Replaced all variants by finding and replacing.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fa5k5byagvxd9pbse5w05.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fa5k5byagvxd9pbse5w05.png" width="800" height="500"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Results after standardizing Gender column&lt;/p&gt;

&lt;h3&gt;
  
  
  6.2 Cleaning Facility and County Names
&lt;/h3&gt;

&lt;p&gt;The dataset contains inconsistencies in the &lt;strong&gt;facility &amp;amp; county&lt;/strong&gt; columns. eg &lt;em&gt;kwale, KWALE,Kwale&lt;/em&gt;.&lt;br&gt;
I standardized the county column to &lt;strong&gt;Kwale&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fz7u5yb4pdspi1cta6m9r.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fz7u5yb4pdspi1cta6m9r.png" alt="cleaned facility and county" width="800" height="500"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  6.3 Cleaning Date Data
&lt;/h3&gt;

&lt;p&gt;Dates are very important in excel and data analysis because they analysis to happen in time.&lt;br&gt;
Our dataset contains different date representations. This is how we standardized the dates into consistent date format:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F5iojjlkwtojndlpe6kph.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F5iojjlkwtojndlpe6kph.png" alt="cleaned dates" width="800" height="500"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  7. Conclusion
&lt;/h2&gt;

&lt;p&gt;That is what I learned on the week one of basics of excel and data cleaning. &lt;/p&gt;

</description>
      <category>analytics</category>
      <category>beginners</category>
      <category>datascience</category>
      <category>learning</category>
    </item>
  </channel>
</rss>
