Transform data set in Excel or Google Sheets - excel

I have data in the following format:
And I want to transform it into the following format in either Excel or Google Sheets:
Any suggestions on how to complete this?

Use a pivot table in Excel. I do not get exactly the same layout, but it comes close.

Related

How to format a formula in Microsoft Excel to be in percentage format DIRECTLY in the CSV source file

The problem:
For example, my CSV data is like so: ['=B3/B5'] which displays 0.1 in my Excel sheet but I need it to produce 10%.
I need to be able to fix this from the CSV source data because I'm exporting a CSV file from my website so that means no excel formatting to percentages as I need it to work out of the box for users.
Preferably the solution should be able to support Excel 2007. Google Sheets has a =to_percent(B3/B5) function which works well but I need the equivalent for Excel 2007.
I had a look at this answer: https://superuser.com/questions/318420/formatting-a-comma-delimited-csv-to-force-excel-to-interpret-value-as-a-string
But doesn't seem to directly address the problem.
You could use =B3/B5*100&"%"
Note that this will not be saved as a number (ex. 22.1%) rather as text, because you can't use number formats in a CSV file.

Alternative formulas for vba script

I made a VBA function which turns my raw data into a table format since I want to use a pivottable for charts. The problem is that my file need to run on excel online and VBA is not running in a cloud environment.
Is there a way to do this with functions/power query/...
Thanks in advance
Took a while but i managed. It is in fact Excel online compatible Each formula is displayed above the corresponding column. I added some data to make sure it could handle extra data.
=IF(F8<>"",ROWS($G$7:G7),NA#)
=AGGREGATE(15,6,$G$8:$G$32,ROWS($G$7:G7))
=IF(ISNUMBER(H8),IF(ISTEXT(INDEX($B$6:$C$32,H8,1)),INDEX($B$6:$C$32,H8,2),I7),"")
=IF(ISNUMBER(H8),IF(ISTEXT(INDEX($C$7:$D$32,H8,1)),INDEX($C$7:$D$32,H8,2),J7),"")
=IF(ISNUMBER(H8),INDEX(E$8:E$32,$H8),"")
=IF(ISNUMBER(H8),INDEX(F$8:F$32,$H8),"")

Importing ECO data from bloomberg into excel using VBA

I am trying to import data from Bloomberg into Excel using VBA.
Currently I'm manually pulling data from BBG by searching 'ECO' and customize my filters(date) and columns. Is there any way I can automate this process (with filter on dates and customized columns)?
A sample code will be greatly appreciated! Thanks:)

How to make Excel pivot table work in Google Sheet?

I have an Excel spreadsheet which contains a pivot table. I want to convert this excel into Google sheet, so I uploaded it in Google sheet.
Everything gets converted successfully except the pivot table.
Is there a way the excel pivot can work in Google Sheets?
Please advise.
you will need to recreate it manually because not all Excel functions are backwards compatible with Google Sheets even if they are same or just similar
I just found that the excel pivot table actually got converted to Google sheet. The only reason why I felt it was not converted is that unlike Excel in Google sheets the filter does not get displayed on screen. The filter is working fine just not getting displayed on screen. That is not much of a worry. So I am good now.

Exporting web table to Excel

http://rase.paragonrels.com/publink/default.aspx?GUID=456daf07-e0d3-43ae-a894-2c10e7acd9c5&Report=Yes
I am trying to export this table into Excel and it is pasting into one column. When looking at the source code it does not look like a standard HTML table.
Is there a simple way to export this data into Excel so that columns and field names are intact?
Define simple? At a glance, this is the simplest method I can think of:
1) Highlight the data & paste it into Excel. I tested this & it outputs the data into one column.
2) Write a macro to parse the into table format.
As far as macros go, it shouldn't be too hard. How good are you with VBA?

Resources