Sacar el número de segundos

JavierPeña

New Member
Joined
Apr 21, 2011
Messages
37
muy buenas, y gracias por adelantado:

Tengo estos datos en la columna A:

[TABLE="width: 80"]
<colgroup><col style="width:60pt" width="80"> </colgroup><tbody>[TR]
[TD="width: 80"]34s[/TD]
[/TR]
[TR]
[TD]5m35s[/TD]
[/TR]
[TR]
[TD]46s[/TD]
[/TR]
[TR]
[TD]2m11s
[/TD]
[/TR]
[TR]
[TD]1m15s[/TD]
[/TR]
</tbody>[/TABLE]

Y me gustaría conocer la fórmula para obtener en la columna B, el número de segundos

34
335
46
131
75

Tengo excel 2010.

Muchas gracias
 

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.
quizás:

=("00:"&IF(ISERROR(SEARCH("m",A1)),"00:","")&SUBSTITUTE(SUBSTITUTE(A1,"m",":"),"s",""))*86400
 
Upvote 0
quizás:

=("00:"&IF(ISERROR(SEARCH("m",A1)),"00:","")&SUBSTITUTE(SUBSTITUTE(A1,"m",":"),"s",""))*86400

Sería en excel español:

=("00:"&SI(ESERROR(BUSCAR("m";A1));"00:";"")&SUSTITUIR(SUSTITUIR(A1;"m";":");"s";""))*86400

Pero porqué el valor de 86400???

Cuando tiene la m de minutos lo hace bien, pero si hay sólo 's', no:

[TABLE="width: 80"]
<tbody>[TR]
[/TR]
[TR]
[TD="align: right"][/TD]
[/TR]
[TR]
[TD="align: right"][/TD]
[/TR]
[TR]
[TD="align: right"][/TD]
[/TR]
[TR]
[/TR]
</tbody>[/TABLE]

[TABLE="width: 80"]
<colgroup><col style="width:60pt" width="80"> </colgroup><tbody>[TR]
[TD="width: 80, align: right"]2040[/TD]
[/TR]
[TR]
[TD="align: right"]335[/TD]
[/TR]
[TR]
[TD="align: right"]2760[/TD]
[/TR]
[TR]
[TD="align: right"]131[/TD]
[/TR]
[TR]
[TD="align: right"]75[/TD]
[/TR]
</tbody>[/TABLE]

GRACIAS!!
 
Last edited:
Upvote 0
86400 es el número de segundos en un día (60 * 60 * 24)

La fórmula funciona para mí, con o sin la "m"
 
Upvote 0
[TABLE="width: 240"]
<colgroup><col style="width:60pt" span="3" width="80"> </colgroup><tbody>[TR]
[TD="width: 80"]A[/TD]
[TD="width: 80"]B[/TD]
[TD="width: 80"]Tendría que ser[/TD]
[/TR]
[TR]
[TD="class: xl65, width: 80"]34s[/TD]
[TD="class: xl66, align: right"]2040
[/TD]
[TD="align: right"]34[/TD]
[/TR]
[TR]
[TD="class: xl65, width: 80"]5m35s[/TD]
[TD="align: right"]335[/TD]
[TD="align: right"]335[/TD]
[/TR]
[TR]
[TD="class: xl65, width: 80"]46s[/TD]
[TD="class: xl66, align: right"]2760
[/TD]
[TD="align: right"]46[/TD]
[/TR]
[TR]
[TD="class: xl65, width: 80"]2m11s[/TD]
[TD="align: right"]131[/TD]
[TD="align: right"]131[/TD]
[/TR]
[TR]
[TD="class: xl65, width: 80"]1m15s[/TD]
[TD="align: right"]75[/TD]
[TD="align: right"]75[/TD]
[/TR]
</tbody>[/TABLE]
 
Upvote 0
Si, comprendo, pero la fórmula funciona para mí (en inglés)
 
Upvote 0
Javier en la traduccion de tu formula debes poner HALLAR en ves de BUSCAR SEARCH=HALLAR LOOKUP=BUSCAR
saludos
 
Upvote 0

Forum statistics

Threads
1,223,948
Messages
6,175,575
Members
452,652
Latest member
eduedu

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