Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 10-16-2015, 12:17 AM
unwantedoz unwantedoz is offline Macro to convert data Windows 7 64bit Macro to convert data Office 2013
Novice
Macro to convert data
 
Join Date: Oct 2015
Posts: 2
unwantedoz is on a distinguished road
Default Macro to convert data

Hello, I need help making a macro. I spent an hour or two couple of hours googling how to make macros but I still have no idea how to do what I want to.

Anyway I want display a chart on a website. I will be using fusioncharts.js to make it as trying it I have found it really easy to use.

My problem is the data is not in the format it needs. It needs it in either JSON or XML as a single string format.

Here is an example workbook with the data manually change to how it needs to look bellow it.

So if the data was

Column 1_______Column 2


25/08/2015_____112

I need the two pieces of data in that entry (the 25/08/2015 and the 112) converted to (doesn't matter where on the page it is or if a new sheet etc) an entry which takes up 1 Column & 4 rows being

Column X
{
"label": "23/08/2015",
"value": "78"
},

or into a single cell (including the < and > at the start and end)
<set label='23/08/2015' value='78' />

For the XML type it doesn't matter if each entry is in a separate cell (next to each other, they can not be under each other) or if they are all added together and put into the one cell.
Attached Files
File Type: xls example.xls (37.0 KB, 8 views)
Reply With Quote
  #2  
Old 10-17-2015, 05:28 AM
unwantedoz unwantedoz is offline Macro to convert data Windows 7 64bit Macro to convert data Office 2013
Novice
Macro to convert data
 
Join Date: Oct 2015
Posts: 2
unwantedoz is on a distinguished road
Default

Solved in this cross post

Macro to convert data | Chandoo.org Excel Forums - Become Awesome in Excel
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Macro to convert data Macro to convert text to endnote? Orifacious Word VBA 27 03-29-2022 02:58 PM
Macro to convert data Convert a worksheet_SelectionChange to WorkBook_SheetChange macro sparkle Excel Programming 2 08-03-2014 02:26 AM
Macro to convert data Need a macro to convert all graphics to GIF format sleake Word VBA 3 02-10-2012 05:00 PM
Macro to convert data data change how to convert to original gsrikanth Excel 6 12-30-2011 08:01 AM
Macro to convert data Creating macro to convert/print to pdf shabbaranks Word 3 05-18-2011 08:59 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 05:08 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft