+ Reply to Thread
Results 1 to 8 of 8

Return one value, Multiple criteria, Different tabs/sheets

  1. #1
    Registered User
    Join Date
    03-27-2018
    Location
    NYC, USA
    MS-Off Ver
    Excel 2019 64-bit on Windows
    Posts
    21

    Return one value, Multiple criteria, Different tabs/sheets

    Hi everyone,

    Sorry if this is a repeat thread.

    Please see screenshots below.

    I'm trying to move a value from Sheet 1 over to Sheet 2 based on multiple criteria. I got close with the formula below, but it looks like it is pulling the value from the FY17 column B (0) instead of FY19 column C (2,200). I cannot figure out how to add additional criteria in the formula to specify that I want the value from the FY19 column.

    =IFERROR((VLOOKUP($B9,'Sheet 1'!$A:$C,MATCH(A$9,'Sheet 1'!$A$2:$C$2,0),FALSE)),0)

    I also don't know if vLookup is the right choice or if I should be using Index/Match or another command. If anyone can help it would be greatly appreciated.

    Thanks!

    Capture.PNG

    Capture1.PNG

  2. #2
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: Return one value, Multiple criteria, Different tabs/sheets

    Without a workbook example to test from, try this in C3 copied to D3 and down

    =INDEX(Sheet1!B$3:B$12,MATCH($B3,Sheet1!$A$3:$A$12,0),MATCH($A3,Sheet1!$B$2:$C$2,0))
    Last edited by jeffreybrown; 11-14-2018 at 12:13 PM.
    HTH
    Regards, Jeff

  3. #3
    Registered User
    Join Date
    03-27-2018
    Location
    NYC, USA
    MS-Off Ver
    Excel 2019 64-bit on Windows
    Posts
    21

    Re: Return one value, Multiple criteria, Different tabs/sheets

    Hi Jeff,

    Thanks for the message.

    As soon as I got your formula to work (It did. Thank you!) I realized that I didn't provide all the information necessary to describe the actual problem I'm facing in Excel.

    Please see images below.

    As you can see, I can't get the cells in Sheet 2 to populate based on both "Program" and "FY" information. Again, the formula I was using in Sheet 2 wasn't able to pull the values from the relevant cells in Sheet 1.

    I hope this makes sense. Thanks again!

    Capture3.PNG

    Capture4.PNG

  4. #4
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: Return one value, Multiple criteria, Different tabs/sheets

    Please post a workbook, not an image.

    Attach a sample workbook (not a picture or pasted copy). Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.

  5. #5
    Registered User
    Join Date
    03-27-2018
    Location
    NYC, USA
    MS-Off Ver
    Excel 2019 64-bit on Windows
    Posts
    21

    Re: Return one value, Multiple criteria, Different tabs/sheets

    Thanks Jeff.
    Rookie mistake.

    I think the attached workbook should suffice.

    Tab 1 is the raw data, tab 2, is my 2nd attempt at getting the formula to work, and the last tab is the desired results I am hoping to automate through a formula.

    Someone in my office mentioned that the formula might have a basic structure similar to =iferror(and(match...(match...))),"" though I don't know if that series is allowed.

    If this doesn't make sense or if there is a problem with the file please let me know.
    Thanks again!
    Attached Files Attached Files

  6. #6
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: Return one value, Multiple criteria, Different tabs/sheets

    Try this in C3 copied down and over...

    =INDEX(Sheet1!$B$3:$G$12,MATCH($B3,Sheet1!$A$3:$A$12,0),MATCH($A3&"|"&C$1,Sheet1!$B$2:$G$2&"|"&Sheet1!$B$1:$G$1,0))

    IMPORTANT
    • This is an array formula
    • Enter the formula >> press F2 then >> CTRL + SHIFT + ENTER
    • If entered correctly, the formula will be enclosed in {brackets}
    • Do not enter the {brackets} manually

  7. #7
    Registered User
    Join Date
    03-27-2018
    Location
    NYC, USA
    MS-Off Ver
    Excel 2019 64-bit on Windows
    Posts
    21

    Re: Return one value, Multiple criteria, Different tabs/sheets

    By god, it's glorious!
    Thank you, for both helping me solve this very useful and (now) straight forward Index and Match formula and for introducing me to arrays.
    I will be sure to put all of this to good use moving forward.
    Thank you again!!!

  8. #8
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: Return one value, Multiple criteria, Different tabs/sheets

    You are very welcome. Thanks for the feedback and the 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. [SOLVED] dynamic if formula based on criteria of different sheets tabs in workbook
    By JEAN1972 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 09-02-2017, 04:56 AM
  2. [SOLVED] Extracting data from multiple columns on multiple sheets / tabs etc to a common matrix
    By MagicMan in forum Excel Programming / VBA / Macros
    Replies: 22
    Last Post: 03-26-2015, 07:38 AM
  3. Match & return data across multiple sheets, multiple criteria
    By mrsproctor in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-18-2015, 06:01 PM
  4. Lookup value across multiple tabs and return value in another cell
    By loulite in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-15-2014, 02:01 AM
  5. [SOLVED] 4 Way Lookup/Match - Across Multiple Tabs - Return One Value
    By skyraptor in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-04-2013, 12:38 AM
  6. MACROS: Sort by multiple criteria - Create tabs based off of criteria
    By svineyard in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-21-2009, 10:48 AM
  7. Lookup multiple criteria in different tabs to return result
    By Nadir Soofi in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 06-06-2008, 06:28 PM

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