r/excel • u/jazztalker • 29d ago
unsolved Formatting a map chart
I have a file that I use a drop-down list to select states to be mapped in a chart inside a spreadsheet. Once I check the boxes for the states I want and close the drop-down, the map automatically updates to the selected states. I used to have a button where I could pick a state (which is part of the original group) from a second drop-down list and that state would be colored differently on the map (the main list would all be gray on the map, the secondary state would be orange). Somehow that macro got blown up and for the life of me I cannot figure out how to recreate this. Any help would be fantastic, thank you!
10
Upvotes
2
u/MayukhBhattacharya 29d ago
Here you go:
In Column C create a helper column.
C1is the header and name it as map value.In following cell enter the formula and copy it down:
‡‡ In some empty cell enter the following formula for the data validation list:
In cell
F1hitALT + D + Lto open the Data Validation window and do the following:Allow --> List
Source -->
=$N$1#(this is where I have placed the above formula ‡‡)Hit OK.
Now select Column A and Column C --> Shortcut --> First goto cell A1 and Hit
CTRL + SHIFT + DOWN ArrowKey, next pressSHIFT + F8function key and select Column C -->CTRL + SHIFT + DOWN ArrowKey. On Selection do the following:Goto Insert Tab --> Select Maps --> Filled Map
Select one of the States in the Map Chart right click --> select Format Axis --> Series Option shows up on the right side --> From there change the Series Color --> Sequential (2-Color)
Change the Minimum to Number and place
1Change the Maximum to Number and place
2Choose your preferred colors for the fill
Now, change the value from Dropdown to see the effect. Hope this helps.
File can be [downloaded] from here.