+ Reply to Thread
Results 1 to 7 of 7

Help using OR when Indexing

  1. #1
    Forum Contributor
    Join Date
    05-17-2012
    Location
    Silver Spring
    MS-Off Ver
    Excel 2016
    Posts
    212

    Help using OR when Indexing

    I need assistance using the Or command or another type of OR statement to allow me to index anything that is NOT in cells A2 and A3

    Current code: (Using Cntl Shift Enter)

    =IFERROR(INDEX('Sheet1'!A:A,SMALL(IF(
    ('Sheet1'!$G$2:$G$2001<>'ReportSheet'!$A$2),
    ROW('Sheet1'!$G$2:$G$2001),""),ROWS(D$2:D2))),"")

    On Line 2: its saying search Sheet1 in Column G for anything else other than whats in cell 'ReportSheet'!$A$2. (Ex: Apple)

    The issue is, I need it to search for anything other than 'ReportSheet'!$A$2 & 'ReportSheet'!$A$3 (Essentially anything other than these 2 items then display it, Ex: Any results other than Apple or Banana)

    I tried adding the Or option but then nothing shows up.

    I did the Cntl Shift Enter
    =IFERROR(INDEX('Sheet1'!A:A,SMALL(IF(
    ('Sheet1'!$G$2:$G$2001<>OR('ReportSheet'!$A$2,'ReportSheet'!$A$3)),
    ROW('Sheet1'!$G$2:$G$2001),""),ROWS(D$2:D2))),"")

    Please advise,
    Thank you.

  2. #2
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Help using OR when Indexing

    Maybe this?

    {=IFERROR(INDEX('Sheet1'!A:A,SMALL(IF(
    ('Sheet1'!$G$2:$G$2001<>'ReportSheet'!$A$2)*('Sheet1'!$G$2:$G$2001<>'ReportSheet'!$A$3)
    ,ROW('Sheet1'!$G$2:$G$2001),""),ROWS(D$2:D2))),"")}

  3. #3
    Forum Expert tim201110's Avatar
    Join Date
    10-23-2011
    Location
    Russia
    MS-Off Ver
    2016, 2019
    Posts
    2,357

    Re: Help using OR when Indexing

    =IFERROR(INDEX('Sheet1'!A:A,aggregate(15,6,ROW('Sheet1'!$G$2:$G$2001)/isna(match('Sheet1'!$G$2:$G$2001,'ReportSheet'!$A$2:$A$3,)),ROWS(D$2:D2))),"")
    Last edited by tim201110; 03-09-2018 at 03:13 PM.

  4. #4
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Help using OR when Indexing

    =IFERROR(INDEX(Sheet1!A:A, SMALL(IF((Sheet1!$G$2:$G$2001 <> ReportSheet!$A$2) * (Sheet1!$G$2:$G$2001 <> ReportSheet!$A$3),
    ROW(Sheet1!$G$2:$G$2001),""), ROWS(D$2:D2))), "")
    Entia non sunt multiplicanda sine necessitate

  5. #5
    Forum Contributor
    Join Date
    05-17-2012
    Location
    Silver Spring
    MS-Off Ver
    Excel 2016
    Posts
    212

    Re: Help using OR when Indexing

    Thank you 63falcondude and shg, it worked.

    tim201110 for some reason yours didn't work. I've never used the aggregate before. What was the 15,6 for?
    Thanks

  6. #6
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Help using OR when Indexing

    You're welcome. Glad we could help.

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

  7. #7
    Forum Expert tim201110's Avatar
    Join Date
    10-23-2011
    Location
    Russia
    MS-Off Ver
    2016, 2019
    Posts
    2,357

    Re: Help using OR when Indexing

    it works OK
    Attached Files Attached Files

+ 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. Indexing/Sum IFS
    By Lynx4ever in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-14-2015, 04:58 AM
  2. Indexing
    By Oly Steel Man in forum Excel General
    Replies: 2
    Last Post: 12-17-2010, 09:06 AM
  3. Indexing
    By seanrigby in forum Excel General
    Replies: 3
    Last Post: 03-03-2010, 09:57 PM
  4. Indexing help
    By obrien2003 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 07-22-2008, 02:56 PM
  5. Indexing?
    By indypete in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-02-2007, 09:02 AM
  6. [SOLVED] Tab indexing
    By juliejg1 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-10-2006, 04:10 PM
  7. [SOLVED] Indexing of Name
    By Charlie in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-05-2006, 08:35 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