Convert Excel function to Power Query

ollyhughes1982

Well-known Member
Joined
Nov 27, 2018
Messages
760
Office Version
  1. 365
Platform
  1. MacOS
Hi,

I have the following formula in a column, which I have just added as a normal Excel column, at the end of my Power Query-generated table:

=HYPERLINK("https://"&VLOOKUP([@countrycode],Table_Countries___Details[#All],3)&"/"&[@eventname])

This works OK, but I would rather add a custom column to my Power Query-generated table. I am just wondering if anyone might be able to help with this, please? I have tried a number of things, but doing xlookups / vlookups in Power Query is a bit beyond my current skills. I have attached a link to the file, below.

OneDrive link: parkrun - parkrun Reader WORKING.xlsx

Thanks in advance!

Olly.
 

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.
This post hasn't received any replies, so am closing it. In the end I just did a manually inserted column and did the VLOOKUP in there instead. Thanks.
 
Upvote 0
this is probably the wrong forum in which to ask a Powerquery related issue. I hadn't seen the issue before, but from what I know of Powerquery the strategy would be to create a table based on 'Table_Countries__Details' and then do a merge using the @Countrycode field. It should be pretty straightforward.

HTH
 
Upvote 0
this is probably the wrong forum in which to ask a Powerquery related issue.
Yes, probably got skipped over by most because Power Query questions normally reside in the Power Tools forum.

@ollyhughes1982 if still interested in the Power Query route then I would suggest reposting the question there, worth a go

As a general method have a look at the link below
 
Upvote 0
Yes, probably got skipped over by most because Power Query questions normally reside in the Power Tools forum.

@ollyhughes1982 if still interested in the Power Query route then I would suggest reposting the question there, worth a go
No need to re-post it, I have moved this question to that forum.
 
Upvote 0
No need to re-post it, I have moved this question to that forum.
Said about reposting as the file doesn't exist in the link now, so thought it was better after 8 days to start afresh for clarity but if you think it is clear enough still then I'm fine with that of course.
 
Last edited:
Upvote 0
Ah, I missed it was an old post!
Looks like the found a workaround anyway, but maybe someone else will have something to offer.
 
Upvote 0

Forum statistics

Threads
1,223,339
Messages
6,171,534
Members
452,409
Latest member
brychu

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
Back
Top