Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
mdma
 
Posts: n/a
Default format to calculation cell


I have a spreadsheet which has a weight column. This is exported as
25kg, 1000kg, 10x2kg from another program.

I am trying to use this weight column in a calculation. I have
inserted a new column and copied the information over and then used the
find/replace to remove the KG to use in the calc cell. This works fine
for the 25 / 1000 etc, but the 10x2 will not caculate.

Is there a way that when i paste the cells that i can get it to change
to 20 automatically. ( i presume that the x will need to be a * ?)

thanks.


--
mdma
------------------------------------------------------------------------
mdma's Profile: http://www.excelforum.com/member.php...o&userid=24284
View this thread: http://www.excelforum.com/showthread...hreadid=378934

  #2   Report Post  
CLR
 
Posts: n/a
Default

How about just highlighting your column, then Edit Replace FindWhat:
10x2 ReplaceWith: 20 Replace all............


Vaya con Dios,
Chuck, CABGx3


"mdma" wrote in message
...

I have a spreadsheet which has a weight column. This is exported as
25kg, 1000kg, 10x2kg from another program.

I am trying to use this weight column in a calculation. I have
inserted a new column and copied the information over and then used the
find/replace to remove the KG to use in the calc cell. This works fine
for the 25 / 1000 etc, but the 10x2 will not caculate.

Is there a way that when i paste the cells that i can get it to change
to 20 automatically. ( i presume that the x will need to be a * ?)

thanks.


--
mdma
------------------------------------------------------------------------
mdma's Profile:

http://www.excelforum.com/member.php...o&userid=24284
View this thread: http://www.excelforum.com/showthread...hreadid=378934



  #3   Report Post  
olasa
 
Posts: n/a
Default


After kg is removed, insert this formula in Column B:
=IF(ISNUMBER(FIND("x",A1)),LEFT(A1,FIND("x",A1)-1)*MID(A1,FIND("x",A1)+1,255),A1)

Ola Sandström


Note:
This method can also be used to remove kg


--
olasa
------------------------------------------------------------------------
olasa's Profile: http://www.excelforum.com/member.php...o&userid=17760
View this thread: http://www.excelforum.com/showthread...hreadid=378934

  #4   Report Post  
Phil Wales
 
Posts: n/a
Default

Click on the cell, then
DataText To Column
Delimited
click on ohter and put x in the box
And Volia



"mdma" wrote:


I have a spreadsheet which has a weight column. This is exported as
25kg, 1000kg, 10x2kg from another program.

I am trying to use this weight column in a calculation. I have
inserted a new column and copied the information over and then used the
find/replace to remove the KG to use in the calc cell. This works fine
for the 25 / 1000 etc, but the 10x2 will not caculate.

Is there a way that when i paste the cells that i can get it to change
to 20 automatically. ( i presume that the x will need to be a * ?)

thanks.


--
mdma
------------------------------------------------------------------------
mdma's Profile: http://www.excelforum.com/member.php...o&userid=24284
View this thread: http://www.excelforum.com/showthread...hreadid=378934


  #5   Report Post  
mdma
 
Posts: n/a
Default


thanks for your replies all very much appreciated.

with the find and replace, are others apart from 2x10, so it would be a
case of looking for each one in order to do it.

With the text to columns method if i split on the the x then the 2 and
10 would be in different columns.. this could possible work, but would
need a further calculation in the process.

I tried the first method, and this worked perfectly (after realising
the X was case sensitive!)


--
mdma
------------------------------------------------------------------------
mdma's Profile: http://www.excelforum.com/member.php...o&userid=24284
View this thread: http://www.excelforum.com/showthread...hreadid=378934



  #6   Report Post  
olasa
 
Posts: n/a
Default


Thanks for the feedback.
Happy it worked
Ola Sandström


--
olasa
------------------------------------------------------------------------
olasa's Profile: http://www.excelforum.com/member.php...o&userid=17760
View this thread: http://www.excelforum.com/showthread...hreadid=378934

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
Format a cell with numbers and user defined text Rod R. Excel Discussion (Misc queries) 0 March 30th 05 04:31 PM
Custom format that shows blank cell if another cell is empty Zdenek Moravec Excel Discussion (Misc queries) 1 March 25th 05 11:45 AM
format cell for figures - Ajit Ajit Munj Excel Discussion (Misc queries) 3 March 2nd 05 09:44 AM
Show Blank is cell value=0 but count as a zero in sum. How to format this cell ? Markus Obermayer Excel Worksheet Functions 1 January 4th 05 08:01 PM
How do I unhide the cell format function in Excel 2000 Len Melcer Excel Worksheet Functions 2 December 15th 04 06:49 PM


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