+ Reply to Thread
Results 1 to 4 of 4

IF and INDIRECT formula returning #NAME?

  1. #1
    Registered User
    Join Date
    06-21-2022
    Location
    Cornwall, UK
    MS-Off Ver
    16.62
    Posts
    3

    IF and INDIRECT formula returning #NAME?

    I am struggling with an IF and INDIRECT formula that is returning #NAME?

    My formula is:

    =IF(INDIRECT('Course Details'!B9&"!K70")<>"", INDIRECT('Course Details'!B9&"!K70"),"")

    What I am trying to do is to pull in a number from K70 in the sheet that has the name that is referenced in B9 on the Course Details sheet. But if that cell is empty to leave my cell empty.



    The following formulas all work okay:

    =INDIRECT('Course Details'!B9&"!K70") this works fine and returns the number in the K70 cell of the sheet referred on in the Course Details cell B9.

    =IF(INDIRECT('Course Details'!B9&"!K70")<>"","y","n") also works fine and returns "y" if there are numbers in K70 on the sheet referred to, and "n" if not.


    But as soon as I swap out the "y" for the INDIRECT formula I get #NAME?


    I have probably not noticed something that will be glaringly obvious to others - but have stared at it long and hard and can't figure out why it doesn't return a value.

    Any help very gratefully accepted.

  2. #2
    Registered User
    Join Date
    06-21-2022
    Location
    Cornwall, UK
    MS-Off Ver
    16.62
    Posts
    3

    Re: IF and INDIRECT formula returning #NAME?

    Please ignore this anyone who is looking at it - I looked a bit longer and harder and found a rogue space in the formula!!!

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

    Re: IF and INDIRECT formula returning #NAME?

    Glad you found the answer yourself - maybe you should mark the thread as Solved, so others need not spend time on it.

    If that takes care of your original question, please take a moment to select Thread Tools from the menu above and to the right of your first post in this thread, and mark the thread as SOLVED.

    Pete

  4. #4
    Registered User
    Join Date
    06-21-2022
    Location
    Cornwall, UK
    MS-Off Ver
    16.62
    Posts
    3

    Re: IF and INDIRECT formula returning #NAME?

    Okay, done.
    Last edited by OwenA; 06-21-2022 at 09:11 PM.

+ 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 formla returning an error
    By Howardc1001 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 06-26-2019, 09:03 AM
  2. Replies: 12
    Last Post: 05-19-2016, 11:08 PM
  3. [SOLVED] Indirect-index-match formula is returning #Value
    By brent_excel in forum Excel General
    Replies: 3
    Last Post: 08-01-2014, 05:52 PM
  4. [SOLVED] Stop Indirect Formula returning zeros
    By pauldaddyadams in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-31-2013, 05:32 AM
  5. [SOLVED] INDIRECT returning #REF error when trying to convert string to formula
    By cwyn in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 12-04-2013, 08:15 PM
  6. [SOLVED] Indirect() formula returning #Ref error but cant see why
    By rikkyshh in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-23-2013, 10:03 AM
  7. Indirect.ext returning REF!
    By DaveLearner in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-10-2013, 09:42 AM

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