+ Reply to Thread
Results 1 to 7 of 7

Search a cell reference and return another cell reference

  1. #1
    Registered User
    Join Date
    01-04-2016
    Location
    Canada
    MS-Off Ver
    2013
    Posts
    9

    Search a cell reference and return another cell reference

    I am working on a spreadsheet which displays predicated and dependent actions.

    For example:
    TASK PREDICATED BY DEPENDENTS
    A1 TASK 1 NONE TASK 1 (A1)
    A2 TASK 2 TASK 1 (A1) TASK 2 (A2)
    A3 TASK 3 TASK 2 (A2)

    I want to create a formula to search column C for references to the current row and return the text from column A in that row if it is true.
    Something like: =IF(search("a",c?),"aROW", "none"
    where "c?" would search all of column c and "aROW" would return the value from column a of the searched row for every positive result.
    Not sure if this is even possible. Thanks for the help.

    Chris

  2. #2
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Search a cell reference and return another cell reference

    Sounds like you are looking for an INDEX/MATCH formula. Can you upload an example spreadsheet? The formatting in the post is hard to decipher. (Go Advanced>Manage Attachments)
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Registered User
    Join Date
    01-04-2016
    Location
    Canada
    MS-Off Ver
    2013
    Posts
    9

    Re: Search a cell reference and return another cell reference

    Thanks for the quick reply! Hope this helps. Just a really rough example of what I am doing. That actual connection tree is far more complicated.

    Chris
    Attached Files Attached Files

  4. #4
    Forum Expert José Augusto's Avatar
    Join Date
    10-29-2014
    Location
    Portugal
    MS-Off Ver
    2013-2016
    Posts
    3,329

    Re: Search a cell reference and return another cell reference

    Try this approach

    Select D2:Z2 and paste the following array formula (CSE --> CTRL+SHIFT+ENTER)
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    and copy select cells (D2:Z2) down

    Note: You can extend the number of columns to the maximum number of dependents COLUMN(A$1:Z$1)

    See the file flow chart spread sheet sample.xlsx

  5. #5
    Registered User
    Join Date
    01-04-2016
    Location
    Canada
    MS-Off Ver
    2013
    Posts
    9

    Re: Search a cell reference and return another cell reference

    I'm basically trying to fill column B with the relevant data from column C.

  6. #6
    Forum Expert José Augusto's Avatar
    Join Date
    10-29-2014
    Location
    Portugal
    MS-Off Ver
    2013-2016
    Posts
    3,329

    Re: Search a cell reference and return another cell reference


  7. #7
    Registered User
    Join Date
    01-04-2016
    Location
    Canada
    MS-Off Ver
    2013
    Posts
    9

    Re: Search a cell reference and return another cell reference

    Thanks Jose! It took some tweeking but I got it to work in my other spread sheet. Brilliant!

+ 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. Replies: 5
    Last Post: 06-01-2015, 03:38 PM
  2. Replies: 1
    Last Post: 02-11-2015, 01:56 PM
  3. Replies: 7
    Last Post: 05-17-2014, 06:28 AM
  4. [SOLVED] Replace absolute cell reference with Indirect cell reference in formula
    By Roothy in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 04-11-2013, 04:46 AM
  5. [SOLVED] UDF to return string of values of all rows with cell matching reference cell
    By oemgacaesar in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-20-2012, 12:43 PM
  6. Return of cell reference
    By Saturn in forum Excel General
    Replies: 5
    Last Post: 06-13-2010, 03:44 AM
  7. VLOOKUP to return Cell reference rather than Cell Contents.
    By Wozza147 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-22-2009, 07:49 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