Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Worksheet Functions / October 2006

Tip: Looking for answers? Try searching our database.

copying formula

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Alex - 25 Oct 2006 10:57 GMT
Hi

I use the following to test the last character in a cell.
=IF(RIGHT(E4,1)="A","Yes","No").

When I add more rows, I am always forgetting to copy the formula down.  is
there anyway that i can set up the worksheet so that I dont have to remember

Thanks
A
Roger Govier - 25 Oct 2006 11:18 GMT
Hi Alex

If you have Excel 2003, then use Data>List to create your table.
Then as you add new rows, the formulae will automatically get added.

Signature

Regards

Roger Govier

> Hi
>
[quoted text clipped - 7 lines]
> Thanks
> A
vezerid - 25 Oct 2006 11:25 GMT
Alex,

you can achieve this using a VBA event procedure on the change event.

Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Column = 5 And Target.Cells.Count = 1 Then
   Target.Offset(0, 1).FormulaR1C1 = Cells(4, 6).FormulaR1C1
End If
End Sub

This procedure assumes that you are building your formula in column F:F
and that the first formula that you want to copy is in F4. It will fire
whenever you make a change in a cell in column E:E and it will copy the
formula of F4 into the cell right of the recently changed cell.

To install:
Right-click the sheet tab where you are building your data/formulas.
Choose Edit Code.
Paste the above code in the window that comes up.

HTH
Kostis Vezerides

> Hi
>
[quoted text clipped - 6 lines]
> Thanks
> A
Alex - 25 Oct 2006 11:49 GMT
Thanks Both

> Hi
>
[quoted text clipped - 7 lines]
> Thanks
> A
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.