+ Reply to Thread
Results 1 to 5 of 5

Array Formula to search two criteria at once

  1. #1
    Registered User
    Join Date
    09-18-2018
    Location
    UK
    MS-Off Ver
    2010
    Posts
    9

    Array Formula to search two criteria at once

    Hi all,

    I've created a calendar of events and have managed to use an array formula to pull through events from a list of data (multiple events per day) using the formula below, which is in the blocked out line (and 3 below) on the screenshot:

    =INDEX('Data View'!$C:$D,SMALL(IF('Data View'!$C:$C=B$5,ROW('Data View'!$C:$C)),ROW(1:1)),2)

    Data View: where my original information about the event is saved
    Column C: full date on Data View sheet
    Column D: title of the event on Data View sheet
    B5: date as shown on the calendar itself (to search from)

    Screenshot 2.JPG


    I now want to create a second calendar that does this but also will not pull through any events that I've marked as private. They have been marked on the Data View sheet in column N and are either 'Public' or 'Private'.

    Does anyone know how I would add this into the formula that's already there? Let me know if you need any more info to be able to help!

    Thanks
    Last edited by Tigerlilygem; 09-18-2018 at 07:37 AM.

  2. #2
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,613

    Re: Array Formula to search two criteria at once

    In the present formula you do not need to use index both c and D columns, so
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    will be enough
    For the second Calendar you could use:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    PS. It's easier to answer if sample file is attached.
    Best Regards,

    Kaper

  3. #3
    Registered User
    Join Date
    09-18-2018
    Location
    UK
    MS-Off Ver
    2010
    Posts
    9

    Re: Array Formula to search two criteria at once

    Hi Kaper,

    Thanks for your suggestion and apologies for not including a sample - wasn't sure what was best.

    It doesn't seem to be working but I have included a template of the doc here. I'm testing it using the event on 20th April on the Events Calendar tab. Are you able to take a look?

    Thanks
    Attached Files Attached Files

  4. #4
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,613

    Re: Array Formula to search two criteria at once

    In DAtaView Sheet, row 130 you have the only event for April 20
    It is:
    2019 April Saturday 20 April 2019 Event 129 Other Saturday 20 April 2019 Daily Location 92 Event 129 Draft Private

    So formula in F113 in Event Calendar View (first event on April 20th)
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    will show it (as it is Private, but formula
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    will return show empty cell (because it's not Public).

    Have a look at formulas in rows 113:116 (in saved version checking Public Events) and changes in Event types (N column) for events from this week - I changed some to Public and they are visible in calendar, while private event129 on 20th Apr is not.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    09-18-2018
    Location
    UK
    MS-Off Ver
    2010
    Posts
    9

    Re: Array Formula to search two criteria at once

    I see - it was flagging Private, not Public - gotcha.

    It's working now! Thanks so much for your help!

+ 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] Search for multiple Criteria in an array
    By justin.newport in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 04-08-2014, 02:04 PM
  2. [SOLVED] Search and return value based on 3 criteria (array formula?)
    By AL1976 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-03-2014, 10:49 AM
  3. [SOLVED] Multiple Criteria Isnumber Search Array (with Attachment Example)
    By sweetrevelation in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 11-13-2013, 05:45 AM
  4. Replies: 8
    Last Post: 08-22-2013, 07:00 AM
  5. Search an Array for a Value with Multiple Criteria
    By NDev in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-04-2013, 07:02 PM
  6. [SOLVED] VBA Array w/multiple search criteria
    By Jeepster325 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-26-2013, 06:07 PM
  7. Help Needed in Using Index Array w/2 Search Criteria in Excel
    By Cliff.Sizemore in forum Excel General
    Replies: 5
    Last Post: 03-05-2012, 09:14 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