+ Reply to Thread
Results 1 to 10 of 10

Excel 2016 INDIRECT() error

  1. #1
    Registered User
    Join Date
    05-06-2017
    Location
    Canada
    MS-Off Ver
    Office 365 subscription
    Posts
    44

    Excel 2016 INDIRECT() error

    Hi, I have some data in Column A. In Column B2 I type: A2:A15 and in C2 I type =INDIRECT(B2), in Excel 365 I get the data that is referenced with a thin blue frame, in Excel 2016 I get the #Value! error. Does this not work in Excel 2016 or is there some trick to it or error on my part?

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,023

    Re: Excel 2016 INDIRECT() error

    Try:

    =INDIRECT("B2")
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  3. #3
    Forum Expert
    Join Date
    09-30-2019
    Location
    Chiangmai, Thailand
    MS-Off Ver
    Office 2016, Excel 2019
    Posts
    1,234

    Re: Excel 2016 INDIRECT() error

    For me, on Excel 2016.
    It's work when press Ctrl-Shift-Enter for array formula.

    Regards.

  4. #4
    Registered User
    Join Date
    05-06-2017
    Location
    Canada
    MS-Off Ver
    Office 365 subscription
    Posts
    44

    Re: Excel 2016 INDIRECT() error

    Quote Originally Posted by Glenn Kennedy View Post
    Try:

    =INDIRECT("B2")
    This shows the text that is written in Cell B2: literally "A2:A15"

    I attached two screenshots, I tried the Ctrl-Shift-Enter method, the formula gets enclosed in curly brackets and I only get the first value of the array, in this case: "1" - if I drag the formula down, it says #VALUE! ...

    The first image is with Show Formulas option enabled. Light one is 2016 - Dark one is 365 ( And 2016 is in German, so it is not a typo it is spelled with K)
    Attached Images Attached Images

  5. #5
    Forum Expert
    Join Date
    09-30-2019
    Location
    Chiangmai, Thailand
    MS-Off Ver
    Office 2016, Excel 2019
    Posts
    1,234

    Re: Excel 2016 INDIRECT() error

    what do you want to do with the range ?
    if you use 'range' in the indirect it's can only show the first (or last) element in the range.
    (while the result will be different in o365)

    Regards.

  6. #6
    Valued Forum Contributor
    Join Date
    07-23-2013
    Location
    London, England
    MS-Off Ver
    Office 365
    Posts
    988

    Re: Excel 2016 INDIRECT() error

    You could try:

    =INDEX(INDIRECT($B$2),ROWS($C$2:C2))

    And then copy down. It will show values for however many are in the range in B2 (so in the example, for the first 14 rows), and then show a #REF! error in subsequent rows. You could wrap it in an IFERROR to make it show blank, if that is desired.

  7. #7
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,023

    Re: Excel 2016 INDIRECT() error

    I think we're all missing the point here (except possibly for menem!!). WHY do you want to do this? In 99% of times when someone uses INDIRECT there is a far better way of achieving the result.

    Can you show us (on a sheet... not on a picture of one) what you are wanting to DO with the values in A2:A15.

  8. #8
    Registered User
    Join Date
    05-06-2017
    Location
    Canada
    MS-Off Ver
    Office 365 subscription
    Posts
    44

    Re: Excel 2016 INDIRECT() error

    Ok I was interested in how Indirect works in gernal. Lets say the lists in my example on Sheet1 and Sheet2 will grow in the future, I do an Index(Match()) to see what items are not on either one Sheet. I wanted to use the Indirect function. It was mainly to A) understand INDIRECT and B) to shorten the formula INDEX(MATCH())
    Attached Files Attached Files

  9. #9
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,023

    Re: Excel 2016 INDIRECT() error

    Using INDIRECT is a bit like playing with nitroglycerine... unless you have to... don't.

    Uncomplicated MATCH formulae (i.e. without additional criteria) work perfectly well with whole column references. I'd use:

    =IF(B2="","",IF(ISNUMBER(MATCH(B2,Sheet1!A:A,0)),B2,B2&" is not in Sheet 1"))

    and

    =IF(Sheet1!A2="","",IF(ISNUMBER(MATCH(Sheet1!A2,Sheet2!B:B,0)),Sheet1!A2,Sheet1!A2&" is not in Sheet 2"))
    Attached Files Attached Files

  10. #10
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,723

    Re: Excel 2016 INDIRECT() error

    You could use this one in D3:

    =B2&IF(COUNTIF(Sheet1!A:A,B2),""," is not on Sheet1")

    Copy down as required.

    Hope this helps.

    Pete

+ 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: 1
    Last Post: 04-22-2021, 03:27 PM
  2. Print to pdf error in Excel 2016 for Mac
    By richbauer in forum Excel General
    Replies: 0
    Last Post: 11-15-2020, 05:56 PM
  3. Error 424 Excel 2016
    By Antoine80000 in forum Hello..Introduce yourself
    Replies: 1
    Last Post: 08-04-2020, 07:27 AM
  4. Dynamic Combobox searchfucntions 'Indirect' dropdownlist (VBA) (MS Office Excel Pro 2016)
    By arnoudholtzer in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-18-2018, 12:56 PM
  5. Replies: 1
    Last Post: 09-18-2017, 08:27 AM
  6. Excel 2016 Error in Formula or its a bug?
    By pattyyy in forum Excel General
    Replies: 16
    Last Post: 07-18-2016, 12:01 PM
  7. Excel Mac 2016 VBA error, need help
    By BlakeMile in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-23-2015, 03:09 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