Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default help for applying formula

Hi All,


3*2 3*3
3*2 3*4
3*4 3*4
3*2 3*2
3*5 3*5
3*4 3*4
3*4 3*4
3*5 3*5
3*5 3*5
3*4 3*4
3*4 3*4
3*4 3*4
3*2 3*2
3*3 3*3


I have following kind of data i want to convert the above column into
following , how can i do that

=3*2 =3*3
=3*2 =3*4
=3*4 =3*4
=3*2 =3*2
=3*5 =3*5
=3*4 =3*4
=3*4 =3*4
=3*5 =3*5
=3*5 =3*5
=3*4 =3*4
=3*4 =3*4
=3*4 =3*4
=3*2 =3*2
=3*3 =3*3

Can i do it using the help of macro ?

Regards,
Raan
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,118
Default help for applying formula

Actually, if you don't have many columns of data to convert
you can do what you want WITHOUT the help of a macro
using this method:

From the Excel Main Menu:
<tools<options<transition
....Check: Transition Formula Entry...Click [OK]

Then...select a column of data
<data<text-to-columns....Click [Finish]
(repeat for the remaining columns)

<tools<options<transition
....UNCheck: Transition Formula Entry...Click [OK]

However, if you prefer a macro...try this:

Sub ConvertToFormula()
Dim cCell As Range
Dim cContents
Dim cNewContents

For Each cCell In Selection.Cells
If cCell.Formula < "" Then
On Error Resume Next
'Get the current cell contents
cContents = cCell.Formula

'Build the new contents
cNewContents = "=" & cContents

'Try using the new contents
cCell.Formula = cNewContents

If IsError(cCell) Then
'Restore the previous contents
cCell.Formula = cContents
End If
End If
Next cCell

End Sub

To use that macro:

Select the range of cell to be impacted.
[ALT]+[F8].....to see the list of available macros
Select ConvertToFormula
Press [ENTER]

Does that help?
--------------------------

Regards,

Ron (XL2003, Win XP)
Microsoft MVP (Excel)



"Raan" wrote in message
...
Hi All,


3*2 3*3
3*2 3*4
3*4 3*4
3*2 3*2
3*5 3*5
3*4 3*4
3*4 3*4
3*5 3*5
3*5 3*5
3*4 3*4
3*4 3*4
3*4 3*4
3*2 3*2
3*3 3*3


I have following kind of data i want to convert the above column into
following , how can i do that

=3*2 =3*3
=3*2 =3*4
=3*4 =3*4
=3*2 =3*2
=3*5 =3*5
=3*4 =3*4
=3*4 =3*4
=3*5 =3*5
=3*5 =3*5
=3*4 =3*4
=3*4 =3*4
=3*4 =3*4
=3*2 =3*2
=3*3 =3*3

Can i do it using the help of macro ?

Regards,
Raan





  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 19
Default help for applying formula

You literally want to add "=" into each of the cells? or do you want the
calculation to run?

"Raan" wrote in message
...
Hi All,


3*2 3*3
3*2 3*4
3*4 3*4
3*2 3*2
3*5 3*5
3*4 3*4
3*4 3*4
3*5 3*5
3*5 3*5
3*4 3*4
3*4 3*4
3*4 3*4
3*2 3*2
3*3 3*3


I have following kind of data i want to convert the above column into
following , how can i do that

=3*2 =3*3
=3*2 =3*4
=3*4 =3*4
=3*2 =3*2
=3*5 =3*5
=3*4 =3*4
=3*4 =3*4
=3*5 =3*5
=3*5 =3*5
=3*4 =3*4
=3*4 =3*4
=3*4 =3*4
=3*2 =3*2
=3*3 =3*3

Can i do it using the help of macro ?

Regards,
Raan



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
applying a formula to an entire spreadsheet michelle Excel Worksheet Functions 3 October 25th 08 05:11 AM
Applying a cell format within a Formula BRMeter Excel Discussion (Misc queries) 2 August 21st 07 03:46 PM
applying formula Pat N. Excel Discussion (Misc queries) 1 April 25th 06 08:47 PM
Applying colour to my Formula Ben Excel Discussion (Misc queries) 7 March 9th 06 04:30 PM
Applying formula when a particular value occurs smurray444[_7_] Excel Programming 1 February 4th 06 02:01 AM


All times are GMT +1. The time now is 10:43 PM.

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"