Hi folks, I'm a university student interning in the real estate industry for the summer and am working with some Energy Star (ES) data as one of my assigned projects.
I'm looking to create a macro to prepare data downloaded from ES into a usable format and produce several charts, including year-over-year comparisons of energy and water consumption and greenhouse gas emissions.
The first problem I'm having is generating a region column based on a state name column. I'd like to take the ES-reported state names - which are fully spelled out as such "California" "District of Columbia (D.C.)" etc - and assign them to a particular region of my choosing (New England states + NY, NJ, PA, DE = Northeast) etc.
I was thinking about using a very long nested string function for this, but I'm sure there must be an easier way!
Thanks in advance
I'm looking to create a macro to prepare data downloaded from ES into a usable format and produce several charts, including year-over-year comparisons of energy and water consumption and greenhouse gas emissions.
The first problem I'm having is generating a region column based on a state name column. I'd like to take the ES-reported state names - which are fully spelled out as such "California" "District of Columbia (D.C.)" etc - and assign them to a particular region of my choosing (New England states + NY, NJ, PA, DE = Northeast) etc.
I was thinking about using a very long nested string function for this, but I'm sure there must be an easier way!
Thanks in advance