+ Reply to Thread
Results 1 to 4 of 4

Application of a criterion to retrieve data

  1. #1
    Registered User
    Join Date
    01-26-2018
    Location
    Melbourne
    MS-Off Ver
    Excel 2016
    Posts
    13

    Application of a criterion to retrieve data

    Hi all,

    I'm a bit defeated over this one.

    I'm trying to retrieve data in the 'Data' sheet from the relevant station columns C to L and enter them into the columns M to V for the relevant date-time (which are sequential) per station that have the following criterion: the relevant station from columns Z to AI in the 'Criteria' sheet for the respective year/quarter is a "Yes".

    I thought index and match functions would work but I'm at a loss.

    The attached is a considerably reduced version.

    Any suggestions would be greatly appreciated.
    Thank you
    Attached Files Attached Files
    Last edited by REV18; 04-08-2020 at 07:19 PM.

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    79,369

    Re: Application of a criterion to retrieve data

    Where will find the manual mock-up (result values) that you are expecting to retrieve? Formulae that aren't working aren't much use to us.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    01-26-2018
    Location
    Melbourne
    MS-Off Ver
    Excel 2016
    Posts
    13

    Re: Application of a criterion to retrieve data

    Hmm, the mock-up result values would be the same as the results in columns C to L in the "Data" sheet with the difference being only data with a corresponding "Yes" in columns Z to AI of the "Criteria" sheet per monitoring station would be shown.

    The formula that I'm working with is (with ctrl+shift+enter):

    =IF(INDEX(Criteria!$A$7:$AI$42,MATCH(1,(YEAR(Criteria!$A$7:$A$42)=YEAR(Data!$A3))*(Criteria!$B$7:$B$42=Data!$B3),0),26)="Yes",C3,"")

  4. #4
    Registered User
    Join Date
    01-26-2018
    Location
    Melbourne
    MS-Off Ver
    Excel 2016
    Posts
    13

    Re: Application of a criterion to retrieve data

    Figure it out.
    Simplified the year and quarter into one column rather than two for the index match:

    =IF(INDEX(Criteria!AB$4:AB$155,MATCH(Data!$C4,Criteria!$C$4:$C$155,0))="Yes",Data!D4,"")

+ 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. Product If [Criterion], Sum If [Criterion]
    By STBTC in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 12-07-2016, 12:50 PM
  2. Help on extracting data using week number as the criterion.
    By Roy0306 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 06-21-2015, 05:36 PM
  3. Find value based on item number (first criterion) and date (second criterion)
    By ivan.stajin in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-19-2014, 10:47 AM
  4. [SOLVED] Filter data to another worksheet with 1 criterion
    By marreco in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 09-08-2012, 11:14 AM
  5. [SOLVED] Export data from tab to tab a second criterion to guide 3
    By marreco in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 06-05-2012, 07:35 PM
  6. [SOLVED] Copy data from spreadsheets to a two, with the sum criterion
    By marreco in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-17-2012, 07:19 PM
  7. Selecting Data that fits a criterion
    By blurtoad in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-11-2008, 04:11 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