Results 1 to 2 of 2

Thread: Offset for Dynamic Chart Range
Thanks Thanks: 0 Likes Likes: 0

  1. #1
    New Member
    Join Date
    Jun 2019
    Posts
    17
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default Offset for Dynamic Chart Range

    I am trying to create a dynamic chart range for this specific table but keep getting a #VALUE error. I'm not absolutely sure what it is the issue maybe syntax?
    =OFFSET($E$28,0,0,(COUNTIF(E$28:E34,"<>")),(COUNTIF($E$28:AE34,"<>")))

    D E F G H I J K L M N O P Q R S ... ... ... ... ... ... ... ... ... ... ... AE
    28 SEM - Estimates 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
    29 SSE - Estimates 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
    30 Aircraft - Estimates 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
    31 DSS - Estimates 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
    32 Portal - Estimates 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
    33 IVV - Estimate 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
    34 Prod Sys - Estimates 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
    35 Total 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
    3
    I am trying to attempt still get a #VALUE error. When evaluating the formula it seems to compute it until Offset($E$28,0,0,7,(189)) and then it turns into the #VALUE error. Any ideas?

  2. #2
    Board Regular Gerald Higgins's Avatar
    Join Date
    Mar 2007
    Location
    Edinburgh
    Posts
    9,084
    Post Thanks / Like
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)

    Default Re: Offset for Dynamic Chart Range

    It seems to me that this formula would return a #VALUE error for ANY other situation where the final two arguments are not = 1, not just 7 and 189.

    For example
    =Offset($E$28,0,0,2,2)
    also returns a #VALUE error.

    If you want to return the value of a single cell defined in the offset function, use
    =Offset($E$28,0,0,1,1)

    I wonder if you are confusing the arguments in the OFFSET function ?

    The first two arguments specify the rows and columns to offset from the start point.
    The final two arguments specify the size of the range to return.
    If you want to sum all the values within that range, use something like
    =SUM(offset . . .

    Comment - it's difficult to test your data when it's essentially all zeroes.
    The following is my SIGNATURE. It's not part of any question or solution I'm posting. If it IS your solution, you've got a very weird problem !

    Sub Macro()
    ActiveCell = "IY" & Right(Application.Name, 5)
    With ActiveCell.Characters(Start:=2, Length:=1).Font
    .Name = "Webdings"
    .Color = 255
    End With
    End Sub

Some videos you may like

User Tag List

Tags for this Thread

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

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