+ Reply to Thread
Results 1 to 6 of 6

Taking the value of cell from another sheet by using a variable

Hybrid View

  1. #1
    Registered User
    Join Date
    07-31-2016
    Location
    Polska
    MS-Off Ver
    2003
    Posts
    3

    Taking the value of cell from another sheet by using a variable

    When I want to get value of the cell A1 in sheet, which name "sheet", I have to write function:

    ='SHEET'!A1
    I woud like to "1" to be variable, and get this value of the cell G2.

    For excamle:

    ='SHEET'!A(G2)
    When G2 = 3, it makes:

    ='SHEET'!A3
    What to do to make it work?
    Last edited by WojciechZG; 07-31-2016 at 03:26 AM.

  2. #2
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,945

    Re: Taking the value of cell from another sheet by using a variable

    Formula: copy to clipboard
    =indirect("sheet!a"&g1)


    BSB

  3. #3
    Registered User
    Join Date
    07-31-2016
    Location
    Polska
    MS-Off Ver
    2003
    Posts
    3

    Re: Taking the value of cell from another sheet by using a variable

    Thank you

  4. #4
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Taking the value of cell from another sheet by using a variable

    Another possibility...

    =INDEX('SHEET'!A:A,G2)
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  5. #5
    Registered User
    Join Date
    07-31-2016
    Location
    Polska
    MS-Off Ver
    2003
    Posts
    3

    Re: Taking the value of cell from another sheet by using a variable

    I have a another, similar question. How to make it work?
    ='SHEET'!SUM(A1:A2)
    (without make special sum in sheet 'SHEET')

  6. #6
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Taking the value of cell from another sheet by using a variable

    Maybe this...

    =INDEX('SHEET'!A:A,A1+A2)

    Or...

    =INDEX('SHEET'!A:A,SUM(A1:A2))

+ 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: 19
    Last Post: 08-18-2021, 11:23 PM
  2. Macro - Taking the value of a cell and finding it on another sheet
    By mrrobward in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 08-01-2012, 07:01 AM
  3. Link cell from variable named sheet to cell on another sheet with variable rows
    By drewship in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-07-2010, 01:38 PM
  4. Replies: 1
    Last Post: 08-19-2009, 05:22 AM
  5. Replies: 1
    Last Post: 06-01-2006, 02:06 PM
  6. Taking a cell from sheet 2 to sheet 1 (newbie here)
    By ChipCarlton in forum Excel General
    Replies: 5
    Last Post: 10-13-2005, 12:26 PM
  7. Replies: 4
    Last Post: 10-06-2005, 11:05 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