VLOOKUP GIS Shape File Data - excel

I have a GIS shape file (shp) with numerous attributes. It's a map of a country however it only shows the state name for each region, not the suburb name. I have another excel file with the suburb name and the region ID next to each other. Is there any way to do a VLOOKUP kind of thing which a shape file to insert the suburb names.
Thanks

What platform are you viewing the shapefiles in? ArcGIS, qQIS, other?
Essentially, as long as your Country shapefile DBF and suburb excel spreadsheet table share an attribute, meaning they both have a similar field with matching values, then there is definitely a way to achieve what you're wanting. The approach all depends on the platform, however.

Related

Power Query: how can I make power query tolerate columns with the same name?

I have a table with several column having the same name.
This columns is updated and provided regularly to power bi.
The columns has several columns with the same name such as "Result", "Result" and do so on...
However, Power BI adds each time in an automated way a number after my columns.
When I try to "force" power bi not to have a number, I get the following message
"The name "Result" is already used for a column..."
How could I change this?
The only way would be for the people using my file to extract the data and correct the name manually in excel...which is not great
You cannot edit this behavior, PowerBI needs an unique identifier to reference the data, therefore the column name must be unique within a table (the complete identifier is given by table + column), otherwise the tool won't be able to reference the data.
This rule usually applies to any tool that manages data and sometimes to the data themselves (that's up to the format though). How can the tool get data from "Result" if more than one column has this identifier? which is the right one? The tool does not know and based on the context can give you an error or will fix this issue itself by making the names unique.
Note that also excel will append numbers to the columns (with the same name names) if you put the data in a proper table (insert-> table), in fact, an excel sheet can be considered unstructured free data, meanwhile, an excel table will enforce the data structure.
Most tools (like PowerBI) will also enforce data types.

Creating an Excel formula to return a specific non-blank mapped value from another row

I am working with a large mapping table in excel. The output of the mapping table is difficult to use when performing analysis and for creating custom files for users.
The Data table is formatted as such:
I would like the New Account Lookup column to always return the mapped system account, as some of the mapped system account output rows from the mapping table are blank due to the system design. The location of the new system account data can be varied in terms of the row number.
Have tried index match and a few complicated if statement variants to no avail. Any help would be appreciated.
I was able to figure this out using the following as an array formula: INDEX(C:C,MATCH(1,(A1=A:A)*(C:C<>""),0))

How to aggregate data by its attributes(large data set)?

I currently have a large set of data in excel (600,000 lines long).
What I have is the generation of a certain plant in all different states, what I want to do is have the total generation of a state. What is a quick way of aggregating the individual plant data into state data.
I have provided a very small example of what I have here:
The main challenge is that my table with the AA1=QLD is a separate document and not as simple as in my example, in reality there is over 50 different plants for each state and no naming patterns for the plants.
The only thing I think that would solve this for me is writing an iff statement about 400 lines long, which of course, is not feasible.
Any help would be appreciated.
Thanks
First transfer your document to a table:
Then add a helper column that lines up the correct state with the correct plant in the table. A simple VLOOKUP will do this:
=VLOOKUP(A2,I:J,2,FALSE)
Then insert a pivot table using the data from the existing table and new helper column. Put State in Rows and Generation in Values

How can I store my hierarchical data?

I'm creating an iOS app which allows you to find the quickest route from one city to another. To make things easier for the user, you can filter down based on a city's continent or country too (so Europe would show Paris, London and Berlin, whereas France would only show Paris). I currently have all my objects stored in various arrays, with the City object pointing to the Country object, and the Country object pointing to the Continent object. See my diagram below for a visual representation:
I feel that this is really ineffective when it comes to filtering the data out. I want a data structure that will allow me to filter the cities out quickly. I am happy to use my 3 arrays that I currently have, but I really feel that this isn't efficient enough, and I am struggling to find a solution online. Thanks in advance.
You are trying to set up a network type database. Instead, try using a relational type database. One table of cities with extra columns for country. Then another table of countries

Excel vb project-best practice

I'm not a vb developer neither so familiar with excel. Anyway i have a project to be done using MS Excel (cannot use access).
System is to provide a ratio analysis(ans some other analysis) of companies where data from an annual report need to entered to the system. Then based on several reports data I can derive graphs and all other information.
My question
Now I can store data in a single sheet like using is as as a database. it'll be like
CompanyName Year Data1 Data2 Data3...
Here the CompanyName can be duplicated as many Years data can be entered. If I use this method Each time I derive company data, I have to search for the relevant rows in the worksheet and keep lots of data in an array as I read through those rows and produce the final result.
Or I can use separate worksheet for each company. Then I only have to search for the relevant sheet name and perform operations in that worksheet it self easily.
So what is the best way to do this?
Thanks
Whatever way works. IMO you could create a defined range (or many) and issue SQL against it just like it was Access table(s). I'm for keeping all like data on the same worksheet even for different companies; but that's just my 2 cents. You can create a pivot to separate out the information and slice/dice it however needed
Since someone liked the comment as an answer:...
It might be simpler to do some of this just using formulas and Excel functions. The basic approach would be to keep the data on one sheet and sort it by year within company so that all the years for a company are grouped together. Then use Filter to create a list of unique companies. These steps get repeated each time you add new data.
Then create 2 formulas for each company: the first uses MATCH to find the first row containing the company name and the second uses COUNTIF to find how many rows there are for the company. Then you can use OFFSET(firstrow,ColumnIndex,NumberOfRows,1) (or similar) to get the required range of data for Charts and ratio analysis etc.

Resources