Multiple worksheet formulas
The usage of formulas across multiple worksheets is possible using a similar Excel and Google Sheets syntax.
<html>
<script src="https://jspreadsheet.com/v7/jspreadsheet.js"></script>
<script src="https://jsuites.net/v5/jsuites.js"></script>
<link rel="stylesheet" href="https://jsuites.net/v5/jsuites.css" type="text/css" />
<link rel="stylesheet" href="https://jspreadsheet.com/v7/jspreadsheet.css" type="text/css" />
<div id="spreadsheet"></div>
<script>
let data1 = [
['Cheese', 10, 6.00, "=B1*C1"],
['Apples', 5, 4.00, "=B2*C2"],
['Carrots', 5, 1.00, "=B3*C3"],
['Oranges', 6, 2.00, "=B4*C4"],
];
let data2 = [
['20%', "=SHEET1!D1"],
['20%', "=SHEET1!D2"],
['20%', "=SHEET1!D3"],
['20%', "=SHEET1!D4"],
];
jspreadsheet(document.getElementById('spreadsheet'), [
{
data: data1,
minDimensions: [5,5],
defaultColWidth: '100px',
license: 'MzZlZjE5MDY0YTZjODY1NDZjNmY2MWU5MzQ1NTMzZmNlMDU4NmMyNmI5YTg1YTA1NjVhYTQ4OTgxNmJmNDBlNWRjOGNmZjgwNjU0NTZjNWE3NmM3OTRjZjViOWQzYzE1MTE4MjY4ODFlNjk5NjRhYmJiZmQ3ZmM5ZjEyOWVhZTksZXlKamJHbGxiblJKWkNJNklpSXNJbTVoYldVaU9pSktjM0J5WldGa2MyaGxaWFFpTENKa1lYUmxJam94TnpNeE5UWTJNREkxTENKa2IyMWhhVzRpT2xzaWFuTndjbVZoWkhOb1pXVjBMbU52YlNJc0ltTnZaR1Z6WVc1a1ltOTRMbWx2SWl3aWFuTm9aV3hzTG01bGRDSXNJbU56WWk1aGNIQWlMQ0ozWldJaUxDSnNiMk5oYkdodmMzUWlYU3dpY0d4aGJpSTZJak0wSWl3aWMyTnZjR1VpT2xzaWRqY2lMQ0oyT0NJc0luWTVJaXdpZGpFd0lpd2lkakV4SWl3aVkyaGhjblJ6SWl3aVptOXliWE1pTENKbWIzSnRkV3hoSWl3aWNHRnljMlZ5SWl3aWNtV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