+ Reply to Thread
Results 1 to 8 of 8

indirect returns text i double quotes

  1. #1
    Forum Contributor
    Join Date
    03-29-2013
    Location
    lakewood, usa
    MS-Off Ver
    exce2013
    Posts
    112

    indirect returns text i double quotes

    in the attached the formula in E5 is to return the average of the smallest 3 numbers in D5:D10. reference in g5 returnsthe correct value of {1,2,3} but when used in the formula of Average(small($D5:$d10,g5)) the contents of g5 is returned as "{1,2,3}". this causes a value error.
    Attached Files Attached Files

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: indirect returns text i double quotes

    Maybe

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Forum Contributor
    Join Date
    03-29-2013
    Location
    lakewood, usa
    MS-Off Ver
    exce2013
    Posts
    112

    Re: indirect returns text i double quotes

    The count to average is dynamic. See the new Attachment.
    Attached Files Attached Files

  4. #4
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: indirect returns text i double quotes

    Hi,

    If you'll accept a single number e.g. 4 instead of {1,2,3,4} and an array formula then the following array formula (entered with Ctrl Shift Enter), will do what you want

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    See attached.
    Attached Files Attached Files

  5. #5
    Forum Contributor
    Join Date
    03-29-2013
    Location
    lakewood, usa
    MS-Off Ver
    exce2013
    Posts
    112

    Re: indirect returns text i double quotes

    Thanks Richard, Looks like this will solve the problem. I will use it in the work sheet that is much more complex.
    Any place to reference the double quotes that return the {1,2,3}. I found the same using vlookup.

  6. #6
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: indirect returns text i double quotes

    Hi,
    If your question is about using Indirect to reference the string {1,2,3} then I don't think so.
    But hey, when I say something is not possible then it's often the case that I'm shown to be wrong!

    I don't think it's possible since I believe the {} symbols can only be manually added within a function - like say a Lookup. I don't believe an Indirect can interpret them.

  7. #7
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: indirect returns text i double quotes

    Withdrawn by FR. Referenced wrong cell in INDIRECT.
    Last edited by FlameRetired; 12-06-2017 at 02:36 PM.
    Dave

  8. #8
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: indirect returns text i double quotes

    I'll try again. Piggy-backing on Richard's formula this is convoluted. Array entered.
    Formula: copy to clipboard
    Please Login or Register  to view this content.

+ 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] Pasting text with double quotes
    By Bob Anderson in forum Excel General
    Replies: 12
    Last Post: 03-25-2020, 04:06 PM
  2. SQL to count double quotes in a text file
    By Deutz in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-15-2015, 10:49 PM
  3. If statement returns #value instead of in quotes text
    By darpodo in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-28-2013, 11:14 AM
  4. [SOLVED] Double Quotes using Chr(34) and Extra Quotes when saving as text file
    By vamosj in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 07-26-2013, 12:26 PM
  5. Double Quotes in text with if condition
    By kishoremcp in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 12-11-2012, 03:02 AM
  6. Need double quotes when importing .csv file into text editor
    By rachelalbert in forum Excel General
    Replies: 0
    Last Post: 07-04-2012, 01:40 PM
  7. Replies: 4
    Last Post: 08-10-2005, 10: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