# Excel to node red

**URL:** <https://discourse.nodered.org/t/excel-to-node-red/21819>\
**Category:** General\
**Created:** [16 February 2020 20:12 UTC](https://discourse.nodered.org/t/excel-to-node-red/21819 "2020-02-16T20:12:49Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![HICHAM22](https://avatars.discourse-cdn.com/v4/letter/h/a587f6/32.png) [@HICHAM22](https://discourse.nodered.org/u/HICHAM22)\
**Post date:** [16 February 2020 20:12 UTC](https://discourse.nodered.org/t/excel-to-node-red/21819/1 "2020-02-16T20:12:49Z")

</div>

Hello ,

i have problem whit how can i display data from EXCEL in real time to node red and build an dashboard ??

how can i show data from Excel in node red

---

<div class="post-metadata">

**Author:** ![afelix](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/afelix/32/9743_2.png) [@afelix](https://discourse.nodered.org/u/afelix)\
**Post date:** [16 February 2020 20:18 UTC](https://discourse.nodered.org/t/excel-to-node-red/21819/2 "2020-02-16T20:18:55Z")

</div>

Hi Hicham,  
Can you explain a bit more, you have a spreadsheet, and you'd like to load data from it and display it in a dashboard? Do you need to just read the file, or edit/save to it as well?  
For displaying tables on the `node-red-dashboard`, take a look at `node-red-node-ui-table`: [https://flows.nodered.org/node/node-red-node-ui-table](https://flows.nodered.org/node/node-red-node-ui-table)  
If you search the flows library, you can see there's a node to load and read data from excel files, have you tried that one yet? [https://flows.nodered.org/node/node-red-contrib-spreadsheet-in](https://flows.nodered.org/node/node-red-contrib-spreadsheet-in)

---

<div class="post-metadata">

**Author:** ![HICHAM22](https://avatars.discourse-cdn.com/v4/letter/h/a587f6/32.png) [@HICHAM22](https://discourse.nodered.org/u/HICHAM22)\
**Post date:** [16 February 2020 20:24 UTC](https://discourse.nodered.org/t/excel-to-node-red/21819/3 "2020-02-16T20:24:39Z")

</div>

thank you so much Afelix,  
yea I want to write data in Excel file and at the same time be displayed in a dashboard in node red

---

<div class="post-metadata">

**Author:** ![afelix](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/afelix/32/9743_2.png) [@afelix](https://discourse.nodered.org/u/afelix)\
**Post date:** [16 February 2020 20:28 UTC](https://discourse.nodered.org/t/excel-to-node-red/21819/4 "2020-02-16T20:28:42Z")

</div>

> [@HICHAM22](#):
>
> write data in Excel

> [@HICHAM22](#):
>
> at the same time

How real time is real time? Because keep in mind that in order to display it, the file needs to be saved in Excel first. After all, it doesn't exist in the file yet if it isn't saved in Excel prior to it.

---

<div class="post-metadata">

**Author:** ![afelix](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/afelix/32/9743_2.png) [@afelix](https://discourse.nodered.org/u/afelix)\
**Post date:** [16 February 2020 20:33 UTC](https://discourse.nodered.org/t/excel-to-node-red/21819/5 "2020-02-16T20:33:13Z")

</div>

Also, are you by chance working on the same school project as [Send data from excel to dashboard](https://discourse.nodered.org/t/send-data-from-excel-to-dashboard/21792)?

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [16 February 2020 21:07 UTC](https://discourse.nodered.org/t/excel-to-node-red/21819/6 "2020-02-16T21:07:02Z")

</div>

You should note that Excel uses a complex file format that is absolutely **NOT** suitable for real-time display. Even when using Microsoft's Office 365 cloud service, you don't actually get real-time updates of data (despite Microsoft claiming you do). Microsoft actually "cheat", you don't see updates until the file is saved on both ends.

If you want something that works in near real-time, Google docs is the way to go. But better by far would be to use a data engine that supports publish/subscribe (pub/sub).

So as Lena say's - what do you mean by "real time"?

---

<div class="post-metadata">

**Author:** ![afelix](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/afelix/32/9743_2.png) [@afelix](https://discourse.nodered.org/u/afelix)\
**Post date:** [16 February 2020 21:09 UTC](https://discourse.nodered.org/t/excel-to-node-red/21819/7 "2020-02-16T21:09:48Z")

</div>

This is the third topic in only a couple weeks where inputting data in excel, then reading it in node-red (preferably without having to save the file). Where google spreadsheets offers a kind of real time display/editing, Excel is not suitable for it.

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [16 February 2020 23:15 UTC](https://discourse.nodered.org/t/excel-to-node-red/21819/8 "2020-02-16T23:15:01Z")

</div>

It certainly does look like a college exercise.

I'll provide some clues as to how i would attempt this...

1. Create a HTTP endpoint in node red that will receive data & populate the dashboard controls
2. In Excel, Using VBA, create a couple of macros...
  1. That receives a value & POSTs it to the node red endpoint (hint - ` Set hReq = CreateObject("MSXML2.XMLHTTP")`)
  2. a macro that is called every time a cell value changes, that calls the first macro, passing in the new value (to be sent in the POST). (Hint `Sub Worksheet_Change`)

I think that'll be as close to real time as you'll get.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [16 April 2020 23:15 UTC](https://discourse.nodered.org/t/excel-to-node-red/21819/9 "2020-04-16T23:15:03Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
