+ Reply to Thread
Results 1 to 3 of 3

Using Data to locate cell

  1. #1
    Registered User
    Join Date
    10-30-2007
    Posts
    6

    Using Data to locate cell

    I am attempting to use data in two cells to locate a cell. I can't seem to make it work. Please help me.

    Example: a1=b a2=5 now in a3= "=a1&a2" result is b5
    now I want a formula to display the contens of b5. That way if a1 and a2 change then a3 will hold the new cell information and look for the new cell. please I need help
    Last edited by VBA Noob; 10-30-2007 at 11:22 AM.

  2. #2
    Valued Forum Contributor Excelenator's Avatar
    Join Date
    07-25-2006
    Location
    Wantagh, NY
    Posts
    333
    Example: a1=b a2=5 now in a3= "=a1&a2" result is b5
    What you're looking for is =INDIRECT(a1&a2) in cell A3
    ---------------------------------------------------
    ONLY APPLIES TO VBA RESPONSES WHERE APPROPRIATE
    To insert code into the VBE (Visual Basic Editor)
    1. Copy the code.
    2. Open workbook to paste code into.
    3. Right click any worksheet tab, select View Code
    4. VBE (Visual Basic Editor) opens to that sheets object
    5. You may change to another sheets object or the This Workbook object by double clicking it in the Project window
    6. In the blank space below the word "General" paste the copied code.

  3. #3
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643
    Use INDIRECT.

    =INDIRECT(A1&A2)

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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