Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
RJohnson701CTS
 
Posts: n/a
Default Formatting General to Number

I'm trying to replace text with number values via Find and Replace but when I
try to sum the number values, nothing adds up. I've tried to format the
cells to Number from General, but Excel doesn't seem to want to do it. All
the numbers I've put in using Find and Replace just stay in General format.
If I manually type the number in, they sum up fine. But I've got way too
much text to do it all by hand. Any ideas? Thanks!
  #2   Report Post  
Michael
 
Posts: n/a
Default

Put 1 in a vacant cell, , copy the 1 and then select your text values, go to
edit - paste special and multiply. This will covert all to numbers.
--
Sincerely, Michael Colvin


"RJohnson701CTS" wrote:

I'm trying to replace text with number values via Find and Replace but when I
try to sum the number values, nothing adds up. I've tried to format the
cells to Number from General, but Excel doesn't seem to want to do it. All
the numbers I've put in using Find and Replace just stay in General format.
If I manually type the number in, they sum up fine. But I've got way too
much text to do it all by hand. Any ideas? Thanks!

  #3   Report Post  
Earl Kiosterud
 
Posts: n/a
Default

R,

This might be a workaround:

=SUMPRODUCT(A2:A20*1)
--
Earl Kiosterud
www.smokeylake.com

"RJohnson701CTS" wrote in message
...
I'm trying to replace text with number values via Find and Replace but
when I
try to sum the number values, nothing adds up. I've tried to format the
cells to Number from General, but Excel doesn't seem to want to do it.
All
the numbers I've put in using Find and Replace just stay in General
format.
If I manually type the number in, they sum up fine. But I've got way too
much text to do it all by hand. Any ideas? Thanks!



  #4   Report Post  
RJohnson701CTS
 
Posts: n/a
Default

Thanks, Michael and Earl! Michael's fix worked. Have a good one!

"Michael" wrote:

Put 1 in a vacant cell, , copy the 1 and then select your text values, go to
edit - paste special and multiply. This will covert all to numbers.
--
Sincerely, Michael Colvin


"RJohnson701CTS" wrote:

I'm trying to replace text with number values via Find and Replace but when I
try to sum the number values, nothing adds up. I've tried to format the
cells to Number from General, but Excel doesn't seem to want to do it. All
the numbers I've put in using Find and Replace just stay in General format.
If I manually type the number in, they sum up fine. But I've got way too
much text to do it all by hand. Any ideas? Thanks!

  #5   Report Post  
dominicb
 
Posts: n/a
Default


Good afternoon RJohnson701CTS

Try using this VBA code to do what you need.

Sub FixNum()
For Each UsrCell In Selection
UsrCell.FormulaLocal = UsrCell.FormulaLocal
Next
End Sub

Copy it into a blank module, highlight the problematic numbers and then
call the macro. This will convert all the "text numbers" to actual
values.

HTH

DominicB


--
dominicb
------------------------------------------------------------------------
dominicb's Profile: http://www.excelforum.com/member.php...o&userid=18932
View this thread: http://www.excelforum.com/showthread...hreadid=388704



  #6   Report Post  
Michael
 
Posts: n/a
Default

Your welcome. Good luck
--
Sincerely, Michael Colvin


"RJohnson701CTS" wrote:

Thanks, Michael and Earl! Michael's fix worked. Have a good one!

"Michael" wrote:

Put 1 in a vacant cell, , copy the 1 and then select your text values, go to
edit - paste special and multiply. This will covert all to numbers.
--
Sincerely, Michael Colvin


"RJohnson701CTS" wrote:

I'm trying to replace text with number values via Find and Replace but when I
try to sum the number values, nothing adds up. I've tried to format the
cells to Number from General, but Excel doesn't seem to want to do it. All
the numbers I've put in using Find and Replace just stay in General format.
If I manually type the number in, they sum up fine. But I've got way too
much text to do it all by hand. Any ideas? Thanks!

  #7   Report Post  
Jerry W. Lewis
 
Posts: n/a
Default

You alrady have 2 solutions, here is an explanation.

Formatting only changes the display, not the contents of the cell. In
particular, formatting cannot change text (even text digits) into a
number. You must either re-enter the contents after formatting the cell
to receive a number, or get Excel to coerce the contents into a number
(by performing math with +-*/ on the cell contents).

Jerry

RJohnson701CTS wrote:

I'm trying to replace text with number values via Find and Replace but when I
try to sum the number values, nothing adds up. I've tried to format the
cells to Number from General, but Excel doesn't seem to want to do it. All
the numbers I've put in using Find and Replace just stay in General format.
If I manually type the number in, they sum up fine. But I've got way too
much text to do it all by hand. Any ideas? Thanks!


  #8   Report Post  
RJohnson701CTS
 
Posts: n/a
Default

Thanks, guys. This is all good stuff to know....

"Jerry W. Lewis" wrote:

You alrady have 2 solutions, here is an explanation.

Formatting only changes the display, not the contents of the cell. In
particular, formatting cannot change text (even text digits) into a
number. You must either re-enter the contents after formatting the cell
to receive a number, or get Excel to coerce the contents into a number
(by performing math with +-*/ on the cell contents).

Jerry

RJohnson701CTS wrote:

I'm trying to replace text with number values via Find and Replace but when I
try to sum the number values, nothing adds up. I've tried to format the
cells to Number from General, but Excel doesn't seem to want to do it. All
the numbers I've put in using Find and Replace just stay in General format.
If I manually type the number in, they sum up fine. But I've got way too
much text to do it all by hand. Any ideas? Thanks!



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
Cell formatting behaviour question derek Excel Discussion (Misc queries) 3 February 22nd 05 10:17 PM
excel - numbers as text Thuferhawat New Users to Excel 12 January 24th 05 09:29 PM
Pivot Table Drill Down Number Formatting Gregg Riemer Excel Discussion (Misc queries) 1 January 4th 05 10:53 PM
How to format a number in Indian style in Excel? Victor_alb Excel Discussion (Misc queries) 2 December 21st 04 04:21 AM
Conditional Formatting (Date vs Number) [email protected] Excel Discussion (Misc queries) 7 December 20th 04 10:23 PM


All times are GMT +1. The time now is 07:07 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"