+ Reply to Thread
Results 1 to 5 of 5

multiple results, multiple criteria - is there another way apart from arrays?

  1. #1
    Registered User
    Join Date
    07-27-2011
    Location
    staffordshire
    MS-Off Ver
    Excel 2003
    Posts
    31

    multiple results, multiple criteria - is there another way apart from arrays?

    Hi out there!

    I would like to provide a search function, based on two values.

    If it was a sum, I would be fine, as I would use sumproduct, however I am trying to return multiple results which are not sums.

    I have hopefully attached a sheet for you to see

    Any help would be much appreciated!
    Si
    Attached Files Attached Files

  2. #2
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: multiple results, multiple criteria - is there another way apart from arrays?

    show you expected results in your sample file
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  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,986

    Re: multiple results, multiple criteria - is there another way apart from arrays?

    What excel version d you use? Your profile shows 2003, but the attachment is an xlsx (2007 and later)?
    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 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,986

    Re: multiple results, multiple criteria - is there another way apart from arrays?

    One way:

    =IFERROR(INDEX(Data!C:C,SMALL(INDEX(((date<$B$3)+(date>$B$6))*10^10+ROW(date),0),ROWS(D$4:D4))),"")

    NOTE: if needed on Excel 2003 and before, the error trap will need to be modified. Please amend your profile!!!
    Attached Files Attached Files

  5. #5
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,064

    Re: multiple results, multiple criteria - is there another way apart from arrays?

    These are array formulas, only way I know of, unless you go VBA route

    in Summary!D4
    =IFERROR(INDEX(Data!$C$5:$G$14,SMALL(IF((Data!$C$5:$C$14>=$B$3)*(Data!$C$5:$C$14<=$B$6),ROW($A$5:$A$14)),ROW(A1))-(ROW(A$5)-1),COLUMN()-3),"Not present")
    Array formula, use Ctrl-Shift-Enter
    and copy down the column

    Copy formula into the other grid
    Adjust borders
    Adjust format of column H to show numbers not dates
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

+ 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] Lookup to match multiple criteria and return multiple results excluding duplicates.
    By kris3012 in forum Excel Formulas & Functions
    Replies: 15
    Last Post: 01-13-2018, 11:06 AM
  2. Replies: 16
    Last Post: 02-21-2017, 02:10 AM
  3. Replies: 2
    Last Post: 12-16-2016, 07:58 AM
  4. Replies: 1
    Last Post: 09-04-2014, 12:14 PM
  5. Multiple Search Criteria produces (list) Multiple results in a single cell
    By snake007uk in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-02-2014, 12:13 PM
  6. [SOLVED] Formula that uses results of multiple arrays to get to one answer
    By concatch in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 10-23-2013, 08:19 AM
  7. Help getting multiple results from multiple criteria on multiple pages
    By ERaasio in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 07-03-2013, 07:29 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