+ Reply to Thread
Results 1 to 5 of 5

Formula works in Excel 2013, but not in Excel 2016

  1. #1
    Registered User
    Join Date
    10-14-2019
    Location
    Netherlands
    MS-Off Ver
    2016
    Posts
    2

    Unhappy Formula works in Excel 2013, but not in Excel 2016

    Hello all,

    I usually use this formula in Excel 2013, but after software changes at work, I found out it does not work in Excel 2016 - #NAME? error. Any idea how I could fix this? Is the formula wrong?

    =IF(INDIRECT("RC[1]",FALSE)=INDIRECT("R[-1]C[1]",FALSE),INDIRECT("R[-1]C",FALSE)+1,1)

    Thanks!

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Formula works in Excel 2013, but not in Excel 2016

    I am not getting an error using this in Excel 2019. I suspect there is something else going on in your sheet, like the contents of the cells you are referencing indirectly. Difficult to say without seeing your file. And the error is almost certainly due to something else that changed besides just the upgrade to 2016. Built-in names are generally backward compatible.

    ETR: brain fart
    Last edited by 6StringJazzer; 10-14-2019 at 07:27 PM.
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Formula works in Excel 2013, but not in Excel 2016

    That formula works for me.

    But try this alternative in D6 then move it to the cell you need it in. Fill down or fill right

    =IF(INDIRECT($E6)=INDIRECT($E5),INDIRECT($D5)+1,1)
    My General Rules if you want my help. Not aimed at any person in particular:

    1. Please Make Requests not demands, none of us get paid here.

    2. Check back on your post regularly. I will not return to a post after 4 days.
    If it is not important to you then it definitely is not important to me.

  4. #4
    Registered User
    Join Date
    10-14-2019
    Location
    Netherlands
    MS-Off Ver
    2016
    Posts
    2

    Re: Formula works in Excel 2013, but not in Excel 2016

    Mind you, I am really bad in Excel . The sheet has diverse article codes of 6 digits and I need to count how many of each are in the sheet.Knipsel.JPG

  5. #5
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Formula works in Excel 2013, but not in Excel 2016

    Make sure that your data is in column A starting at A2

    Open the name manager
    Create a new name "List" and in ther erefers to box use this formula =INDIRECT("A2:A" & MATCH(9^99,Sheet1!$A:$A))

    Enter this formula in B2 using Ctrl Shift Enter =IFERROR(INDEX(List,MATCH(0,COUNTIF($B$1:B1,List),0)),"")

    Enter this formula in C2 using enter =IF(B3="","",COUNTIF(A:A,B3))


    Select B2 and C2 and fill down until all you get are blanks.

+ 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. Excel 2013 or Excel 2016 32bit is very slow
    By cks1026 in forum Excel General
    Replies: 2
    Last Post: 07-22-2018, 04:52 AM
  2. Replies: 16
    Last Post: 07-01-2018, 11:11 AM
  3. Replies: 0
    Last Post: 06-06-2018, 03:54 AM
  4. Excel 2016 VBA to send email - old VBA (Excel 2010 no longer works)
    By Spewtress in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-17-2017, 01:53 PM
  5. Excel 2016 Exports PDF 10x the size of Excel 2013
    By oiltech999 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 11-16-2017, 07:20 PM
  6. Pivot Table Macro - Debug Error: Created in 2016 and works, does not work in Excel 2013
    By ashley72788 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 05-05-2017, 04:07 AM
  7. Excel 2013 and Excel 2016 still flickering after ScreenUpdating is off
    By catalystsystems in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-07-2017, 06:57 PM

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