+ Reply to Thread
Results 1 to 13 of 13

Use of INDIRECT (I think!)

  1. #1
    Registered User
    Join Date
    04-03-2016
    Location
    Auckland, New Zealand
    MS-Off Ver
    365 (2301 Build 16.0.16026.20196) 64-bit
    Posts
    50

    Use of INDIRECT (I think!)

    Hi

    I have a workbook with multiple sheets, one for each employee, then a summary sheet - for regular staff catch-ups.

    On my summary sheet, it references cells in each of the staff member's pages.

    The problem I have is the summary sheet doesn't contain row for row all of the same topics - (hence summary) - so when I try to drag to fill down more rows (or copy/paste) for future catchups, the references are all bung.
    I have attached a sample sheet, as it's a lot easier to see than explain.
    The actual doc has a lot more employee sheets, and there is no way I can re-reference each cell manually - will be very prone to error over time.

    I know it's along the lines of using INDIRECT, and the row number on the employee sheet somehow, but can't sort it.


    To try my best to describe it, with just one as an example (I can figure out the rest - have highlighted relevant cells yellow in the doc), here's the problem in some words:


    Sheet 'Tom' has the date of the 1st round of catchups on cell B15, and the 2nd catchup on B26, and the 3rd in B37.

    Sheet 'Summary' has a cell with the refence to that 1st date on C8, then the 2nd date on cell C14.
    Currently in cell C8 I just have =Tom!B15. (good enough)
    My attempt in cell C14 is =INDIRECT("'Tom'!B" & ROW(Tom!B15)+11)
    This works for the 2nd catchup slot fine.
    When dragging down to populate a 3rd catchup slot however, instead of correctly pointing to cell B37 - it points to cell B32.

    Hope this properly describes the issue.

    Any help much appreciated!
    11 for test.xlsx

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,975

    Re: Use of INDIRECT (I think!)

    You could do it this way:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,975

    Re: Use of INDIRECT (I think!)

    Or you can use INDIRECT for the sheet (employee) name:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  4. #4
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,975

    Re: Use of INDIRECT (I think!)

    This, for all of Tom's Summary data:

    Formula: copy to clipboard
    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    04-03-2016
    Location
    Auckland, New Zealand
    MS-Off Ver
    365 (2301 Build 16.0.16026.20196) 64-bit
    Posts
    50

    Re: Use of INDIRECT (I think!)

    Quote Originally Posted by TMS View Post
    This, for all of Tom's Summary data:

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Holy cow you guys are wizards!!!

    I'm going to use the second one you gave, purely because maintenance for a novice like me will be easier long term:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Works brilliantly, thanks! I love the versatility of grabbing the sheet name using INDIRECT, for future employees.

    One minor thing - one of my employees names (and therefore the sheet name) has a ' in it, which I think is messing up the formula (e.g O'Donnell).
    How would I go about fixing that?
    Last edited by gromitnz; 07-04-2023 at 09:37 PM. Reason: Typo

  6. #6
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,465

    Re: Use of INDIRECT (I think!)

    Another option, empty the whole table and try in C4 and copy to right:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    04-03-2016
    Location
    Auckland, New Zealand
    MS-Off Ver
    365 (2301 Build 16.0.16026.20196) 64-bit
    Posts
    50

    Re: Use of INDIRECT (I think!)

    Thank you - also looks great - although I see a problem with this when more and more 'Rounds' (future catch-ups) are added - we are going to be doing them once a month, so will start to add up!

  8. #8
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,975

    Re: Use of INDIRECT (I think!)

    You're welcome.



    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 those who helped.

  9. #9
    Registered User
    Join Date
    04-03-2016
    Location
    Auckland, New Zealand
    MS-Off Ver
    365 (2301 Build 16.0.16026.20196) 64-bit
    Posts
    50

    Re: Use of INDIRECT (I think!)

    Sorry TMS - are you able to help with this?

    One minor thing - one of my employees names (and therefore the sheet name) has a ' in it, which I think is messing up the formula (e.g O'Donnell).
    How would I go about fixing that?
    This is for:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Will def mark as solved if you have any thoughts around this, and happy to hand out stars!!

  10. #10
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,975

    Re: Use of INDIRECT (I think!)

    Not off the top of my head. I tried replacing the "'" with a space ( "'" ). But the problem with that is the cell value and the sheet name all have to tie up.

  11. #11
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,975

    Re: Use of INDIRECT (I think!)

    Thanks for the rep.

  12. #12
    Registered User
    Join Date
    04-03-2016
    Location
    Auckland, New Zealand
    MS-Off Ver
    365 (2301 Build 16.0.16026.20196) 64-bit
    Posts
    50

    Re: Use of INDIRECT (I think!)

    While playing between replies, the unmentionable (shhh) came up with this modification which seems to work:

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Will mark solved, thanks so very much!!!

  13. #13
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,465

    Re: Use of INDIRECT (I think!)

    Thanks for the feedback and rep . Glad to have helped.

+ 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. INDIRECT -- need cell range to change to the INDIRECT method
    By skydivetom in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 12-04-2018, 11:18 AM
  2. [SOLVED] INDIRECT Function with multiple sheets - SUMIF, INDIRECT & MATCH
    By DJDRU in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 10-07-2014, 08:42 AM
  3. Sum of indirect sheet names with multiple cells (SUM, INDIRECT,SHEETNAME in cell)
    By a1b2c3d4e5f6g7h8 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-12-2013, 08:42 AM
  4. Allow EXCEL INDIRECT(ADDRESS()) and INDIRECT(RANGE()) functions
    By Andy Wiggins in forum Excel Formulas & Functions
    Replies: 18
    Last Post: 09-06-2005, 12:05 PM
  5. [SOLVED] Allow EXCEL INDIRECT(ADDRESS()) and INDIRECT(RANGE()) functions
    By Andy Wiggins in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 09-06-2005, 06:05 AM
  6. [SOLVED] Allow EXCEL INDIRECT(ADDRESS()) and INDIRECT(RANGE()) functions
    By Mike Barlow in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 01:05 AM
  7. [SOLVED] Allow EXCEL INDIRECT(ADDRESS()) and INDIRECT(RANGE()) functions
    By Mike Barlow in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 12: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