+ Reply to Thread
Results 1 to 2 of 2

How to return value from another sheet based on X, Y & Z

Hybrid View

  1. #1
    Registered User
    Join Date
    09-09-2022
    Location
    NJ, US
    MS-Off Ver
    2016
    Posts
    1

    How to return value from another sheet based on X, Y & Z

    This is a rather complex problem that will require a combination of functions to achieve, but I believe is possible to achieve without VBA. Unfortunately it is so compelx for me I struggle to even describe it!

    Best way I can think is to talk in terms of the example document I have attached. The contents within the yellow highlighted column from the "Ex" sheet are what I would like a formula to generate.

    My concept of how formula would operate:
    -In a given row use the corresponding value from "Team" column to locate sheet
    -Use value from BOTH the corresponding "Position" column and "Game" column as search parameter.
    -Among these rows that fit criteria, look for any non-zero values in the "TD?" column
    -RETURN their corresponding "Quarter" value(s) as a comma separated string


    Many thanks to anybody who even takes the time to look at this!
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: How to return value from another sheet based on X, Y & Z

    Eagels E2=IF($D2=0,"",$C2)


    After that I made an pivot table.


    I16 on sheet ex
    =IF(RIGHT(SUBSTITUTE(SUBSTITUTE(TEXTJOIN(",",TRUE,B16:E16),"0,",""),0,""),1)=",",LEFT(SUBSTITUTE(SUBSTITUTE(TEXTJOIN(",",TRUE,B16:E16),"0,",""),0,""),LEN(SUBSTITUTE(SUBSTITUTE(TEXTJOIN(",",TRUE,B16:E16),"0,",""),0,""))-1),SUBSTITUTE(SUBSTITUTE(TEXTJOIN(",",TRUE,B16:E16),"0,",""),0,""))
    See the attached file.

    The yellows cells are the helpcolumns so you can (easier) understand the above formula.

    In green the result.


    After posting the file, I read you have Excel 2016. In that version maybe textjoin is not available, so you could not use this solution.
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

+ 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. Return data from another sheet based on criteria
    By stoneglow in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 10-22-2021, 07:07 PM
  2. [SOLVED] Find and return data based on matching cell from one sheet to another sheet
    By pelbert in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-11-2021, 02:09 AM
  3. Replies: 6
    Last Post: 08-21-2020, 11:01 AM
  4. Return Sheet Names based on Criteria
    By Jackt90 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 04-03-2020, 04:09 AM
  5. [SOLVED] Return a value based on score range from another sheet
    By Losguapos1 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-06-2017, 11:35 AM
  6. Return value from sheet to textboxes based on value on another textbox
    By impresxy in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-04-2017, 08:55 AM
  7. [SOLVED] Return Value Based on Match in Another Sheet using a Relative Sheet Name
    By DCmega in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-21-2013, 01:59 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