+ Reply to Thread
Results 1 to 2 of 2

Dynamic named range error - cannot add formula

  1. #1
    Registered User
    Join Date
    11-10-2016
    Location
    Nelspruit
    MS-Off Ver
    2013
    Posts
    1

    Dynamic named range error - cannot add formula

    Hi,

    This post is just to help if you experience the same problem I have experienced.

    First of all, I am from South Africa and I'll explain why this actually caused the error.

    I am new to VBA and coding and find the tutorials on the internet very helpfull in achieving my goal but I was ready to give up after experiencing an error which I couldn't figure out for 2 days. When creating a dynamic named range you will use a formula simmilar to "=OFFSET(Data!$N$9,0,0,COUNTA(Data!$N$9:$N$9989),7)". I would keep getting an error when trying to save this in Name Manager and could not see anything wrong with the formula as I copied it directly from a tutorial which seemed to work just fine.

    Long story short, the error was caused by the seperators (commas) used in the formula. Being from South Africa, I have set up my Region to "English (South Africa)" and for some reason this causes the seperators not to be regognized by excel. The moment I changed to "English (United States)", the error message dissapeared and the dynamic named range functioned as intended.

    Hope this helps someone to figure out what's wrong if you experience the same.

    Regards

    Douglas

  2. #2
    Registered User
    Join Date
    12-11-2019
    Location
    Stockholm, Sweden
    MS-Off Ver
    365
    Posts
    1

    Re: Dynamic named range error - cannot add formula

    This helped me with a problem had struggled with for days.

    Turns out, even if you are using ; (semi-colon) as the separator for formulas in Excel VBA will want , (comma) as separator when entering formulas to be used in Excel. I was creating named ranges with the help of VBA, using OFFSET and thought I should use ; as this is what I use in Excel. If anyone else has the same problem.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 0
    Last Post: 03-08-2016, 02:25 PM
  2. Remove Blanks With Dynamic Named Range - Error with the formula
    By Tepsjen in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 12-23-2014, 05:34 PM
  3. [SOLVED] Populating ComboBox using dynamic named range - Error
    By TC1980 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-16-2014, 05:42 AM
  4. Error with Dynamic named range
    By kalisimone in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 12-03-2013, 02:52 PM
  5. getting an error when creating a dynamic named range
    By emesgee in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-21-2013, 10:37 PM
  6. N/A Error on a dynamic named range
    By PelleCadol in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-14-2011, 08:19 AM
  7. Trapping error from Empty Dynamic Named Range
    By Casey in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-13-2006, 10:45 AM

Tags for this Thread

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