This task can be performed using Jspreadsheet
JavaScript Data Grid with Advanced Spreadsheet Controls
Best product for this task

What to expect from an ideal product
- Creates a spreadsheet layout right in your web browser using simple JavaScript code
- Handles data input and editing just like Excel without needing Microsoft Office
- Supports copy/paste, formulas, and cell formatting with built-in spreadsheet controls
- Works smoothly on any website by adding a few lines of JavaScript
- Updates cells in real-time as users type, making it feel like a true spreadsheet