+ Reply to Thread
Results 1 to 3 of 3

Adding another criteria to a function

  1. #1
    Registered User
    Join Date
    07-09-2020
    Location
    Brisbane, Australia
    MS-Off Ver
    11
    Posts
    5

    Exclamation Adding another criteria to a function

    Hi everyone, I am a first time poster because I have this headache of a report template I am trying to build and desperately need assistance.

    Report1 is a large report that is produced every fortnight.

    ReportTemplate is a small summary report that I am designing to pull specific data from Report1. I currently have formulas which are easy to use the search and replace function to immediately pull results from the updated report each fortnight. I do not wish to use VBA.

    ReportTemplate will need to search column AM of Report1 for all rows containing "Customer Services". I have put this text in N5 of ReportTemplate. It will then need to search Report1 in column AE that contain also DO NOT contain "N/A". I have put this text as N6 in report template.

    My current function looks:

    =IF(LEN($N$5),IFERROR(INDEX('[Report1.xlsx]Sheet1'!AM$1:AM$999,SMALL(INDEX(ROW($1:$999)+('[Report1.xlsx]Sheet1'!$AM$1:$AM$999<>'[Report1.xlsx]Sheet1'!$AM32)*1E+99,,),ROW(1:1))),""),"")

    This function is working for the first criteria, however I cannot figure out how to add the second in. That is, it is finding and displaying all entries that have "Customer Services" in column AM, but then is not filtering further to only show those that also DO NOT display "N/A" in column AE. How can I add this criteria in?

    Thanks in advance for your help!!!

  2. #2
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,463

    Re: Adding another criteria to a function

    Is this are you looking for:
    =IF(LEN($N$5),IFERROR(INDEX('[Report1.xlsx]Sheet1'!AM$1:AM$999,SMALL(INDEX(ROW($1:$999)+('[Report1.xlsx]Sheet1'!$AM$1:$AM$999<>'[Report1.xlsx]Sheet1'!$AM32)*('[Report1.xlsx]Sheet1'!$AM$1:$AM$999<>"N/A")*1E+99,,),ROW(1:1))),""),"")
    Quang PT

  3. #3
    Registered User
    Join Date
    07-09-2020
    Location
    Brisbane, Australia
    MS-Off Ver
    11
    Posts
    5
    Quote Originally Posted by bebo021999 View Post
    Is this are you looking for:
    =IF(LEN($N$5),IFERROR(INDEX('[Report1.xlsx]Sheet1'!AM$1:AM$999,SMALL(INDEX(ROW($1:$999)+('[Report1.xlsx]Sheet1'!$AM$1:$AM$999<>'[Report1.xlsx]Sheet1'!$AM32)*('[Report1.xlsx]Sheet1'!$AM$1:$AM$999<>"N/A")*1E+99,,),ROW(1:1))),""),"")
    Yes thank you!

+ 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. Replies: 4
    Last Post: 04-14-2017, 05:14 PM
  2. adding a Frequency function to a CountIFS function
    By Plucky_ in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 03-12-2017, 08:13 PM
  3. Adding up every other row with criteria
    By Livenom in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-17-2015, 09:49 AM
  4. Adding a third criteria to Sumproduct function
    By superboy in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-06-2014, 05:01 AM
  5. [SOLVED] Adding two cells containing SUM function adding up to zero
    By ra3940 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-18-2012, 01:28 PM
  6. Replies: 2
    Last Post: 10-05-2011, 12:43 PM
  7. [SOLVED] adding up several different criteria
    By s2m via OfficeKB.com in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-19-2006, 11:40 AM

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