Filehost.ro - gazduire fisiere
Mrrrr's Forum (VIEW ONLY)
Un forum care ofera solutii pentru unele probleme legate in general de PC. Pe langa solutii, aici puteti gasi si alte lucruri interesante // A forum that offers solutions to some PC related issues. Besides these, here you can find more interesting stuff.
Nou pe simpatie:
danutza_84 pe Simpatie
Femeie
25 ani
Galati
cauta Barbat
26 - 55 ani
Mrrrr's Forum (VIEW ONLY)InregistrareLoginPozeNu sunteti logat. Lista Forumurilor Pe Tematici
Mrrrr's Forum (VIEW ONLY) / Tutoriale si Ghiduri Utile // Tutorials and useful guides /

[EXCEL] Extract Curs BNR EURO 2026

Pagini: 1 Moderat de TRaP, TonyTzu
pus acum 46 ore#1
TRaP
Moderator
Postari: 972
After you import the link https://www.cursbnr.ro/curs-valutar-mediu to PowerQuery, use Advanced Editor to replace the code with:

let
    Source = Web.BrowserContents("https://www.cursbnr.ro/curs-valutar-mediu"),
    HtmlSource = Source,

    // Extract the year from Anul 2026
    YearText = Text.BetweenDelimiters(
        HtmlSource,
        "<b>Anul ",
        "</b>"
    ),

    Year = Number.FromText(YearText),

    // Extract the monthly exchange rate table
    Data = Html.Table(
        Source,
        {
            {"Month", "TABLE.table.table-md.table-striped.table-striped-custom.text-center > * > TR > :nth-child(1)"},
            {"EUR", "TABLE.table.table-md.table-striped.table-striped-custom.text-center > * > TR > :nth-child(2)"}
        },
        [RowSelector="TABLE.table.table-md.table-striped.table-striped-custom.text-center > * > TR"]
    ),

    // Remove header row
    FilterHeaders = Table.SelectRows(
        Data,
        each [Month] <> "Luna"
    ),

    // Add extracted year
    AddYear = Table.AddColumn(
        FilterHeaders,
        "Year",
        each Year,
        Int64.Type
    ),
    #"Changed Type with Locale" = Table.TransformColumnTypes(AddYear, {{"EUR", type number}}, "en-US")
in
    #"Changed Type with Locale"


 
   
Pagini: 1  
Mergi la