+ Reply to Thread
Results 1 to 4 of 4

INDIRECT function to reference A2 on all sheets working for some, but not others.

  1. #1
    Forum Contributor
    Join Date
    10-03-2015
    Location
    North Carolina, USA
    MS-Off Ver
    Office 365
    Posts
    167

    INDIRECT function to reference A2 on all sheets working for some, but not others.

    Hi,

    I am using the INDIRECT function to pull the value in A2 on all sheets into a summary sheet. This is my first time using INDIRECT; it's pretty cool! In my Summary sheet, column B contains study numbers. Column F is where the INDIRECT function is, and it looks at the study numbers in column B, and then pulls in the value in A2 of the sheet with the same name as the study number (sheet's names are study numbers). This works for some sheets, but not all.

    I'll attach a file so that you can see what I'm talking about (this workbook normally has a lot more data). Can you help me understand why INDIRECT works in some cases, but not all?

    Thank you!
    Carlos
    Attached Files Attached Files

  2. #2
    Forum Expert XLent's Avatar
    Join Date
    10-13-2010
    Location
    Northumberland, UK
    MS-Off Ver
    various
    Posts
    2,706

    Re: INDIRECT function to reference A2 on all sheets working for some, but not others.

    your {offending} tab names are stored as numbers with leading zeroes only appearing c/o number format and so ,for ex., sheet 350215 does not exist.

    either, store as text, or if tab names always at least 8 chars long: =INDIRECT("'"&TEXT(B2,"00000000")&"'!A2")

  3. #3
    Forum Expert José Augusto's Avatar
    Join Date
    10-29-2014
    Location
    Portugal
    MS-Off Ver
    2013-2016
    Posts
    3,329

    Re: INDIRECT function to reference A2 on all sheets working for some, but not others.

    Hi
    The zero or zeros to the left are only on format not in the value
    Try
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  4. #4
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,769

    Re: INDIRECT function to reference A2 on all sheets working for some, but not others.

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

    The values in col B where it fails are formatted to look like 00350230, but are infact 350230

+ 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 reference to a table is not working!
    By Hooty in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-20-2018, 06:59 PM
  2. Indirect Sheet reference with cell reference left function and text
    By teststrip in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-01-2015, 10:31 AM
  3. [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
  4. [SOLVED] SUMPRODUCT and INDIRECT functions not working with a ROW reference when combined
    By Duoae in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-04-2014, 03:28 AM
  5. indirect function within sumif to reference other sheets
    By stacrafty@yahoo.com in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-15-2006, 12:50 PM
  6. Indirect and Address in Reference to other sheets
    By MikeDH in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 02:05 PM
  7. Indirect and Address in Reference to other sheets
    By MikeDH in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 03: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