Skip to content

Created a Spreadsheet application like excel having features such as addition and deletion of row and columns, performing all the basic arithmetic operation on the cells, and exporting the cell entries into a CSV.

Notifications You must be signed in to change notification settings

imar26/javascript-spreadsheet

Repository files navigation

SpreadSheet Using Pure JavaScript

Created a spreadsheet using javascript. Integrated several features such as

  • Add row
  • Delete row
  • Add column
  • Delete column
  • Perform various arithmetic operations such as Addition, Subtraction, Multiplication, Division and Modulus on selected multiple rows or columns and display their output in the selected cell
  • Updating the value of the cell will also update the output of the calculated arithmetic operation
  • Export all the cell entries in a CSV

Instructions To Run The Project

Clone the repository on your local machine using command

git clone https://github.com/neu-mis-info6150-spring-2018/extra-credit-assignment-1-techcrat.git

Go inside the folder and run the commands to install the dependencies

cd extra-credit-assignment-1-techcrat
npm install

Once, all the dependencies are installed, run the below mentioned commands in separate terminals to start the server and build webpack that allows the project to load css and js files

npm start
npm run build

Then, open the browser and hit the url http://localhost:5000/

How To Use The Application

Add Row

Click on the Add Row Button. New row will be added as the last row.

Add Column

Click on the Add Column Button. New column will be added as the last column.

Delete Row

Double click on any cell of the row that you want to delete. Then click on Delete Row Button. The row will be deleted, and all the rows below that particular row will be updated with new row numbers.

Delete Column

Double click on any cell of the column that you want to delete. Then click on Delete Column Button. The column will be deleted, and all the columns after that particular column will be updated with new column names.

Perform Arithmetic Operations (+,-,*,/,%)

Randomly add numbers to any number of cells in the row and columns. Not necessary to fill in values in the all the cells. For example, you can put in values in few cells of one particular row and few cells of one particular column. For example, after you select a cell, you can perform an operation on either a row or a column. Now, select a cell where you want to display the output of any arithmetic operation. Type the formulas as shown below:

To Calculate for Rows (Type the command in bold in the cell you selected)

  • ADDITION Operation: =sum(A3,E3) Here, (A3,E3) is the range and the values of all the cells that fall in this range will be calculated.
  • SUBTRACTION Operation: =diff(A3,E3)
  • MULTIPLICATION Operation: =mul(A3,E3)
  • DIVISION Operation: =div(A3,E3)
  • MODULUS Operation: =mod(A3,E3)

To Calculate for Columns (Type the command in bold in the cell you selected)

  • ADDITION Operation: =sum(A3,A9) Here, (A3,A9) is the range and the values of all the cells that fall in this range will be calculated.
  • SUBTRACTION Operation: =diff(A3,A9)
  • MULTIPLICATION Operation: =mul(A3,A9)
  • DIVISION Operation: =div(A3,A9)
  • MODULUS Operation: =mod(A3,A9)

Export Entries To CSV File

Click on the Export HTML Table To CSV File Button

ES6 Features Used

  • Import / Export
  • Arrow Functions
  • Let Keyword

In this project, Technologies Used

  • HTML5
  • CSS3
  • JavaScript
  • Node.js
  • ECMAScript 6
  • Webpack

Production

Application Deployed on: https://javascript-spreadsheet-app.firebaseapp.com/

About

Created a Spreadsheet application like excel having features such as addition and deletion of row and columns, performing all the basic arithmetic operation on the cells, and exporting the cell entries into a CSV.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published