Convert formula output to country flag

virtuosok

Board Regular
Joined
Sep 2, 2020
Messages
150
Office Version
  1. 2016
Platform
  1. Windows
Hi,
For this one, I'm working online in Teams (as the function is not available in my Excel 2016). Desired result is in the clip below for Spain
Capture.PNG

First column is the result of the INDEX/MATCH type of formula and that's the crux of the story.
Second column is essentially a helper column as I tried different methods to convert the output from column A into the format accepted by Data=>Convert to Geography functionality in Teams. So far, I haven't found a way to do that (formatting, =A2, =TEXT(A2), =TEXTJOIN...), so the entry in B2 is currently hardcoded just to show what I need.
Third column is the final desired output; as long as I have second column sorted I will arrange for that...
Any hint is appreciated on 2nd column.
 

Excel Facts

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
60,134
Office Version
  1. 365
Platform
  1. Windows
Try converting the data that the index/match formula is looking at.
 

virtuosok

Board Regular
Joined
Sep 2, 2020
Messages
150
Office Version
  1. 2016
Platform
  1. Windows
This one apparently has no solution... I've found the following:
Warning: You can’t convert cells containing formula to data types.
 

virtuosok

Board Regular
Joined
Sep 2, 2020
Messages
150
Office Version
  1. 2016
Platform
  1. Windows

ADVERTISEMENT

I did (by changing the format of the source cells to Text), so that INDEX/MATCH would take the info from there... no change.
Or have I misunderstood the idea?
 

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
60,134
Office Version
  1. 365
Platform
  1. Windows
You need to change the source to Data types.
 
Solution

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
60,134
Office Version
  1. 365
Platform
  1. Windows
You're welcome & thanks for the feedback.
 

Forum statistics

Threads
1,136,800
Messages
5,677,809
Members
419,721
Latest member
StuckInWork

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top