+ Reply to Thread
Results 1 to 8 of 8

Problem to reference a cell or range of cells in another worksheet in the same workbook

  1. #1
    Registered User
    Join Date
    07-01-2010
    Location
    Luxembourg, Luxembourg
    MS-Off Ver
    Excel 2019
    Posts
    80

    Problem to reference a cell or range of cells in another worksheet in the same workbook

    Hi,

    I've got a problem to reference a cell or range of cells in another worksheet in the same workbook.




    In Sheet1 I've got text (A1:A7 and A9:A15) as well as cell A8 for which one I look in Sheet2 for a value which is in B1.

    Now if I copy down I want to have:

    Sheet1 A23 to return value from Sheet2 B2
    Sheet1 A38 to return value from Sheet2 B3
    Sheet1 A53 to return value from Sheet2 B4

    Any idea on this?
    Many thanks in advance
    Attached Files Attached Files

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,811

    Re: Problem to reference a cell or range of cells in another worksheet in the same workboo

    You can use this formula in cell B1 of Sheet:

    =IF(ISNUMBER(A1),INDEX(Sheet2!B:B,COUNT($A$1:$A1)),"")

    then copy down to the bottom of your data. Note that you may need to use semicolons ( ; ) instead of commas ( , ) in the formula, depending on your regional settings.

    Hope this helps.

    Pete

  3. #3
    Registered User
    Join Date
    07-01-2010
    Location
    Luxembourg, Luxembourg
    MS-Off Ver
    Excel 2019
    Posts
    80

    Re: Problem to reference a cell or range of cells in another worksheet in the same workboo

    Hi and thanks,

    Sorry but this doesn't work.

  4. #4
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,811

    Re: Problem to reference a cell or range of cells in another worksheet in the same workboo

    What does "... this doesn't work ..." mean? Are you getting an error message, or some obviously incorrect result?

    Your example file did not tie in with your description, as you had a number in A8 and in A22 - not the cell references that you referred to.

    Please submit a more accurate sample file, and indicate within there what you would like to see down column B.

    Pete

  5. #5
    Registered User
    Join Date
    07-01-2010
    Location
    Luxembourg, Luxembourg
    MS-Off Ver
    Excel 2019
    Posts
    80
    Sorry my mistake all my apologies

    I‘ll try to explain in an other way without table.
    In Sheet1 I want have a formula in A7 which should retrieve the first result in B1 (15) from Sheet2.
    Now the formula will be repeated every 13th cell(A20, A33, A46 …) whilst the result to be shown in those cells moves down in Sheet2 by only 1 cell (B2, B3, B4 …)
    I hope this is more clear
    Many thanks

  6. #6
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,811

    Re: Problem to reference a cell or range of cells in another worksheet in the same workboo

    Put this formula in B7:

    =INDEX(Sheet2!$B:$B,INT((ROWS($1:1)-1)/13) +1)

    changing commas and function names as required, then copy it to the cells where you want it to appear (i.e. A20, A33, A46, and so on).

    Hope this helps.

    Pete

  7. #7
    Registered User
    Join Date
    07-01-2010
    Location
    Luxembourg, Luxembourg
    MS-Off Ver
    Excel 2019
    Posts
    80

    Re: Problem to reference a cell or range of cells in another worksheet in the same workboo

    Cool that's what I was looking for.

    Many thanks

  8. #8
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2405 (Windows 11 23H2 64-bit)
    Posts
    81,425

    Re: Problem to reference a cell or range of cells in another worksheet in the same workboo

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

    Also, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of all those who offered help.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

+ 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: 1
    Last Post: 11-09-2015, 09:30 PM
  2. Reference cell in worksheet to copy paste cell range from different worksheet
    By gbatz in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-16-2014, 04:33 PM
  3. Replies: 3
    Last Post: 02-27-2014, 02:31 PM
  4. [SOLVED] Need to reference a cell in a different worksheet in the same workbook
    By igor7 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-18-2013, 04:18 AM
  5. Reference Range of cells in a new worksheet
    By JonesLondon in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-10-2013, 04:46 PM
  6. Cell reference to an autofilterd worksheet problem
    By ketantantod in forum Excel General
    Replies: 2
    Last Post: 02-16-2011, 02:20 PM
  7. Reference cells from another worksheet problem
    By Neil in forum Excel General
    Replies: 3
    Last Post: 06-23-2005, 12:24 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