+ Reply to Thread
Results 1 to 11 of 11

Define Dynamic Range prob, searched.

  1. #1
    Registered User
    Join Date
    06-11-2008
    Posts
    4

    Define Dynamic Range prob, searched.

    I need to define a dynamic range for a Pivot Chart. I've read several "How-To" and came across the write formula to use. My range consists of the entire table on my sheet "data" from A1 to F390. This data will be updated every quarter so I need my pivot table's range to be updated with it.

    I'm using excell 2000. The data contains numbers and letters, depending on the column

    Problem: I go to Insert>Name, name the range "Data" and type"
    =OFFSET(data!$A$1,0,0,COUNTA(data1!$A:$A),COUNTA(data!$1:$1))

    I get an error saying the formula I typed contains and errror etc. When I click OK, =OFFSET(data!$A$1,0,0,COUNTA(data1!$A:$A),COUNTA(data!$1:$1)) The red text is highlighted.

    I've tried many time to change things. I also tried it with just a 1 at the end to remove the dynamic count of column number. There aren't any empty cells. I searched to find nothing remotely close. This seems to normally be a pretty routine function, what am I missing?

    Thanks for the help

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    If I copy/paste your formula in my Named Range, I get no errors.

    What exactly is your error?

    Are you sure you typed it as you did here... Named Range formulas have to be syntactically correct (even closing parentheses)... Excel doesn't put it in for you like it does if the formula were in a spreadsheet cell....
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,437
    Do you have a sheet Data1 ?
    Cheers
    Andy
    www.andypope.info

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    Quote Originally Posted by Andy Pope
    Do you have a sheet Data1 ?
    Yeah, I noticed that too and forgot to mention it... You have Data! and Data1! in your formula...meaning you should have 2 sheets..

  5. #5
    Registered User
    Join Date
    06-11-2008
    Posts
    4
    No I don't have a data1, I typed copied it to the thread improperly. It is just "data" in the spreadsheet.

    The exact error reads:
    "The formula you typed contains an error.
    - For information about fixing common formula problems, click help.
    - to get assistance in entering functions, click OK, then click Function on the insert menu.
    - If you are not trying to enter a formual, avoid using an equal sign or minus sign or precede it with a single quotation mark."

    To clarify, the exact formula I tpyed is. "=OFFSET(data!$A$1,0,0,COUNTA(data!$A:$A),1)"

    just one sheet named "data"

    thanks for the quick replies.

  6. #6
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    I still get no error if I paste your formula in my sheet....

    I really think you are typing something in your formula field with a typo or syntactically incorrect.

    Not sure if it will help much, but maybe you can attach your spreadsheet?

  7. #7
    Registered User
    Join Date
    06-11-2008
    Posts
    4
    Well, If it works for you, and I copy and pasted it right out of the refers to box, it should be syntactically correct, at least I would reason to believe.

    The only thing I can think of is that the computer I'm on has a different keyboard, uk maybe, from a French company, so the software could be different and somewhere between the keyboard and the software translating to english it gets jumbled? I dunno, just a wild guess.

    The data is pretty sensative so I can't post it ufortunately. Are there any other conditions that need to be fulfilled with the data or the table for this to work properly.

  8. #8
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    Try replacing all the commas with semicolons...

  9. #9
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,437
    The example file only needs the Named range that generates the error.

    Simply replace the data with 1's and A's. Presumably the error still remains.

    It should not make a difference but try another name for your range that is not the same as the sheet.

  10. #10
    Registered User
    Join Date
    06-11-2008
    Posts
    4
    Quote Originally Posted by NBVC
    Try replacing all the commas with semicolons...

    Genius!! I don't know why but that worked. Thank you!

  11. #11
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    Quote Originally Posted by kagraham
    Genius!! I don't know why but that worked. Thank you!
    Some versions of Excel (mainly in Europe) use semicolons to separate the arguments in formulas rather than commas. When you mentioned you French software... it triggered the assumption that the commas were the problem here.

+ 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