+ Reply to Thread
Results 1 to 3 of 3

Need a formula to pull data from another tab with 2 conditions

  1. #1
    Registered User
    Join Date
    04-25-2014
    Location
    Bay Area, CA
    MS-Off Ver
    Excel 2010
    Posts
    1

    Need a formula to pull data from another tab with 2 conditions

    Hi, I might be explaining this poorly.

    I have a column with countries and a column with staff level. On a separate tab I have a pivot table of rates for each country/staff level. Can I create a formula that says, if this country and this staff level, then the correct rate will pull from the pivot table?

  2. #2
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    6,301

    Re: Need a formula to pull data from another tab with 2 conditions

    =GETPIVOTDATA("Rate",PT!$A$3,"Country",A2,"Staff Level",B2)

    Where countries are in A and staff levels in B, and the Pivot Table is on sheet PT starting in A3, and your data fields are named "Rate", "Country", and "Staff Level"

    Other formula solutions depend on your Pivot Table settings.
    Bernie Deitrick
    Excel MVP 2000-2010

  3. #3
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.92 (24120731))
    Posts
    9,124

    Re: Need a formula to pull data from another tab with 2 conditions

    you could use a vlookup or index/match with the pivot table - only issue maybe if you refresh the pivot table and it changes range

    can you attach a sample spreadsheet
    Wayne
    if my assistance has helped, and only if you wish to , there is an "* Add Reputation" on the left hand side - you can add to my reputation here

    If you have a solution to your thread - Please mark your thread solved do the following: >
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

+ 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. help on vba code to pull data with conditions ,filename,avoid header,unfiltered data
    By breadwinner in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-27-2013, 05:57 AM
  2. [SOLVED] VBA Code to Pull data to another spreadsheet based on conditions!
    By mg87 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 07-16-2013, 02:38 PM
  3. Need formula to pull data depending on multiple conditions
    By shabby in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-10-2013, 02:58 PM
  4. Pull data if conditions are met?
    By bjh3a in forum Excel General
    Replies: 1
    Last Post: 06-03-2009, 09:12 PM
  5. Pull data from a matrix table into a report using 2 report conditions
    By bing in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-03-2008, 11:51 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