Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
nastech
 
Posts: n/a
Default Exclude Header from Range?

Hi, can I exclude a header from a range in an equation, i.e.: "C:D" to
exclude 5 rows from the top? Thanks
  #2   Report Post  
Posted to microsoft.public.excel.misc
Roger Govier
 
Posts: n/a
Default Exclude Header from Range?

Hi

Depends what you are trying to do.
You could have =SUM(C:D)-SUM(C1:D5) for example.

--
Regards

Roger Govier


"nastech" wrote in message
...
Hi, can I exclude a header from a range in an equation, i.e.: "C:D" to
exclude 5 rows from the top? Thanks



  #3   Report Post  
Posted to microsoft.public.excel.misc
nastech
 
Posts: n/a
Default Exclude Header from Range?

using: (must be doing something wrong)
=SUM(C:D)-SUM(C1:D5) or =SUM(C6:D65000)

Ran into a problem tried both, may have worked, but received: runtime
error, method of range failed
If Not Intersect(Me.Range("SUM(AK:AK)-SUM(AK1:AK35)"), .Cells) Is
Nothing Then
If Not Intersect(Me.Range("SUM(AK35:AK6500)"), .Cells) Is Nothing Then

the following works, without using above
Option Explicit
Private Sub Worksheet_Change(ByVal Target As Excel.Range)
With Target
If .Count 1 Then Exit Sub
If Not Intersect(Me.Range("AK:AK"), .Cells) Is Nothing Then
Application.EnableEvents = False
With Me.Cells(.Row, "AH")
.NumberFormat = "dd"
.Value = Now
End With
Application.EnableEvents = True
End If
If Not Intersect(Me.Range("AN:AQ"), .Cells) Is Nothing Then
Application.EnableEvents = False
With Me.Cells(.Row, "AV")
.NumberFormat = "dd"
.Value = Now
End With
Application.EnableEvents = True
End If
End With
End Sub

XXXXXXXXXX

"Roger Govier" wrote:

Hi

Depends what you are trying to do.
You could have =SUM(C:D)-SUM(C1:D5) for example.

--
Regards

Roger Govier


"nastech" wrote in message
...
Hi, can I exclude a header from a range in an equation, i.e.: "C:D" to
exclude 5 rows from the top? Thanks




  #4   Report Post  
Posted to microsoft.public.excel.misc
Rich
 
Posts: n/a
Default Exclude Header from Range?

=SUM(c6:d65000)
or equilavant equation
"nastech" wrote:

Hi, can I exclude a header from a range in an equation, i.e.: "C:D" to
exclude 5 rows from the top? Thanks

  #5   Report Post  
Posted to microsoft.public.excel.misc
nastech
 
Posts: n/a
Default Exclude Header from Range?

using: (must be doing something wrong)
=SUM(C:D)-SUM(C1:D5) or =SUM(C6:D65000)

Ran into a problem tried both, may have worked, but received: runtime
error, method of range failed
If Not Intersect(Me.Range("SUM(AK:AK)-SUM(AK1:AK35)"), .Cells) Is
Nothing Then
If Not Intersect(Me.Range("SUM(AK35:AK6500)"), .Cells) Is Nothing Then

the following works, without using above
Option Explicit
Private Sub Worksheet_Change(ByVal Target As Excel.Range)
With Target
If .Count 1 Then Exit Sub
If Not Intersect(Me.Range("AK:AK"), .Cells) Is Nothing Then
Application.EnableEvents = False
With Me.Cells(.Row, "AH")
.NumberFormat = "dd"
.Value = Now
End With
Application.EnableEvents = True
End If
If Not Intersect(Me.Range("AN:AQ"), .Cells) Is Nothing Then
Application.EnableEvents = False
With Me.Cells(.Row, "AV")
.NumberFormat = "dd"
.Value = Now
End With
Application.EnableEvents = True
End If
End With
End Sub

XXXXXXXXXX



"Rich" wrote:

=SUM(c6:d65000)
or equilavant equation
"nastech" wrote:

Hi, can I exclude a header from a range in an equation, i.e.: "C:D" to
exclude 5 rows from the top? 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
Help PLEASE! Not sure what answer is: Match? Index? Other? baz Excel Worksheet Functions 7 September 3rd 05 03:47 PM
How do I edit a Named Range using macro's behmer Excel Worksheet Functions 2 July 26th 05 09:02 PM
Reveal cell formats and extendable range in tool/statusbar/icon. Danny O'Hern ([email protected]) Excel Worksheet Functions 0 April 29th 05 01:16 PM
Can a formula check for a certain value in a range? Lee IT Excel Discussion (Misc queries) 3 April 8th 05 07:36 AM
named range refers to: in a chart Spencer Hutton Excel Discussion (Misc queries) 1 December 14th 04 10:15 PM


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