+ Reply to Thread
Results 1 to 3 of 3

Using variables to get a cell reference

  1. #1
    Registered User
    Join Date
    08-29-2013
    Location
    new york, new york
    MS-Off Ver
    Excel 2013
    Posts
    76

    Using variables to get a cell reference

    I have two worksheets within a workbook.

    I am looking for a way to use a formula on Worksheet to get a cell reference on Worksheet 2 for a cell that contains a specific datapoint.

    What can I use that would analyze a range of cells to find this answer?

    See attached workbook example
    Attached Files Attached Files

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

    Re: Using variables to get a cell reference

    Assuming your data is a little more complex, (i.e. not everything is in a single row), I used this formula in E5 copied down

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Is that what you needed?
    Attached Files Attached Files
    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
    Forum Expert tim201110's Avatar
    Join Date
    10-23-2011
    Location
    Russia
    MS-Off Ver
    2016, 2019
    Posts
    2,357

    Re: Using variables to get a cell reference

    =ADDRESS(ROW(Sheet2!4:4),MATCH(C5,Sheet2!$4:$4,),4)

+ 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. How to combine two variables to form a cell reference??
    By JamesGoulding85 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-27-2013, 09:29 AM
  2. [SOLVED] Using Variables to Reference Ranges
    By CKRebel in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 07-31-2012, 03:11 PM
  3. [SOLVED] Need to loop through cell reference as variables for query
    By crowby1 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-06-2012, 09:19 AM
  4. How to set up reference variables?
    By cjhund in forum Excel - New Users/Basics
    Replies: 22
    Last Post: 04-18-2011, 11:03 AM
  5. Obtaining a reference from 2 variables.
    By cleggy621 in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 04-29-2008, 06:17 AM
  6. using variables to reference sheets
    By marksince1984 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 06-15-2006, 06:29 PM
  7. Replies: 2
    Last Post: 07-21-2005, 03:05 PM

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