Hi All,
I would like to write a formula such that a value of "High" is returned in Column B of sheet1 if the name of country in Column A is contained in the LIST OF COUNTRIES in another sheet (reference sheet).
See the test workbook attached.
Hi All,
I would like to write a formula such that a value of "High" is returned in Column B of sheet1 if the name of country in Column A is contained in the LIST OF COUNTRIES in another sheet (reference sheet).
See the test workbook attached.
If you use this formula, it returns TRUE instead of High
=IFNA(VLOOKUP(A2,'Reference List'!$A$2:$A$25,1,0)=A2,"")
Alan עַם יִשְׂרָאֵל חַי
Change an Ugly Report with Power Query
Database Normalization
Complete Guide to Power Query
Man's Mind Stretched to New Dimensions Never Returns to Its Original Form
thanks, but I need to value of "High" to be returned. that's important.
Here is a VBA solution for you.
How to install your new code![]()
Please Login or Register to view this content.
- Copy the Excel VBA code
- Select the workbook in which you want to store the Excel VBA code
- Press Alt+F11 to open the Visual Basic Editor
- Choose Insert > Module
- Edit > Paste the macro into the module that appeared
- Close the VBEditor
- Save your workbook (Excel 2007+ select a macro-enabled file format, like *.xlsm)
To run the Excel VBA code:
- Press Alt-F8 to open the macro list
- Select a macro in the list
- Click the Run button
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks