+ Reply to Thread
Results 1 to 5 of 5

#VALUE! Error with INDIRECT Formula

  1. #1
    Registered User
    Join Date
    11-12-2015
    Location
    Philippines
    MS-Off Ver
    2013
    Posts
    3

    #VALUE! Error with INDIRECT Formula

    Hi Everyone!

    Good day!

    I would like to seek help on this forum regarding the problem I'm encountering with INDIRECT function (see attached file). I'm not new on using INDIRECT, however, the situation like that on the sample file puzzles me. Is there any rule on INDIRECT function that I'm not aware of?

    Goal

    1.PNG

    I have a list of names on range A3:A9. I would like to make a list composed of unique names (no name is repeated) at range D3:D9. The expected output is shown at range C3:C9.


    Problem:
    I'm trying to refer a range that is constructed with INDIRECT, however, the formula returns an error when generating the range (see the following figures).

    Formula showing the constructed range
    2.PNG

    Formula showing the error
    3.PNG


    Code:
    Please Login or Register  to view this content.
    I tried skipping the INDIRECT function and the code works (range E3:E9) proving that there's no problem with the programming (see figure below).
    INDIRECT Function Skipped
    4.PNG



    I know I could use the COUNTIF as replacement for the SUM-INDIRECT for my goal, still, I want to know why the formula doesn't work.

    Thanks in advance!


    Warmest Regards,
    Emerson
    Attached Files Attached Files

  2. #2
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,446

    Re: #VALUE! Error with INDIRECT Formula

    Try =IF(COUNTIF($B$3:B4,B4)=1,B4,"") in C3 and pull down

  3. #3
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,446

    Re: #VALUE! Error with INDIRECT Formula

    As for your formula INDIRECT returns a range of text that you are trying to sum, returning the VALUE error

  4. #4
    Registered User
    Join Date
    11-12-2015
    Location
    Philippines
    MS-Off Ver
    2013
    Posts
    3

    Re: #VALUE! Error with INDIRECT Formula

    Hello Pepe Le Mokko!

    Thanks for the reply.

    Quote Originally Posted by Pepe Le Mokko View Post
    Try =IF(COUNTIF($B$3:B4,B4)=1,B4,"") in C3 and pull down
    Yes, I've also mentioned it at the bottom part of my post. The purpose of my post is to know the explanation why the INDIRECT is returning an error.

    Quote Originally Posted by Pepe Le Mokko View Post
    As for your formula INDIRECT returns a range of text that you are trying to sum, returning the VALUE error
    I used double minus ('--') in the formula to convert the TRUE/FALSE to number 1/0 so I think it is valid. I've also shown on the last figure a table with a column that the INDIRECT function part is skipped and the result returned is as intended (see column E of the last figure) proving that there's nothing wrong in the code.


    So any more ideas why the code returns an error?


    Thanks a lot!

    Emerson

  5. #5
    Registered User
    Join Date
    11-12-2015
    Location
    Philippines
    MS-Off Ver
    2013
    Posts
    3

    Re: #VALUE! Error with INDIRECT Formula

    Up

    I'm really curious what's happening in the code. Thanks!

+ 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. [SOLVED] Indirect formula Error
    By Neilesh Kumar in forum Excel General
    Replies: 11
    Last Post: 12-19-2017, 01:07 PM
  2. #VALUE! ERROR: INDIRECT formula not working
    By omijoshi88 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 05-09-2016, 09:43 PM
  3. [SOLVED] Indirect Formula Causes #N/A Error
    By Steve0492 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 05-21-2013, 05:51 AM
  4. Problem with indirect formula and ref error
    By amartino44 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-07-2013, 07:37 PM
  5. [SOLVED] Can you please help with an INDIRECT formula error?
    By Stephen01 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 08-06-2012, 11:27 PM
  6. Excel 2007 : Indirect formula error.
    By as13mar in forum Excel General
    Replies: 0
    Last Post: 07-13-2012, 05:47 AM
  7. Vlookup error from indirect formula
    By toclare84 in forum Excel General
    Replies: 5
    Last Post: 10-05-2010, 12:24 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