Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Ray
 
Posts: n/a
Default Do a calculation in cells with text data format

I have a few columns of cells having a mixed data format of number and text.
Is it possible to convert the first row of numbers in text data format for
further calculation? Your guidance to accomplish it is appreciated.

Thanks,

Ray


  #2   Report Post  
Posted to microsoft.public.excel.misc
Peo Sjoblom
 
Posts: n/a
Default Do a calculation in cells with text data format

Example?

--

Regards,

Peo Sjoblom

"Ray" wrote in message
...
I have a few columns of cells having a mixed data format of number and

text.
Is it possible to convert the first row of numbers in text data format for
further calculation? Your guidance to accomplish it is appreciated.

Thanks,

Ray




  #3   Report Post  
Posted to microsoft.public.excel.misc
Ray
 
Posts: n/a
Default Do a calculation in cells with text data format

Peo,

Below is an example.

A1 A2 A3
67 78 =A1+A2
Will be discontinued.

"67" and "Will be discontinued." are on two rows of one cell.

Your advice is appreciated.

Ray

"Peo Sjoblom" wrote in message
...
Example?

--

Regards,

Peo Sjoblom

"Ray" wrote in message
...
I have a few columns of cells having a mixed data format of number and

text.
Is it possible to convert the first row of numbers in text data format
for
further calculation? Your guidance to accomplish it is appreciated.

Thanks,

Ray






  #4   Report Post  
Posted to microsoft.public.excel.misc
Dave Peterson
 
Posts: n/a
Default Do a calculation in cells with text data format

If you use alt-enter to force that new line in the cell, you could use:

=--LEFT(A1,FIND(CHAR(10),A1)-1)

The =left() portion returns the value as a string. The -- converts that string
to a number.



Ray wrote:

Peo,

Below is an example.

A1 A2 A3
67 78 =A1+A2
Will be discontinued.

"67" and "Will be discontinued." are on two rows of one cell.

Your advice is appreciated.

Ray

"Peo Sjoblom" wrote in message
...
Example?

--

Regards,

Peo Sjoblom

"Ray" wrote in message
...
I have a few columns of cells having a mixed data format of number and

text.
Is it possible to convert the first row of numbers in text data format
for
further calculation? Your guidance to accomplish it is appreciated.

Thanks,

Ray





--

Dave Peterson
  #5   Report Post  
Posted to microsoft.public.excel.misc
Ray
 
Posts: n/a
Default Do a calculation in cells with text data format

Dave,

Many thanks for your suggestion that works correctly provided the cell does
have two rows. It not, it does not work. As the cell may have one or two
rows, is it possible to check the condition before applied your statement?

Ray

"Dave Peterson" wrote in message
...
If you use alt-enter to force that new line in the cell, you could use:

=--LEFT(A1,FIND(CHAR(10),A1)-1)

The =left() portion returns the value as a string. The -- converts that
string
to a number.



Ray wrote:

Peo,

Below is an example.

A1 A2 A3
67 78 =A1+A2
Will be discontinued.

"67" and "Will be discontinued." are on two rows of one cell.

Your advice is appreciated.

Ray

"Peo Sjoblom" wrote in message
...
Example?

--

Regards,

Peo Sjoblom

"Ray" wrote in message
...
I have a few columns of cells having a mixed data format of number and
text.
Is it possible to convert the first row of numbers in text data format
for
further calculation? Your guidance to accomplish it is appreciated.

Thanks,

Ray





--

Dave Peterson





  #6   Report Post  
Posted to microsoft.public.excel.misc
Dave Peterson
 
Posts: n/a
Default Do a calculation in cells with text data format

One way is to just "add" that line feed in the string you're searching through:

=--LEFT(A1&CHAR(10),FIND(CHAR(10),A1&CHAR(10))-1)

If the cell already has one (or lots), it won't hurt. If it doesn't, then the
formula will find the one we added.

Ray wrote:

Dave,

Many thanks for your suggestion that works correctly provided the cell does
have two rows. It not, it does not work. As the cell may have one or two
rows, is it possible to check the condition before applied your statement?

Ray

"Dave Peterson" wrote in message
...
If you use alt-enter to force that new line in the cell, you could use:

=--LEFT(A1,FIND(CHAR(10),A1)-1)

The =left() portion returns the value as a string. The -- converts that
string
to a number.



Ray wrote:

Peo,

Below is an example.

A1 A2 A3
67 78 =A1+A2
Will be discontinued.

"67" and "Will be discontinued." are on two rows of one cell.

Your advice is appreciated.

Ray

"Peo Sjoblom" wrote in message
...
Example?

--

Regards,

Peo Sjoblom

"Ray" wrote in message
...
I have a few columns of cells having a mixed data format of number and
text.
Is it possible to convert the first row of numbers in text data format
for
further calculation? Your guidance to accomplish it is appreciated.

Thanks,

Ray





--

Dave Peterson


--

Dave Peterson
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
Conditional Format to change entire row based on one cells data Crowbar via OfficeKB.com Excel Discussion (Misc queries) 2 October 25th 05 04:01 PM
Formulas dealing with text data Bagia Excel Worksheet Functions 6 June 20th 05 10:29 PM
Combining data (numeric format) in multiple cells into one cell (t GNAC SID Excel Discussion (Misc queries) 2 February 7th 05 04:09 PM
Heps to design Locked/Unlocked cells in protected worksheet Kevin Excel Discussion (Misc queries) 0 December 30th 04 07:09 AM
Convert data of cells to any type: Number, Date&Time, Text Kevin Excel Discussion (Misc queries) 0 December 30th 04 06:55 AM


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

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

About Us

"It's about Microsoft Excel"