Hi everybody.
Here using Excel 2016. I have done a worksheet to follow boats in races and friends sailing. I receive a latitude longitude point (20,00° 18,00' 32,40'' N - 60,00° 31,00' 04,80'' W) every certain amount of time (sometimes several a day, sometimes only one per day, or even less, one every 2 days. In the sheet the points are converted to decimal latitude longitude (20,3090 -60,5180). With the points the sheet calculate distance (last segment and total distance from beginning, speed and bearing). Right now the table can handle up to 5000 positions (but of course it can grow as much as needed)
Now I would like to pass this information to Windy web page (www.windy.com) to forecast the evolution. Windy format for latitude longitude is a number -+xx.xxx with decimal point, Excel decimal number is separated with comma. So I have a formula to convert decimal point to decimal comma. =SUSTITUIR(IZQUIERDA(L5;6);",";".") =SUBSTITUTE(LEFT(L5;6);",";".") (I'm using Excel spanish version).
I started adding new point by hand, with this growing formulas.
=HIPERVINCULO(CONCATENAR("Windy as forecasted";U5;",";V5;";";U6;",";V6);"Windy")
=HIPERVINCULO(CONCATENAR("Windy as forecasted";U5;",";V5;";";U6;",";V6;";";U7;",";V7);"Windy")
=HIPERVINCULO(CONCATENAR("Windy as forecasted";U5;",";V5;";";U6;",";V6;";";U7;",";V7;";";U8;",";V8);"Windy")
And so on. Soon I realized that if I receive a excel with lets say hundreds of points the work is too much. So on internet (stack overflow) the user EMM gave me this formula
ROW5 lets say AA Column = HIPERVINCULO(CONCATENAR( "Windy as forecasted"; $X5; ","; $Y5 );CONCATENAR( $X5; ","; $Y5 ) )
ROW6 - ROW5004 AA column = HIPERVINCULO(CONCATENAR( "Windy as forecasted"; AA5; ";"; $X6; ","; $Y6 ); CONCATENAR( AA5; ";"; $X6; ","; $Y6 ) )
But now I'm facing a different problem. When the formula reach 255 chars stops to work and shows #VALUE!. I have been reading posts but and I tried with VBA but without luck.
Hyperlink concatenated exceed 255 characters
Here using Excel 2016. I have done a worksheet to follow boats in races and friends sailing. I receive a latitude longitude point (20,00° 18,00' 32,40'' N - 60,00° 31,00' 04,80'' W) every certain amount of time (sometimes several a day, sometimes only one per day, or even less, one every 2 days. In the sheet the points are converted to decimal latitude longitude (20,3090 -60,5180). With the points the sheet calculate distance (last segment and total distance from beginning, speed and bearing). Right now the table can handle up to 5000 positions (but of course it can grow as much as needed)
Now I would like to pass this information to Windy web page (www.windy.com) to forecast the evolution. Windy format for latitude longitude is a number -+xx.xxx with decimal point, Excel decimal number is separated with comma. So I have a formula to convert decimal point to decimal comma. =SUSTITUIR(IZQUIERDA(L5;6);",";".") =SUBSTITUTE(LEFT(L5;6);",";".") (I'm using Excel spanish version).
I started adding new point by hand, with this growing formulas.
=HIPERVINCULO(CONCATENAR("Windy as forecasted";U5;",";V5;";";U6;",";V6);"Windy")
=HIPERVINCULO(CONCATENAR("Windy as forecasted";U5;",";V5;";";U6;",";V6;";";U7;",";V7);"Windy")
=HIPERVINCULO(CONCATENAR("Windy as forecasted";U5;",";V5;";";U6;",";V6;";";U7;",";V7;";";U8;",";V8);"Windy")
And so on. Soon I realized that if I receive a excel with lets say hundreds of points the work is too much. So on internet (stack overflow) the user EMM gave me this formula
ROW5 lets say AA Column = HIPERVINCULO(CONCATENAR( "Windy as forecasted"; $X5; ","; $Y5 );CONCATENAR( $X5; ","; $Y5 ) )
ROW6 - ROW5004 AA column = HIPERVINCULO(CONCATENAR( "Windy as forecasted"; AA5; ";"; $X6; ","; $Y6 ); CONCATENAR( AA5; ";"; $X6; ","; $Y6 ) )
But now I'm facing a different problem. When the formula reach 255 chars stops to work and shows #VALUE!. I have been reading posts but and I tried with VBA but without luck.
Hyperlink concatenated exceed 255 characters
How do I do a hyperlink that exceeds 255 characters?
Say I want to create a proxy hyperlink like this: =HYPERLINK("http://www.google.com/search?q="&B3&"&safe=active","Search Google") but the URL address I'm going to use is way too big for the cell (I think max is 255 characters). How do I do that? :eeek: Thanls!
www.mrexcel.com
Concatenating hyperlinks longer than 255 characters?
Hey all, I'm trying to automate the creation of a bunch of hyperlinks that I will use regularly. This is in relation to JIRA which, you might know, can have very long hyperlinks since all arguments of a search will appear in the link itself. This is important for me since changing a few cells...
www.mrexcel.com
21.06.SOMEWHERE LONDON MODIFICADA WINDY.xlsx | |||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z | AA | |||
1 | HOJA DE CALCULO DE DISTANCIAS, VELOCIDADES Y RUMBOS NAUTICOS | BARCO NOMBRE: XXXXXXX | IMO: | Vel. media | |||||||||||||||||||||||||
2 | MMSI: | 6,79 | |||||||||||||||||||||||||||
3 | Eco Nº | FECHA | TIEMPO ENTRE ECOS | LATITUD | NORTE SUR | LONGITUD | ESTE OESTE | LATITUD DECIMAL | LONGITUD DECIMAL | DIST. TRAMO | DISTANCIA ACUM. | VEL. Kt | VEL. Media Kt por tramo | VEL. Viento kt. | Rumbo viento | RUMBO | |||||||||||||
4 | DD/MM/AA HH:MM:SS | Días HH:MM | GG° | MM' | SS" | N-S | GG° | MM' | SS" | E-W | Windy LAT | Windy LONG | |||||||||||||||||
5 | 1 | 13/03/21 14:00:00 | 20,00 | 18,00 | 32,40 | N | 60,00 | 31,00 | 04,80 | W | 20,3090 | -60,5180 | 20.309 | -60.518 | 20.309 | -60.518 | Wendy | ||||||||||||
6 | 2 | 15/03/21 02:00:00 | 01 Días 12:00 | 22,00 | 03,00 | 16,50 | N | 61,00 | 21,00 | 24,50 | W | 22,0546 | -61,3568 | 114,84 | 114,84 | 3,19 | 03,19 | 15,00 | 270,0° | 336,0° | 22.054 | -61.356 | Windy | 22.054 | -61.356 | Wendy | |||
7 | 3 | 15/03/21 14:44:00 | 00 Días 12:44 | 23,00 | 01,00 | 52,00 | N | 61,00 | 43,00 | 50,30 | W | 23,0311 | -61,7306 | 62,19 | 177,03 | 4,88 | 04,04 | 13,00 | 270,0° | 340,6° | 23.031 | -61.730 | Windy | 23.031 | -61.730 | Wendy | |||
8 | 4 | 16/03/21 02:00:00 | 00 Días 11:16 | 25,00 | 12,00 | 01,70 | N | 61,00 | 05,00 | 54,80 | W | 25,2005 | -61,0986 | 134,78 | 311,81 | 11,96 | 08,00 | 15,00 | 275,0° | 14,8° | 25.200 | -61.098 | Windy | 25.200 | -61.098 | Wendy | |||
9 | 5 | 16/03/21 08:00:00 | 00 Días 06:00 | 26,00 | 10,00 | 23,50 | N | 62,00 | 49,00 | 17,30 | W | 26,1732 | -62,8215 | 110,00 | 421,81 | 18,33 | 13,17 | 15,00 | 275,0° | 302,4° | 26.173 | -62.821 | Windy | 26.173 | -62.821 | Wendy | |||
10 | 6 | 16/03/21 14:00:00 | 00 Días 06:00 | 27,00 | 03,00 | 46,80 | N | 62,00 | 36,00 | 54,00 | W | 27,0630 | -62,6150 | 54,56 | 476,37 | 9,09 | 11,13 | 15,00 | 275,0° | 11,7° | 27.063 | -62.615 | Windy | 27.063 | -62.615 | Wendy | |||
11 | 7 | 17/03/21 02:00:00 | 00 Días 12:00 | 28,00 | 52,00 | 58,70 | N | 62,00 | 02,00 | 54,90 | W | 28,8830 | -62,0486 | 113,32 | 589,70 | 9,44 | 10,29 | 10,00 | 275,0° | 15,2° | 28.882 | -62.048 | Windy | 28.882 | -62.048 | Wendy | |||
12 | 8 | 17/03/21 08:00:00 | 00 Días 06:00 | 28,00 | 34,00 | 59,60 | N | 62,00 | 38,00 | 19,10 | W | 28,5832 | -62,6386 | 35,90 | 625,60 | 5,98 | 08,14 | 240,1° | 28.583 | -62.638 | Windy | 28.583 | -62.638 | Wendy | |||||
13 | 9 | 18/03/21 02:00:00 | 00 Días 18:00 | 29,00 | 25,00 | 24,40 | N | 63,00 | 33,00 | 37,00 | W | 29,4234 | -63,5603 | 69,91 | 695,50 | 3,88 | 06,01 | 10,00 | 360,0° | 316,4° | 29.423 | -63.560 | Windy | 29.423 | -63.560 | Wendy | |||
Principal |
Cell Formulas | ||
---|---|---|
Range | Formula | |
Q2 | Q2 | =AVERAGE(P6:P5004) |
L5:L13 | L5 | =IF(D5="","",IF(G5="S",(-1*(D5+E5/60+F5/3600)),(D5+E5/60+F5/3600))) |
M5:M13 | M5 | =IF(H5="","",IF(K5="W",(-1*(H5+I5/60+J5/3600)),(H5+I5/60+J5/3600))) |
U5:U13 | U5 | =SUBSTITUTE(LEFT(L5,6),",",".") |
V5:V13 | V5 | =SUBSTITUTE(LEFT(M5,7),",",".") |
N6:N13 | N6 | =IF(L6="","",(6371*ACOS(COS(RADIANS(90-L5))*COS(RADIANS(90-L6))+SIN(RADIANS(90-L5))*SIN(RADIANS(90-L6))*COS(RADIANS(M5-M6))))*0.539956) |
O6 | O6 | =IF(N6=0,"",N6) |
P6:P13 | P6 | =IF(N6="","",IF(C6="","",N6/(C6*24))) |
Q6 | Q6 | =IF(P6="","",AVERAGE(P6)) |
O7:O13 | O7 | =IF(N7="","",(N7+O6)) |
Q7:Q13 | Q7 | =IF(P7="","",SUM(Q6+P7)/2) |
T6:T13 | T6 | =IF(P6=0,"",IF(L6="","",DEGREES(MOD(ATAN2((COS(RADIANS(L5))*SIN(RADIANS(L6)))-(SIN(RADIANS(L5))*COS(RADIANS(L6))*COS(RADIANS(M6-M5))), SIN(RADIANS(M6-M5))*COS(RADIANS(L6))),2*PI())))) |
W6 | W6 | =HYPERLINK(CONCATENATE("https://www.windy.com/distance/",U5,",",V5,";",U6,",",V6),"Windy") |
W7 | W7 | =HYPERLINK(CONCATENATE("https://www.windy.com/distance/",U5,",",V5,";",U6,",",V6,";",U7,",",V7),"Windy") |
W8 | W8 | =HYPERLINK(CONCATENATE("https://www.windy.com/distance/",U5,",",V5,";",U6,",",V6,";",U7,",",V7,";",U8,",",V8),"Windy") |
W9 | W9 | =HYPERLINK(CONCATENATE("https://www.windy.com/distance/",U5,",",V5,";",U6,",",V6,";",U7,",",V7,";",U8,",",V8,";",U9,",",V9),"Windy") |
W10 | W10 | =HYPERLINK(CONCATENATE("https://www.windy.com/distance/",U5,",",V5,";",U6,",",V6,";",U7,",",V7,";",U8,",",V8,";",U9,",",V9,";",U10,",",V10),"Windy") |
W11 | W11 | =HYPERLINK(CONCATENATE("https://www.windy.com/distance/",U5,",",V5,";",U6,",",V6,";",U7,",",V7,";",U8,",",V8,";",U9,",",V9,";",U10,",",V10,";",U11,",",V11),"Windy") |
W12 | W12 | =HYPERLINK(CONCATENATE("https://www.windy.com/distance/",U5,",",V5,";",U6,",",V6,";",U7,",",V7,";",U8,",",V8,";",U9,",",V9,";",U10,",",V10,";",U11,",",V11,";",U12,",",V12),"Windy") |
W13 | W13 | =HYPERLINK(CONCATENATE("https://www.windy.com/distance/",U5,",",V5,";",U6,",",V6,";",U7,",",V7,";",U8,",",V8,";",U9,",",V9,";",U10,",",V10,";",U11,",",V11,";",U12,",",V12,";",U13,",",V13),"Windy") |
C6:C13 | C6 | =IF(B6=0,"",B6-B5) |
AA5 | AA5 | = HYPERLINK(CONCATENATE( "https://www.windy.com/distance/", $X5, ",", $Y5 ),CONCATENATE( $X5, ",", $Y5 ) ) |
AA6:AA13 | AA6 | = IF(U6=0,"",HYPERLINK(CONCATENATE( "https://www.windy.com/distance/", AA5, ";", $X6, ",", $Y6 ), CONCATENATE( AA5, ";", $X6, ",", $Y6 ) )) |
Cells with Conditional Formatting | ||||
---|---|---|---|---|
Cell | Condition | Cell Format | Stop If True | |
R5:S5 | Expression | =ES.IMPAR(FILA()) | text | NO |
R5:S5 | Expression | =ES.IMPAR(row()) | text | NO |
B5 | Expression | =ES.IMPAR(FILA()) | text | NO |
B5 | Expression | =ES.IMPAR(row()) | text | NO |
B6 | Expression | =ES.IMPAR(FILA()) | text | NO |
B6 | Expression | =ES.IMPAR(row()) | text | NO |
E7:G5004,I7:T5004,A7:C5004 | Expression | =ES.IMPAR(FILA()) | text | NO |
E7:G5004,I7:T5004,A7:C5004 | Expression | =ES.IMPAR(row()) | text | NO |
N5:T5 | Cell | contains a blank value | text | NO |
C5 | Cell | contains a blank value | text | NO |
N5:T5 | Cell Value | contains " " | text | NO |
O8:O5003,A5:A5004,C152:C5004,L205:S5004,E7:G204,D7:D5004,H7:H5004,I7:S204,B6:S6,T5:T5004,Q8:S5004,B7:C204,A5:S5 | Expression | =ES.IMPAR(FILA()) | text | NO |