+ Reply to Thread
Results 1 to 5 of 5

Exclude Header from Range?

  1. #1
    nastech
    Guest

    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. #2
    Roger Govier
    Guest

    Re: 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" <nastech@discussions.microsoft.com> wrote in message
    news:9F8FBB8F-8978-42CE-8797-1809B8CA39C9@microsoft.com...
    > 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. #3
    Rich
    Guest

    RE: 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


  4. #4
    nastech
    Guest

    Re: 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" <nastech@discussions.microsoft.com> wrote in message
    > news:9F8FBB8F-8978-42CE-8797-1809B8CA39C9@microsoft.com...
    > > 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. #5
    nastech
    Guest

    RE: 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 to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1