Wednesday, March 30, 2016

Consultando DolarToday desde Microsoft Excel

Este tema principalmente interesa a los venezolanos que queremos seguir la polemica cotizacion de dolar no-oficial y que para mal o para bien, sirve de referencia para un determinado numero de transacciones cambiarias.

 Basicamente utilizamos una funcion de excel que se llama "WEBSERVICE" e incluimos como parámetro el webservice: "https://s3.amazonaws.com/dolartoday/data.json", luego trabajamos el string resultante con las funciones MID y FIND.

Estas funciones son para la versió ingles de Excel.

En la celda A1 colocamos: =WEBSERVICE("https://s3.amazonaws.com/dolartoday/data.json") y la nombramos "WSRVC".

En las celdas C1,D1 y E1 colocamos:
C1: =MID(WSRVC,FIND(D1,WSRVC,1)+E1, FIND(",",WSRVC,FIND(D1,WSRVC,1))-(FIND(D1,WSRVC,1)+E1))
D1: "transferencia", este es el texto a buscar.
E1: =LEN(D1)+2

Podremos variar las cotizaciones con los strings para colocarlos en D1: 
"transferencia"
"transfer_cucuta"
"efectivo"
"efectivo_real"
"efectivo_cucuta"
"promedio"
"promedio_real"
"cencoex"
"sicad1"
"sicad2"
"dolartoday"

finalmente para refrescar los valores debemos presionar CTLR+ALT+SHIFT+F9.

Presiona aqui para descargar la hoja excel de ejemplo.

Espero que sea de utilidad!  Tu feedback es importante para nosotros, por favor compartenos tu experiencia al probar esto!

También he creado un app para consultar la cotizacion. Puedes descargarla aqui.
QR code:

----------------------------------------------------------------------------------------------------------------
This issue primarily interest Venezuelans who want to follow the controversial quote from unofficial dollar and for better or worse, it is a reference to a certain number of exchange transactions.

 Basically we use an Excel function called "WEBSERVICE" and included as a parameter the webservice: "https://s3.amazonaws.com/dolartoday/data.json" then we work the resulting string with the functions MID and FIND..

These functions are for the English Version of Excel.

In cell A1 put: = WEBSERVICE ( "https://s3.amazonaws.com/dolartoday/data.json") and name it "WSRVC".

In the C1, D1 and E1 cells placed:
C1: = MID (WSRVC, FIND (D1, WSRVC, 1) + E1, FIND ( "," WSRVC, FIND (D1, WSRVC, 1)) - (FIND (D1, WSRVC, 1) + E1))
D1: "transferencia", this is the text to be searched.
E1: = LEN (D1) +2

We may vary quotes with strings to place in D1:
"transferencia"
"transfer_cucuta"
"efectivo"
"efectivo_real"
"efectivo_cucuta"
"promedio"
"promedio_real"
"cencoex"
"sicad1"
"sicad2"
"dolartoday"

finally to refresh the values ​​we must press CTLR + ALT + SHIFT + F9.

Click here to download the sample Excel worksheet.

Also it's available my android app here.
QR-Code:


I hope you find it useful! Your feedback is important to us, please share us your experience trying this!






No comments:

Post a Comment

Python - borrar lineas extra de archivos .txt en un directorio

 Aqui el codigo Python para borrar lineas extra en un archivo plano: import os path = "c:\\temp" path_new='c:\\temp\\CleanFile...