+ Reply to Thread
Results 1 to 3 of 3

Using a function to filter on two criteria

  1. #1
    Registered User
    Join Date
    04-20-2017
    Location
    London, England
    MS-Off Ver
    2013
    Posts
    14

    Exclamation Using a function to filter on two criteria

    Hello,

    I am having issues trying to use lookup tables in my function to allow me to filter on two criteria. I can currently filter on the date, however I can't seem to get it to work on filtering on the vertical as well.

    My current formula is as below:

    =IF($B$2="Full-Year",SUMIF(INDIRECT("'"&"Current Forecast"&"'!"&VLOOKUP(A4,Lookups!AL:AM,2,0)),A4,INDIRECT("'"&"Current Forecast"&"'!"&VLOOKUP($A$2,Lookups!O:Q,3,0))),SUMIFS(INDIRECT("'"&"Current Forecast"&"'!"&VLOOKUP($A$2,Lookups!O:Q,3,0)),INDIRECT("'"&"Current Forecast"&"'!"&VLOOKUP(A4,Lookups!AL:AM,2,0)),A4,INDIRECT("'"&"Current Forecast"&"'!"&VLOOKUP($B$2,Lookups!AG:AI,3,0)),VLOOKUP($B$2,Lookups!AG:AH,2,0)))/1000

    I know I need to incorporate cells G:G and AF:AF in the 'current forecast tab' but not sure how to do this.

    I do expect this to be a fairly large formula.

    Would be grateful for any help on this.
    Attached Files Attached Files

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,936

    Re: Using a function to filter on two criteria

    AF in Current is empty?

    What exactly are you trying to do here, looks like you are way over-complicating this?
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    04-20-2017
    Location
    London, England
    MS-Off Ver
    2013
    Posts
    14

    Exclamation Re: Using a function to filter on two criteria

    Sorry I meant K for this extract.

    Basically I want to be able to filter on the month/quarter but also filter on the vertical in the summary sheet
    (the original data has thousands of lines, hence why I need a summary sheet). However at current, the data only changed when I change the date and NOT when I change the vertical.

    Thanks

+ 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. Advanced filter with function as criteria range?
    By dakke in forum Excel General
    Replies: 23
    Last Post: 06-10-2021, 04:48 PM
  2. Macro to filter a pivot whilst looping through filter criteria in a variable list.
    By Alistairm88 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-29-2015, 04:25 AM
  3. Replies: 6
    Last Post: 10-16-2014, 08:42 AM
  4. [SOLVED] Filter Function with Priority Criteria; non VBA/Macro
    By yaddles in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-22-2014, 04:54 AM
  5. How do I use multiple criteria in the filter function
    By TheVolkinator in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 12-10-2012, 01:18 AM
  6. [SOLVED] Function for VERY advanced Filter- criteria in two columns
    By synses in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 10-24-2012, 03:19 PM
  7. filter function with criteria
    By bklim in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-15-2007, 11:18 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