+ Reply to Thread
Results 1 to 4 of 4

Having problem trying to use array with indirect function

  1. #1
    Registered User
    Join Date
    04-04-2018
    Location
    NS, Canada
    MS-Off Ver
    2007
    Posts
    2

    Question Having problem trying to use array with indirect function

    I have the following function working

    =COUNTIF(INDIRECT("RC[-2]",0),"*"&INDIRECT("R[-1]C[-2]",0)&"*")

    However I am trying to expand it and get it to work with the previous 2 rows in the adjacent column, and not just the previous one. I tried to set it up in an array like this:

    =COUNTIF(INDIRECT("RC[-2]",0),{"*"&INDIRECT("R[-1]C[-2]",0)&"*","*"&INDIRECT("R[-2]C[-2]",0)&"*"})

    But that just returns an error and highlights the " after the first * in the array. Just wondering if anyone knows how to get this working, or if there is possibly another easier way to do it.

    Thanks,

    Gunn

  2. #2
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,613

    Re: Having problem trying to use array with indirect function

    I don't quite understand your explanation, but the formula below will select the two cells 1 column to the left and two rows up from the cell with the formula, using N1 as the criteria:
    Please Login or Register  to view this content.
    Ben Van Johnson

  3. #3
    Registered User
    Join Date
    04-04-2018
    Location
    NS, Canada
    MS-Off Ver
    2007
    Posts
    2

    Re: Having problem trying to use array with indirect function

    Okay, I'm trying to look to see if there are partial duplicate text inputs in my excel list. they are all in alphabetical order, and the duplicates only are variations of the previous 1 or 2 in the list, for
    example Agent P and Agent P Infinite, where I don't want to count the Infinite one, but only the original ones. I've been trying different formulas and can't seem to figure it out without making a separate
    column to check if they're duplicates then sum up that column, but I would like to avoid that if possible. Sorry This is probably more advanced then I should be attempting.
    Last edited by Gunnolf; 04-05-2018 at 02:13 PM.

  4. #4
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,613

    Re: Having problem trying to use array with indirect function

    (How to) Upload a Workbook directly to the Forum
    (please do not post pictures or links to worksheets)
    • Click Advanced next to Quick Post button at the bottom right of the editor box.
    • Scroll down until you see "Manage Attachments",
    • Click the "Choose" button at the upper left (upload from your computer).
    • Select your file, click "open", click "upload"
    • Once the upload is completed the file name will appear below the input boxes in this window.
    • Close the Attachment Manager window.
    • Click "Submit Reply"
    Note: Please do not attach password protected workbooks/worksheets
    Ensure to disable any Workbook Open/Autorun macros before attaching!

+ 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] How to use Indirect function in array lookup formula
    By PM1985 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 10-20-2014, 06:58 PM
  2. [SOLVED] Using INDIRECT function with an array formula
    By al_noggin in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 04-02-2014, 04:21 AM
  3. Entering INDIRECT.exe IF function as an array
    By Mr ZN in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 07-31-2013, 12:31 AM
  4. Indirect function combined with Array
    By NYRealEstateAnalyst in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 05-10-2013, 02:46 AM
  5. OR(INDIRECT(....ROW() array problem
    By andyhyde in forum Excel General
    Replies: 3
    Last Post: 07-17-2012, 09:20 AM
  6. Indirect function and Array formula
    By Manumusashi in forum Excel General
    Replies: 3
    Last Post: 04-28-2011, 10:13 AM
  7. Sumproduct array using Indirect Problem
    By reggie1000 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-07-2008, 12:19 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