#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 468
Default sum text&numbers

Hi, how can i sum 2 cells that contains each, text and numbers.
Ex:

A B
late 00:00:05 late 00:02:48


(late 00:00:05)+(late 00:02:48)=late 00:02:53
or
(late 00:00:05)+(late 00:02:48)=00:02:53


Thanks in advance.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,805
Default sum text&numbers

Try this in C1
=RIGHT(A1,8)+RIGHT(B1,8)
and format the cell as [h]:mm:ss

"puiuluipui" wrote:

Hi, how can i sum 2 cells that contains each, text and numbers.
Ex:

A B
late 00:00:05 late 00:02:48


(late 00:00:05)+(late 00:02:48)=late 00:02:53
or
(late 00:00:05)+(late 00:02:48)=00:02:53


Thanks in advance.

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 468
Default sum text&numbers

Thanks!

"Sheeloo" a scris:

Try this in C1
=RIGHT(A1,8)+RIGHT(B1,8)
and format the cell as [h]:mm:ss

"puiuluipui" wrote:

Hi, how can i sum 2 cells that contains each, text and numbers.
Ex:

A B
late 00:00:05 late 00:02:48


(late 00:00:05)+(late 00:02:48)=late 00:02:53
or
(late 00:00:05)+(late 00:02:48)=00:02:53


Thanks in advance.

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 468
Default sum text&numbers

Hi, i have one more problem. your code it's working but someytimes i have a
blank cell or a cell containing "NO", and it gives me #VALUE!

Can the code ignore blank cells or cells containing "NO"?

Thanks!

"Sheeloo" a scris:

Try this in C1
=RIGHT(A1,8)+RIGHT(B1,8)
and format the cell as [h]:mm:ss

"puiuluipui" wrote:

Hi, how can i sum 2 cells that contains each, text and numbers.
Ex:

A B
late 00:00:05 late 00:02:48


(late 00:00:05)+(late 00:02:48)=late 00:02:53
or
(late 00:00:05)+(late 00:02:48)=00:02:53


Thanks in advance.

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5,934
Default sum text&numbers

Try this formula...

