+ Reply to Thread
Results 1 to 5 of 5

Fetch data based on two variables from tabule

  1. #1
    Registered User
    Join Date
    03-12-2014
    Location
    india
    MS-Off Ver
    Excel 2007
    Posts
    53

    Question Fetch data based on two variables from tabule

    Hello,
    Seeking solution to fetch data from table based on two different variables.
    Attached is excel sheet for reference.

    Thanks and Best Regard,
    Pavan
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,253

    Re: Fetch data based on two variables from tabule

    Changed "All" to "Total" in drop-down

    In B12

    =INDEX($B$3:$S$6,MATCH($A12,$A$3:$A$6,0),MATCH($C$10,TEXT($B$1:$S$1,"mmmm"),0)+(MATCH($B$10,$B$2:$G$2,0)-1))

    Enter with Ctrl+Shift+Enter

    Copy down

    BUT better (non-array)

    in D12 (example)

    =INDEX($B$3:$S$6,MATCH($A12,$A$3:$A$6,0),MATCH($D$10,$B$1:$S$1,0)+(MATCH($B$10,$B$2:$G$2,0)-1))

    where your dates are drop down with proper Excel dates formatted as "mmmm"

    You can format the "Dates" named range as "mmmm" and they will appear in the drop down as "January","February" etc.

    See attached : results
    Attached Files Attached Files
    Last edited by JohnTopley; 11-04-2016 at 05:41 AM.

  3. #3
    Forum Contributor
    Join Date
    11-21-2015
    Location
    Philippines
    MS-Off Ver
    Microsoft Office 2016
    Posts
    146

    Re: Fetch data based on two variables from tabule

    Quote Originally Posted by pavanbhoyar View Post
    Hello,
    Seeking solution to fetch data from table based on two different variables.
    Attached is excel sheet for reference.

    Thanks and Best Regard,
    Pavan
    Please Login or Register  to view this content.
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    03-12-2014
    Location
    india
    MS-Off Ver
    Excel 2007
    Posts
    53

    Re: Fetch data based on two variables from tabule

    Thank you Mr JohnTopley & Mr Tamthat.
    It worked for me.

    Thanks.
    Added reputation.

  5. #5
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,253

    Re: Fetch data based on two variables from tabule

    Thank you for feedback and rep.

+ 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. Data Fetch From One Sheet to Another Sheet Based on Check Box
    By Sanjibghosh in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-02-2016, 10:56 AM
  2. Fetch the data from another sheet based on drop down list
    By sreejeshc in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-25-2015, 02:26 AM
  3. [SOLVED] How to read text data from .dat files and fetch the data in to excel based on input..
    By mahendra.asapu in forum Excel Programming / VBA / Macros
    Replies: 62
    Last Post: 07-19-2015, 04:36 AM
  4. [SOLVED] Fetch Data: Return Multiple Rows based on Cell Content
    By pdreyest in forum Excel General
    Replies: 8
    Last Post: 09-24-2012, 12:43 AM
  5. Excel 2007 : How do I fetch data based on conditions
    By fabtshow in forum Excel General
    Replies: 6
    Last Post: 06-03-2012, 07:48 PM
  6. Fetch data from another sheet based on a filter value
    By jrule in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-30-2011, 12:38 PM
  7. Fetch values based on date
    By aravindkb7 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 12-14-2010, 08:41 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