butterdutter
New Member
- Joined
- Sep 14, 2017
- Messages
- 2
Hello,
I am trying to set up an investment tracker for stocks and I am pulling in data from a web query but it comes in as a long string. For example,
{"high":"56.36","last":"52.44","timestamp":"1505404209","volume":"4516.96093488","vwap":"54.54156896","low":"49.30","ask":"49.00","bid":"55.00"}
How would I be able to automatically format the string into a clean table? It would have to do so upon each refresh as well. For example,
<style> <!--table {mso-displayed-decimal-separator:"\."; mso-displayed-thousand-separator:"\,";} @Page {margin:.75in .7in .75in .7in; mso-header-margin:.3in; mso-footer-margin:.3in;} td {padding:0px; mso-ignoreadding; color:windowtext; font-size:10.0pt; font-weight:400; font-style:normal; text-decoration:none; font-family:Tahoma, sans-serif; mso-font-charset:0; mso-number-format:General; text-align:general; vertical-align:bottom; border:none; mso-background-source:auto; mso-pattern:auto; mso-protection:locked visible; white-space:nowrap; mso-rotate:0;} --> </style>[TABLE="width: 110"]
<!--StartFragment--> <colgroup><col width="55" span="2" style="width:55pt"> </colgroup><tbody>[TR]
[TD="width: 55"]Column1[/TD]
[TD="width: 55"] Column2[/TD]
[/TR]
[TR]
[TD]High[/TD]
[TD="align: right"]56.36[/TD]
[/TR]
[TR]
[TD]Last[/TD]
[TD="align: right"]52.44[/TD]
[/TR]
[TR]
[TD]Timestamp[/TD]
[TD="align: right"] 150540429[/TD]
[/TR]
[TR]
[TD]Volume[/TD]
[TD="align: right"]4516.35[/TD]
[/TR]
[TR]
[TD]vwap[/TD]
[TD="align: right"]54.54[/TD]
[/TR]
[TR]
[TD]Low[/TD]
[TD="align: right"]49.3[/TD]
[/TR]
[TR]
[TD]Ask[/TD]
[TD="align: right"]49[/TD]
[/TR]
[TR]
[TD]Bid[/TD]
[TD="align: right"]55[/TD]
[/TR]
<!--EndFragment--></tbody>[/TABLE]
I would then use a VLOOKUP to pull the data into the actual investment tracker sheet I have created. Any suggestions would be greatly appreciated.
Thanks,
butterdutter
I am trying to set up an investment tracker for stocks and I am pulling in data from a web query but it comes in as a long string. For example,
{"high":"56.36","last":"52.44","timestamp":"1505404209","volume":"4516.96093488","vwap":"54.54156896","low":"49.30","ask":"49.00","bid":"55.00"}
How would I be able to automatically format the string into a clean table? It would have to do so upon each refresh as well. For example,
<style> <!--table {mso-displayed-decimal-separator:"\."; mso-displayed-thousand-separator:"\,";} @Page {margin:.75in .7in .75in .7in; mso-header-margin:.3in; mso-footer-margin:.3in;} td {padding:0px; mso-ignoreadding; color:windowtext; font-size:10.0pt; font-weight:400; font-style:normal; text-decoration:none; font-family:Tahoma, sans-serif; mso-font-charset:0; mso-number-format:General; text-align:general; vertical-align:bottom; border:none; mso-background-source:auto; mso-pattern:auto; mso-protection:locked visible; white-space:nowrap; mso-rotate:0;} --> </style>[TABLE="width: 110"]
<!--StartFragment--> <colgroup><col width="55" span="2" style="width:55pt"> </colgroup><tbody>[TR]
[TD="width: 55"]Column1[/TD]
[TD="width: 55"] Column2[/TD]
[/TR]
[TR]
[TD]High[/TD]
[TD="align: right"]56.36[/TD]
[/TR]
[TR]
[TD]Last[/TD]
[TD="align: right"]52.44[/TD]
[/TR]
[TR]
[TD]Timestamp[/TD]
[TD="align: right"] 150540429[/TD]
[/TR]
[TR]
[TD]Volume[/TD]
[TD="align: right"]4516.35[/TD]
[/TR]
[TR]
[TD]vwap[/TD]
[TD="align: right"]54.54[/TD]
[/TR]
[TR]
[TD]Low[/TD]
[TD="align: right"]49.3[/TD]
[/TR]
[TR]
[TD]Ask[/TD]
[TD="align: right"]49[/TD]
[/TR]
[TR]
[TD]Bid[/TD]
[TD="align: right"]55[/TD]
[/TR]
<!--EndFragment--></tbody>[/TABLE]
I would then use a VLOOKUP to pull the data into the actual investment tracker sheet I have created. Any suggestions would be greatly appreciated.
Thanks,
butterdutter