=IF(OR(A1={"","No"},B1={"","No"}),"","late
"&TEXT(RIGHT(A1,8)+RIGHT(B1,8),"[hh]:mm:ss"))

--
Rick (MVP - Excel)


"puiuluipui" wrote in message
...
Hi, i have one more problem. your code it's working but someytimes i have
a
blank cell or a cell containing "NO", and it gives me #VALUE!

Can the code ignore blank cells or cells containing "NO"?

Thanks!

"Sheeloo" a scris:

Try this in C1
=RIGHT(A1,8)+RIGHT(B1,8)
and format the cell as [h]:mm:ss

"puiuluipui" wrote:

Hi, how can i sum 2 cells that contains each, text and numbers.
Ex:

A B
late 00:00:05 late 00:02:48


(late 00:00:05)+(late 00:02:48)=late 00:02:53
or
(late 00:00:05)+(late 00:02:48)=00:02:53


Thanks in advance.




  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5,934
Default sum text&numbers

To put the entry in the cell as text...

="late "&TEXT(RIGHT(A1,8)+RIGHT(B1,8),"[hh]:mm:ss")

To put the entry in the cell as a real time value...

=RIGHT(A1,8)+RIGHT(B1,8)

and Custom Format the cell using this...

"late "[hh]:mm:ss

--
Rick (MVP - Excel)


"puiuluipui" wrote in message
...
Hi, how can i sum 2 cells that contains each, text and numbers.
Ex:

A B
late 00:00:05 late 00:02:48


(late 00:00:05)+(late 00:02:48)=late 00:02:53
or
(late 00:00:05)+(late 00:02:48)=00:02:53


Thanks in advance.


  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 468
Default sum text&numbers

Thanks!

"Rick Rothstein" a scris:

To put the entry in the cell as text...

="late "&TEXT(RIGHT(A1,8)+RIGHT(B1,8),"[hh]:mm:ss")

To put the entry in the cell as a real time value...

=RIGHT(A1,8)+RIGHT(B1,8)

and Custom Format the cell using this...

"late "[hh]:mm:ss

--
Rick (MVP - Excel)


"puiuluipui" wrote in message
...
Hi, how can i sum 2 cells that contains each, text and numbers.
Ex:

A B
late 00:00:05 late 00:02:48


(late 00:00:05)+(late 00:02:48)=late 00:02:53
or
(late 00:00:05)+(late 00:02:48)=00:02:53


Thanks in advance.



  #8   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 468
Default sum text&numbers

Hi, i have one more problem. your code it's working but someytimes i have a
blank cell or a cell containing "NO", and it gives me #VALUE!

Can the code ignore blank cells or cells containing "NO"?

Thanks!

"Rick Rothstein" a scris:

To put the entry in the cell as text...

="late "&TEXT(RIGHT(A1,8)+RIGHT(B1,8),"[hh]:mm:ss")

To put the entry in the cell as a real time value...

=RIGHT(A1,8)+RIGHT(B1,8)

and Custom Format the cell using this...

"late "[hh]:mm:ss

--
Rick (MVP - Excel)


"puiuluipui" wrote in message
...
Hi, how can i sum 2 cells that contains each, text and numbers.
Ex:

A B
late 00:00:05 late 00:02:48


(late 00:00:05)+(late 00:02:48)=late 00:02:53
or
(late 00:00:05)+(late 00:02:48)=00:02:53


Thanks in advance.



  #9   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,346
Default sum text&numbers

Hi,

Try this:

=SUMPRODUCT(--SUBSTITUTE(A1:A2,"late ",""))

assuming your two enteries are in A1:A2. On the plus side of this fomula is
that is will work for 100 cells just as well as 2. Format the cell to time.

--
If this helps, please click the Yes button

Cheers,
Shane Devenshire


"puiuluipui" wrote:

Hi, how can i sum 2 cells that contains each, text and numbers.
Ex:

A B
late 00:00:05 late 00:02:48


(late 00:00:05)+(late 00:02:48)=late 00:02:53
or
(late 00:00:05)+(late 00:02:48)=00:02:53


Thanks in advance.

  #10   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 468
Default sum text&numbers

Thanks!

"Shane Devenshire" a scris:

Hi,

Try this:

=SUMPRODUCT(--SUBSTITUTE(A1:A2,"late ",""))

assuming your two enteries are in A1:A2. On the plus side of this fomula is
that is will work for 100 cells just as well as 2. Format the cell to time.

--
If this helps, please click the Yes button

Cheers,
Shane Devenshire


"puiuluipui" wrote:

Hi, how can i sum 2 cells that contains each, text and numbers.
Ex:

A B
late 00:00:05 late 00:02:48


(late 00:00:05)+(late 00:02:48)=late 00:02:53
or
(late 00:00:05)+(late 00:02:48)=00:02:53


Thanks in advance.



  #11   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 468
Default sum text&numbers

Hi, i have one more problem. your code it's working but someytimes i have a
blank cell or a cell containing "NO", and it gives me #VALUE!

Can the code ignore blank cells or cells containing "NO"?

Thanks!

"Shane Devenshire" a scris:

Hi,

Try this:

=SUMPRODUCT(--SUBSTITUTE(A1:A2,"late ",""))

assuming your two enteries are in A1:A2. On the plus side of this fomula is
that is will work for 100 cells just as well as 2. Format the cell to time.

--
If this helps, please click the Yes button

Cheers,
Shane Devenshire


"puiuluipui" wrote:

Hi, how can i sum 2 cells that contains each, text and numbers.
Ex:

A B
late 00:00:05 late 00:02:48


(late 00:00:05)+(late 00:02:48)=late 00:02:53
or
(late 00:00:05)+(late 00:02:48)=00:02:53


Thanks in advance.

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to extract numbers from imported cell with text and numbers? jyin Excel Discussion (Misc queries) 3 March 28th 07 01:14 PM
VLOOKUP should compare numbers stored as text to plain numbers. VLOOKUP - Numbers stored as text Excel Worksheet Functions 0 March 31st 06 05:53 PM
Convert numbers stored as text to numbers Excel 2000 Darlene Excel Discussion (Misc queries) 6 January 31st 06 08:04 PM
How do I convert numbers stored as text with spaces to numbers Baffuor Excel Discussion (Misc queries) 1 May 24th 05 07:39 AM
How to convert Excel imported numbers from text to numbers? Alden Excel Discussion (Misc queries) 9 April 1st 05 09:51 PM


All times are GMT +1. The time now is 05:27 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"