#1   Report Post  
Pam Coleman
 
Posts: n/a
Default formula question

If I have numbers in col a and col b and I have a formula in col c that is
a1-b1, then in c2, I have the same formula + what is added in c1, and the
same all the way down, (keeping a running total). Question, is there a way
to have in col c an automatically way to have the formula without me having
to drag or copy down, so when I type in the numbers in a and b it will run
the formula and keep the running total from the cell above.
  #2   Report Post  
Peo Sjoblom
 
Posts: n/a
Default

I am not sure I understand you but you might want to check "extend list
formats and formulas" under toolsoptionsedit

--

Regards,

Peo Sjoblom

"Pam Coleman" wrote in message
...
If I have numbers in col a and col b and I have a formula in col c that is
a1-b1, then in c2, I have the same formula + what is added in c1, and the
same all the way down, (keeping a running total). Question, is there a

way
to have in col c an automatically way to have the formula without me

having
to drag or copy down, so when I type in the numbers in a and b it will run
the formula and keep the running total from the cell above.



  #3   Report Post  
Adam Harris
 
Posts: n/a
Default

starting in row 2 you could try:

C2 =A2-B2+C1

"Peo Sjoblom" wrote:

I am not sure I understand you but you might want to check "extend list
formats and formulas" under toolsoptionsedit

--

Regards,

Peo Sjoblom

"Pam Coleman" wrote in message
...
If I have numbers in col a and col b and I have a formula in col c that is
a1-b1, then in c2, I have the same formula + what is added in c1, and the
same all the way down, (keeping a running total). Question, is there a

way
to have in col c an automatically way to have the formula without me

having
to drag or copy down, so when I type in the numbers in a and b it will run
the formula and keep the running total from the cell above.




  #4   Report Post  
Bernard Liengme
 
Posts: n/a
Default

How about Find & Replace?
--
Bernard V Liengme
www.stfx.ca/people/bliengme
remove caps from email

"Ian" wrote in message
...
Is it possible to clear the contents of a cell if if contains a certain
text strings, i.e. I want to clear all cells in a particular column that
contain the phrases "son of", "dau of" and "wife of".

Thanks in advance.



  #5   Report Post  
Ron Rosenfeld
 
Posts: n/a
Default

On Sat, 09 Apr 2005 14:07:18 GMT, Ian wrote:

Is it possible to clear the contents of a cell if if contains a certain
text strings, i.e. I want to clear all cells in a particular column that
contain the phrases "son of", "dau of" and "wife of".

Thanks in advance.


You could use a VBA macro:

=========================
Sub ClearSpecial()
Dim i As Long, Count As Long
Dim c As Range
Dim Phrases As Variant

Phrases = Array("son of", "dau of", "wife of")

For Each c In Selection
For i = 0 To UBound(Phrases)
If InStr(c.Text, Phrases(i)) 0 Then
c.Clear
Count = Count + 1
End If
Next i
Next c

MsgBox (Str(Count) & " cells cleared")

End Sub
============================

To enter the macro, <alt-F11 opens the VB Editor.
Ensure your project is highlighted in the project explorer window, then
Insert/Module and paste the above code into the window that opens.

To use the macro, select the range containing the cells you wish to
conditionally clear. Then <alt-F8 opens the Macro Dialog box. Select your
macro and run it.

Many variations are possible depending on your precise requirements.


--ron


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
formula (IF) question Drew Halevy Excel Worksheet Functions 7 February 2nd 05 07:19 PM
Formula Question JDT Excel Discussion (Misc queries) 2 January 30th 05 01:17 PM
formula Question danlinksman Excel Discussion (Misc queries) 3 January 25th 05 02:07 PM
Parsing Data w/ a Formula (another question) carl Excel Worksheet Functions 2 December 3rd 04 06:51 PM
SUM array formula question Dan Excel Worksheet Functions 6 November 8th 04 05:49 AM


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