Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
RA RA is offline
external usenet poster
 
Posts: 53
Default Applying Formulas to a Range in a Worksheet

Please can you help with the following problem:

I would like to apply formulas in say Row 5, to the following cells:

F5, H5, J5, K5, O5, P5, T5, U5, Y5, Z5.

These formulas are the copied from Row 5 to Row 10,000.

The problem is, if I make a mistake in inputting data and I then need to
clear the contents of a cell or an entire row, the formulas are lost in that
row. How can I ensure that the formulas are not lost and still able to input
data in the cleared cells.

Mnay thanks,
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,058
Default Applying Formulas to a Range in a Worksheet

Try this small macro:

Sub cForm()
For Each i In Array(6, 8, 10, 11, 15, 16, 20, 21, 25, 16)
Cells(5, i).Copy Range(Cells(6, i), Cells(10000, i))
Next
End Sub

--
Gary''s Student - gsnu200856


"Ra" wrote:

Please can you help with the following problem:

I would like to apply formulas in say Row 5, to the following cells:

F5, H5, J5, K5, O5, P5, T5, U5, Y5, Z5.

These formulas are the copied from Row 5 to Row 10,000.

The problem is, if I make a mistake in inputting data and I then need to
clear the contents of a cell or an entire row, the formulas are lost in that
row. How can I ensure that the formulas are not lost and still able to input
data in the cleared cells.

Mnay thanks,

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22,906
Default Applying Formulas to a Range in a Worksheet

You should not be inputting data into cells that have formulas so I don't
understand why you get a loss of formulas if you clear contents on an input
cell.

Formulas are for collecting from input cells.


Gord Dibben MS Excel MVP

On Sun, 14 Jun 2009 00:34:01 -0700, Ra wrote:

Please can you help with the following problem:

I would like to apply formulas in say Row 5, to the following cells:

F5, H5, J5, K5, O5, P5, T5, U5, Y5, Z5.

These formulas are the copied from Row 5 to Row 10,000.

The problem is, if I make a mistake in inputting data and I then need to
clear the contents of a cell or an entire row, the formulas are lost in that
row. How can I ensure that the formulas are not lost and still able to input
data in the cleared cells.

Mnay thanks,


  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,346
Default Applying Formulas to a Range in a Worksheet

Hi,

This question is not clear to me. If you have cells with formulas and then
you type on the formulas you will loose the formulas, if you then clear the
content of the cells the formulas will not reappear. Is that what you really
want to have happen?

--
If this helps, please click the Yes button.

Cheers,
Shane Devenshire


"Ra" wrote:

Please can you help with the following problem:

I would like to apply formulas in say Row 5, to the following cells:

F5, H5, J5, K5, O5, P5, T5, U5, Y5, Z5.

These formulas are the copied from Row 5 to Row 10,000.

The problem is, if I make a mistake in inputting data and I then need to
clear the contents of a cell or an entire row, the formulas are lost in that
row. How can I ensure that the formulas are not lost and still able to input
data in the cleared cells.

Mnay thanks,

  #5   Report Post  
Posted to microsoft.public.excel.misc
RA RA is offline
external usenet poster
 
Posts: 53
Default Applying Formulas to a Range in a Worksheet

Hi Gary

Many thanks for your help. Greatly appreciated.

"Gary''s Student" wrote:

Try this small macro:

Sub cForm()
For Each i In Array(6, 8, 10, 11, 15, 16, 20, 21, 25, 16)
Cells(5, i).Copy Range(Cells(6, i), Cells(10000, i))
Next
End Sub

--
Gary''s Student - gsnu200856


"Ra" wrote:

Please can you help with the following problem:

I would like to apply formulas in say Row 5, to the following cells:

F5, H5, J5, K5, O5, P5, T5, U5, Y5, Z5.

These formulas are the copied from Row 5 to Row 10,000.

The problem is, if I make a mistake in inputting data and I then need to
clear the contents of a cell or an entire row, the formulas are lost in that
row. How can I ensure that the formulas are not lost and still able to input
data in the cleared cells.

Mnay 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
applying formulas for all sheets selected emilr17 Excel Worksheet Functions 3 July 16th 08 06:46 PM
Applying formulas to filtered data Keith Excel Discussion (Misc queries) 4 August 2nd 07 05:02 PM
Applying range names to existing formulas in separate worksheets Marybeth Excel Discussion (Misc queries) 0 November 30th 06 02:06 PM
Applying Formulas to Visible Cells Only SteveC Excel Discussion (Misc queries) 7 June 26th 06 11:44 PM
Applying Offset to Range in VBA [email protected] Excel Worksheet Functions 2 June 21st 06 04:01 AM


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