+ Reply to Thread
Results 1 to 8 of 8

Indirect function with "" in it

  1. #1
    Forum Contributor
    Join Date
    06-19-2014
    Location
    Toronto, Canada
    MS-Off Ver
    Office365
    Posts
    273

    Indirect function with "" in it

    Hello,

    I'm using this function to pull the last value in a column, but I need to replace with Indirect as my macro constantly delete and replace the tabs.

    this gave me error, I think it has something to do with the "" as part of the indirect, can someone please help?

    =LOOKUP(2,1/(INDIRECT("'"K22&"'!Q:Q<>"")),Indirect("'"&K22&"'!Q:Q"))

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

    Re: Indirect function with "" in it

    You will need to double-up the "" in the middle of the formula, i.e.:

    … Q:Q<>"""" …

    Hope this helps.

    Pete

  3. #3
    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
    43,893

    Re: Indirect function with "" in it

    Try this:

    =LOOKUP(2,1/(INDIRECT("'"&K22&"'!Q:Q")<>""),INDIRECT("'"&K22&"'!Q:Q"))
    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

  4. #4
    Forum Contributor
    Join Date
    06-19-2014
    Location
    Toronto, Canada
    MS-Off Ver
    Office365
    Posts
    273

    Re: Indirect function with "" in it

    oh I see where I did wrong...thank you so much for your help!!

  5. #5
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,419

    Re: Indirect function with "" in it

    Missing & in first part of the formula and a quote

    =LOOKUP(2,1/(INDIRECT("'"&K22&"'!Q:Q<>""")),INDIRECT("'"&K22&"'!Q:Q"))
    Cheers
    Andy
    www.andypope.info

  6. #6
    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
    43,893

    Re: Indirect function with "" in it

    Who were you talking to??

  7. #7
    Forum Contributor
    Join Date
    06-19-2014
    Location
    Toronto, Canada
    MS-Off Ver
    Office365
    Posts
    273

    Re: Indirect function with "" in it

    Glenn, yours worked perfectly! thanks for everyone though for your time!

  8. #8
    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
    43,893

    Re: Indirect function with "" in it

    Great! You're welcome.



    If that takes care of your original question, please select "Thread Tools" from the menu link above and mark this thread as SOLVED.

    It'd also be appreciated if you were to click the Add Reputation button at the foot of any of the posts of all members who helped you reach a solution.

+ 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] drag-across of INDIRECT function does not change cell reference between " " marks
    By Pilly Ears in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 03-07-2018, 06:56 AM
  2. [SOLVED] Use "INDIRECT" Function to reference sheet
    By PJenkins in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-01-2017, 10:10 PM
  3. [SOLVED] drag-down of indirect function does not change cell reference within " "
    By alsan in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-15-2016, 07:09 AM
  4. [SOLVED] Changing an indirect function to "Index / Match"
    By Keldion in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 03-09-2016, 06:36 PM
  5. [SOLVED] function or formula to put data to ... or indirect addressing in form "check box"
    By Algirdas in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-30-2012, 04:39 AM
  6. how to adjust chart series formula to include the "indirect" function
    By luv2glyd in forum Excel Charting & Pivots
    Replies: 13
    Last Post: 06-13-2010, 07:35 AM
  7. [SOLVED] [SOLVED] VBA does not recognize Excel worksheet function &quot;indirect&quot;
    By Todkerr in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-12-2005, 04:05 PM

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