Skip to content
  • YouTube
  • FaceBook
  • Twitter
  • Instagram

Data Analytics Ireland

Data Analytics and Video Tutorials

  • Home
  • Contact
  • About Us
    • Latest
    • Write for us
    • Learn more information about our website
  • Useful Links
  • Glossary
  • All Categories
  • Faq
  • Livestream
  • Toggle search form
  • What is data profiling and its benefits? data profiling
  • How to create a calculated field in Tableau data visualisation
  • Free ways to Extract Data from Files Livestream
  • Create a HTML Table From Python Using Javascript Javascript
  • how to select columns with SQL SQL
  • How to import data into excel Python Tutorial
  • ValueError: Columns must be same length as key exception handling
  • TypeError: cannot unpack non-iterable int object Python

How To Validate Cell Values In Excel

Posted on May 5, 2020January 21, 2023 By admin No Comments on How To Validate Cell Values In Excel

Estimated reading time: 2 minutes

Validating cells in Excel quickly – how to do it easily!
Are you working with large spreadsheets and looking to quickly at data validation exercise to save you time?

The aim would be to run your code and test it against some predefined rules you or your data analyst would have written to make sure it brings back the expected checks.

If you look at the below, this is the final output of this video, highlighting two cells that are over budget based on the companies predefined budget.

data validation example

The structure of this code can be broken down into the following steps:

  • Read in the excel file, see a previous example here How to import data into excel
  •  Run the first function,  checks if the spreadsheet cell value is over or under budget.
  •  Run the second function that takes the value from the first function and applies the colour red to the cell if it is over budget.

 

Finally

You can expand this code to incorporate more functionality, such as:

  • Change the colour of the cells, to have multiple colours returned.
  •  Update the two functions to include more business rules.
  •  You could check if the file is empty before processing as shown here How to check if a file is empty

Please subscribe to our YouTube channel, the button is the right-hand side of the page if you would like to see more like these.

Data Analytics Ireland

Python, Python Tutorial, Python working with excel Tags:Data, Data Analytics, Data Validation, Excel Spreadsheet, Python, Python for data analysis

Post navigation

Previous Post: How to import data into excel
Next Post: Python Tutorial: How to create charts in Excel

Related Posts

  • How To Compare CSV Files for Differences CSV
  • How to count the no of rows and columns in a CSV file CSV
  • How To Run Python Validation From Javascript Javascript
  • create read update delete using Tkinter class
  • How to data cleanse a database table Python Data Cleansing
  • How to save data frame changes to a file Python Dataframe

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Select your language!

  • हिंदी
  • Español
  • Português
  • Français
  • Italiano
  • How Would You Change The Name Of a Key in a Python Dictionary Python
  • Python Tutorial: How to create charts in Excel Python Tutorial
  • How To Fix TypeError: unhashable type ‘slice’ python dictionaries
  • Python Tutorial: Add a column to a data frame Python Dataframe
  • How to create a calculated field in Tableau data visualisation
  • how to reverse a string in python strings
  • Create a HTML Table From Python Using Javascript Javascript
  • How to connect to your data in Tableau data visualisation

Copyright © 2023 Data Analytics Ireland.

Powered by PressBook Premium theme

This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish. Cookie settingsACCEPT
Privacy & Cookies Policy

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Out of these cookies, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may have an effect on your browsing experience.
Necessary
Always Enabled
Necessary cookies are absolutely essential for the website to function properly. This category only includes cookies that ensures basic functionalities and security features of the website. These cookies do not store any personal information.
Non-necessary
Any cookies that may not be particularly necessary for the website to function and is used specifically to collect user personal data via analytics, ads, other embedded contents are termed as non-necessary cookies. It is mandatory to procure user consent prior to running these cookies on your website.
SAVE & ACCEPT