Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 57
Default MACRO: Convert Row Formula to Value

Hello,

I have duplicate formulas through 5000 rows, columns A - F .
I would like to convert the row formulas to values if a result in column F
is present.

is there a simple macro which will
a) Find rows with formula
b) evaluate if cell within row ( column f ) contains result
c) convert row results to values

- over view - trying to reduce the EXTREME size of dependent sheet.

Many thanks !

Steven / Dallas
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,058
Default MACRO: Convert Row Formula to Value

Hi Steven:

Sub sonic()
n = Cells(Rows.Count, "F").End(xlUp).Row
For i = 1 To n
Set r1 = Range("A" & i)
Set r2 = Range("F" & i)
Set r3 = Range(r1, r2)
If IsEmpty(r2.Value) Then
Else
r3.Copy
r1.PasteSpecial Paste:=xlPasteValues
End If
Next
End Sub

--
Gary''s Student - gsnu200740


"SteveT" wrote:

Hello,

I have duplicate formulas through 5000 rows, columns A - F .
I would like to convert the row formulas to values if a result in column F
is present.

is there a simple macro which will
a) Find rows with formula
b) evaluate if cell within row ( column f ) contains result
c) convert row results to values

- over view - trying to reduce the EXTREME size of dependent sheet.

Many thanks !

Steven / Dallas

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
Macro to convert text bamf Excel Discussion (Misc queries) 0 April 2nd 07 03:56 PM
writing macro to convert excel to pdf matt Excel Discussion (Misc queries) 5 February 23rd 07 12:50 AM
convert a formula into a macro Dave F Excel Discussion (Misc queries) 2 December 11th 06 10:34 PM
Macro to convert Name of worksheet G Setting up and Configuration of Excel 7 November 22nd 05 09:31 PM
Convert hhhh:mm:ss to hh:mm:ss (macro ?) BT Bill Excel Worksheet Functions 1 March 8th 05 08:50 AM


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