+ Reply to Thread
Results 1 to 16 of 16

Data pull based on multiple criteria

  1. #1
    Registered User
    Join Date
    03-16-2022
    Location
    london
    MS-Off Ver
    Office 365
    Posts
    9

    Data pull based on multiple criteria

    Ok so here goes. I have tried to search the forum and youtube but i think i have the names of the functions wrong so i will do my best to explain.

    To provide some context we have multiple contractors who provide us different types of crews, such as the following

    Dual Working Vehicle
    2 Man
    1 Man
    Welfare
    IPV

    Although the crews are the same the rates vary from each contractor.

    Each month i download a standardised report, the Columns range from A-K

    Column G = Contractor name
    Column F =Crew type as listed above
    Column K = Rate

    The rates i have on a separate tab and list out with the contractor names listed out down column A and the crew types cross columns in Row A

    What i want to do i think consists of a Vlookup with IF parameters but i am a little lost. basically something along the following lines

    IF G =(name)+ F(crew type) K = (rate)

    Thanks in advance for any help
    Attached Files Attached Files
    Last edited by LordBlissett; 03-16-2022 at 10:17 AM.

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

    Re: Data pull based on multiple criteria

    Welcome to the forum.

    There are instructions at the top of the page explaining how to attach your sample workbook.

    A good sample workbook has just 10-20 rows of representative data that has been desensitised. It also has expected results mocked up, relevant cells highlighted and a few explanatory notes.

    Administrative Note:

    Members will tailor the solutions they offer to the version (NOT release number) of Office (Excel, NOT Windows) that you have. Please check that your forum profile is up-to-date in this respect. If you aren't sure, in Excel go to File | Account and report what it says below the MS logo at the top of that page. If your version is for Mac, please also state this. Thanks.
    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. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    03-16-2022
    Location
    london
    MS-Off Ver
    Office 365
    Posts
    9

    Re: Data pull based on multiple criteria

    Thank you

    Please see attached example

    (PLEASE NOTE IN MY FIRST POST I SAY COLUMN I THIS IS MEANT TO BE COLUMN F)
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    03-16-2022
    Location
    london
    MS-Off Ver
    Office 365
    Posts
    9

    Re: Data pull based on multiple criteria

    original post now edited with attachment

  5. #5
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    90,716

    Re: Data pull based on multiple criteria

    Which version of Excel are you using? Windows 10 is your operating system.

  6. #6
    Registered User
    Join Date
    03-16-2022
    Location
    london
    MS-Off Ver
    Office 365
    Posts
    9

    Re: Data pull based on multiple criteria

    i am using version 2202

    thanks
    Last edited by AliGW; 03-16-2022 at 10:45 AM. Reason: PLEASE don't quote unnecessarily!

  7. #7
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    90,716

    Re: Data pull based on multiple criteria

    That's a release number. Which version? Excel 2019? Excel 2021? MS365?

  8. #8
    Registered User
    Join Date
    03-16-2022
    Location
    london
    MS-Off Ver
    Office 365
    Posts
    9

    Re: Data pull based on multiple criteria

    it is 365 sorry
    Last edited by AliGW; 03-16-2022 at 10:56 AM. Reason: PLEASE don't quote unnecessarily!

  9. #9
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    90,716

    Re: Data pull based on multiple criteria

    Thanks - then please update your profile.

    Please explain where £300 is coming from:

    AliGW on MS365 Insider (Windows) 64 bit

    J
    K
    L
    1
    Service Duty TimeSheet Number
    Rate
    2
    18CompanyA0602
    £300
    Rate for example
    Sheet: Report
    Last edited by AliGW; 03-16-2022 at 10:58 AM.

  10. #10
    Registered User
    Join Date
    03-16-2022
    Location
    london
    MS-Off Ver
    Office 365
    Posts
    9

    Re: Data pull based on multiple criteria

    Done

    Sorry i thought this was meant to be a manual. The £300 comes from the second Tab (rates) this is where i need to pull the data from.

    So the first line for example that was works carried out by Company (column G) the crew they provided us was TSCO (Column F)

    So i need column K to auto populate the rate for TSCO if completed by Company A in this case. However Company D might have a different rate so when i change that company name i need it to recognise that change or if the crew name changes

    thank you for all the help

  11. #11
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Data pull based on multiple criteria

    Is this ist?


    =IFERROR(INDEX(Rates!$B$2:$O$5,MATCH(G2,Rates!$A$2:$A$5,0),MATCH(F2,Rates!$B$1:$O$1,0)),"")
    Attached Files Attached Files
    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

  12. #12
    Registered User
    Join Date
    03-16-2022
    Location
    london
    MS-Off Ver
    Office 365
    Posts
    9

    Re: Data pull based on multiple criteria

    Quote Originally Posted by Glenn Kennedy View Post
    Is this ist?


    =IFERROR(INDEX(Rates!$B$2:$O$5,MATCH(G2,Rates!$A$2:$A$5,0),MATCH(F2,Rates!$B$1:$O$1,0)),"")
    Thank you so much, it does work and is exactly what i am after. The problem is i am now trying to edit this to put back in what ive taken out and it doesnt like it unless i take out the $ symbols. The problem then is it wont work correctly when i try drag the formula through. Any ideas?

  13. #13
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Data pull based on multiple criteria

    Well, it won't drag correctly without the $ for sure... but since you haven't (yet) told me what you've "taken out" I have to rely on my trusty crystal ball for help...

    Post a realistic sample sheet showing the problem.

  14. #14
    Registered User
    Join Date
    03-16-2022
    Location
    london
    MS-Off Ver
    Office 365
    Posts
    9

    Re: Data pull based on multiple criteria

    Quote Originally Posted by Glenn Kennedy View Post
    Well, it won't drag correctly without the $ for sure... but since you haven't (yet) told me what you've "taken out" I have to rely on my trusty crystal ball for help...

    Post a realistic sample sheet showing the problem.
    I cant really show as it is now full of sensitive data thats the trouble.

    All i have done is replace "Company A" Company B" etc with their true names on both the Report and the Rate Tabs. So no change there essentially

    I have however expanded the range in the rates to include more lines as i only gave you a sample of companies as to not bog it down.

    What i do have though in Report is 4000+ rows of data so i needed to drag that formula in Column K down.

    Its worth noting i did this on a fresh template from scratch.

    I can see what i need to do i am just unsure how. I need the - below to remain unchanged when i drag the formula down apart from G2 & F2, these should become G3 & F3 for row 3 and G4 & F4 for row 4 etc,etc

    =IFERROR(INDEX(Rates!B2:O25,MATCH(Report!G2,Rates!A2:A25,0),MATCH(Report!F2,Rates!B1:O1,0)),"")

    i really appreciate the help on this Glenn

  15. #15
    Registered User
    Join Date
    03-16-2022
    Location
    london
    MS-Off Ver
    Office 365
    Posts
    9

    Re: Data pull based on multiple criteria

    Quote Originally Posted by Glenn Kennedy View Post
    Well, it won't drag correctly without the $ for sure... but since you haven't (yet) told me what you've "taken out" I have to rely on my trusty crystal ball for help...

    Post a realistic sample sheet showing the problem.
    Ok i think ive sussed the problem and all seems to work well. thank you so much Glenn

  16. #16
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Data pull based on multiple criteria

    Woo Hoo! Fixing it yourself is always more satisfying, too!!

    You're welcome.



    It would be very nice if you were to just click the Add Reputation button at the foot of any of the posts of members who helped you reach a solution.

    Finally, if that takes care of your original question, please select "Thread Tools" from the menu link (just above the first post in the thread) and mark this thread as SOLVED.

+ 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. VBA : Pull Data From Multiple Sheet Into 1 Sheet Based On Criteria
    By Jhon Mustofa in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-12-2022, 11:58 PM
  2. I need to pull specific data based on multiple criteria
    By rseckler in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 11-25-2020, 02:28 PM
  3. [SOLVED] Data Pull from Multiple Worksheets based on Criteria!!!
    By Rajeshkumar R in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-26-2017, 07:10 AM
  4. Compare data on two sheets and pull multiple results based on criteria
    By Mandross in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-20-2017, 06:58 PM
  5. [SOLVED] Pull data from a table based on multiple criteria - old formula trying to use AND
    By tweaver in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 05-12-2016, 04:37 PM
  6. [SOLVED] Pull data from one sheet to another based on multiple criteria
    By thestalkycop in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-15-2014, 01:38 AM
  7. [SOLVED] Pull data from multiple cells into one cell based on criteria?
    By chaddug in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 10-23-2012, 09:54 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