+ Reply to Thread
Results 1 to 22 of 22

INDIRECT(A1:A5&"!A1) to spill A1 from other sheets doesn't work, how could I do it ?

  1. #1
    Registered User
    Join Date
    07-20-2023
    Location
    France
    MS-Off Ver
    MS365 Version 2306 Build 16.0.16529.20164
    Posts
    9

    Question INDIRECT(A1:A5&"!A1) to spill A1 from other sheets doesn't work, how could I do it ?

    INDIRECT(A1:A5&"!A1) to spill A1 from other sheets doesn't work, how could I do it ?

    In A1 I have SHEET1, A2 I have SHEET2, A3 I have SHEET3 and etc.

    When I do INDIRECT(A1&"!A1") it shows the value of A1 from SHEET1.

    I want to see in a spill A1 from SHEET1 to 5 in one command without having to drag it down as the objective is to make it dynamic.

    Is there a solution that doesn't require more than regular excel ?

    Thank you.

  2. #2
    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. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,877

    Re: INDIRECT(A1:A5&"!A1) to spill A1 from other sheets doesn't work, how could I do it ?

    Administrative Note:

    Welcome to the forum.

    The three most recent versions of Excel are Excel 2019, Excel 2021 and MS365 - if you are using MS365, please give this name along with the release number in your profile (e.g. MS365 Version 2211). This is in the About Excel section further down the Account page.

    Thanks.
    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.

  3. #3
    Registered User
    Join Date
    07-20-2023
    Location
    France
    MS-Off Ver
    MS365 Version 2306 Build 16.0.16529.20164
    Posts
    9

    Re: INDIRECT(A1:A5&"!A1) to spill A1 from other sheets doesn't work, how could I do it ?

    I updated my profile, thank you.

  4. #4
    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. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,877

    Re: INDIRECT(A1:A5&"!A1) to spill A1 from other sheets doesn't work, how could I do it ?

    Thank you. How exactly do you want the sheets to spill?

    There are instructions at the top of the page explaining how to attach your sample workbook (yellow banner: HOW TO ATTACH YOUR SAMPLE WORKBOOK). Screenshots are of little practical use as we cannot manipulate them.

    A good sample workbook has just 10-20 rows of representative data that has been desensitised. It also has expected results mocked up, worked examples where required, relevant cells highlighted and a few explanatory notes.

  5. #5
    Valued Forum Contributor
    Join Date
    06-23-2021
    Location
    Romania
    MS-Off Ver
    2021, 365 v 2208
    Posts
    722

    Re: INDIRECT(A1:A5&"!A1) to spill A1 from other sheets doesn't work, how could I do it ?

    Hi,
    use:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Diana Tanase


    If the solutions offered helped you to solve your problem, then mark the thread as SOLVED (thread tools in the top menu) and you can click on * to add reputation to those who helped you, as a way to say thank you !

  6. #6
    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. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,877

    Re: INDIRECT(A1:A5&"!A1) to spill A1 from other sheets doesn't work, how could I do it ?

    That doesn't do it - I believe the OP wants everything from all sheets.

    If it's column A only, this might work:

    =VSTACK(Sheet1:Sheet4!A:A)

    EDIT: No, that won't do it, either.

    We need a sample workbook.

  7. #7
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,054

    Re: INDIRECT(A1:A5&"!A1) to spill A1 from other sheets doesn't work, how could I do it ?

    Reading the requirement... tanasedn's DOES do what was asked, IMHO.
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  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. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,877

    Re: INDIRECT(A1:A5&"!A1) to spill A1 from other sheets doesn't work, how could I do it ?

    Reading it again, it might, but a sample workbook would help to clarify the requirement, as would some response - any response! - from the OP.

  9. #9
    Registered User
    Join Date
    07-20-2023
    Location
    France
    MS-Off Ver
    MS365 Version 2306 Build 16.0.16529.20164
    Posts
    9

    Question Re: INDIRECT(A1:A5&"!A1) to spill A1 from other sheets doesn't work, how could I do it ?

    Okay, so there should be an excel file linked to that message now.

    Thank you for your help.
    Attached Files Attached Files

  10. #10
    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. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,877

    Re: INDIRECT(A1:A5&"!A1) to spill A1 from other sheets doesn't work, how could I do it ?

    Thanks, but you haven't shown us (mocked up) the results that you want. Is it just cell A1 from the sheets listed? Still not clear - sorry.

    EDIT: I have just realised that there are more worksheet tabs - you should have saved it with them all visible! I srolled left - didn't realise I'd have to do this.
    Last edited by AliGW; 07-20-2023 at 06:46 AM.

  11. #11
    Registered User
    Join Date
    07-20-2023
    Location
    France
    MS-Off Ver
    MS365 Version 2306 Build 16.0.16529.20164
    Posts
    9

    Re: INDIRECT(A1:A5&"!A1) to spill A1 from other sheets doesn't work, how could I do it ?

    Sorry ! they were visible on my file and I didn't know that they could go invisible.
    I hope everything works.
    If you have questions I will answer them.
    Thak you again for your time.

  12. #12
    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. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,877

    Re: INDIRECT(A1:A5&"!A1) to spill A1 from other sheets doesn't work, how could I do it ?

    So, in S1:

    =VSTACK(Sheet1:Sheet3!A1)

    which is what Diana suggested in post #5.

  13. #13
    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. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,877

    Re: INDIRECT(A1:A5&"!A1) to spill A1 from other sheets doesn't work, how could I do it ?

    You could add Start and Stop sheets to use as delimiters, then add sheets that need to be included only between them (see attached).

    Then you could use this:

    =LET(v,VSTACK(Start:Stop!A1),FILTER(v,v<>0))
    Attached Files Attached Files

  14. #14
    Registered User
    Join Date
    07-20-2023
    Location
    France
    MS-Off Ver
    MS365 Version 2306 Build 16.0.16529.20164
    Posts
    9

    Re: INDIRECT(A1:A5&"!A1) to spill A1 from other sheets doesn't work, how could I do it ?

    Just to be clear.
    What I put in the example table is just the principle but then I added tabs that work like in my real excel files to explain better how it works and what I want.

    Also Vstacks might not be a solution for my problem because I forgot to detail that but in my sheets : SHEET1, SHEET2, and SHEET3, the Column A doesn't have the same values.
    To be more precise:
    In THIS document, I have 10, 20, 30, 40, 50 in everyone of them.
    But in my real document, I might have 10, 30, 50, 20, 60.
    So in a totally random order.

    My objective is to find the price depending on the where and the how many.
    If I only had one SHEET of pricing, I would juste use an index match to the SHEET.

    But I need to link these pricing SHEETS to cells and I want it to be dynamic.
    My problem is that indirect cannot do INDIRECT(range of cells containing sheets names).

  15. #15
    Registered User
    Join Date
    07-20-2023
    Location
    France
    MS-Off Ver
    MS365 Version 2306 Build 16.0.16529.20164
    Posts
    9

    Re: INDIRECT(A1:A5&"!A1) to spill A1 from other sheets doesn't work, how could I do it ?

    Okay thank you, I will check that.

  16. #16
    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. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,877

    Re: INDIRECT(A1:A5&"!A1) to spill A1 from other sheets doesn't work, how could I do it ?

    See post #13.

    Can you please mock up a realistic and NOT simplistic representation of what you want the results to look like?

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

    Re: INDIRECT(A1:A5&"!A1) to spill A1 from other sheets doesn't work, how could I do it ?

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

  18. #18
    Registered User
    Join Date
    07-20-2023
    Location
    France
    MS-Off Ver
    MS365 Version 2306 Build 16.0.16529.20164
    Posts
    9

    Re: INDIRECT(A1:A5&"!A1) to spill A1 from other sheets doesn't work, how could I do it ?

    I will send you that ASAP.
    Thank you.

  19. #19
    Registered User
    Join Date
    07-20-2023
    Location
    France
    MS-Off Ver
    MS365 Version 2306 Build 16.0.16529.20164
    Posts
    9

    Re: INDIRECT(A1:A5&"!A1) to spill A1 from other sheets doesn't work, how could I do it ?

    Here is the document that is the closest to mine.
    Thank you for your help.
    Also, all the values errors are normal in the columns N O P of MAPPING, its because some location are not set in the pricing sheets and it is not a problem.
    There are multiple tabs, I hope they wont be hidden this time.
    Attached Files Attached Files
    Last edited by Annib12; 07-20-2023 at 01:28 PM.

  20. #20
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,054

    Re: INDIRECT(A1:A5&"!A1) to spill A1 from other sheets doesn't work, how could I do it ?

    This bit:

    VALUE(IF(LEN($A$3)=5,LEFT($A$3,2),IF(LEN($A$3)=4,LEFT($A$3,1))))

    returns an error. So, the formula in column N CAN NOT be working. Additionally, S (the intended result) does NOT EXIST anywhere in column A of any of the other sheets.

    I think a defintion of what you are trying to do would help...

  21. #21
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,054

    Re: INDIRECT(A1:A5&"!A1) to spill A1 from other sheets doesn't work, how could I do it ?

    Totally baffled! Point me to some rows where the first INDEX MATCH returns nothing, but the latter part of the formula DOES return something.
    Last edited by Glenn Kennedy; 07-20-2023 at 01:51 PM.

  22. #22
    Registered User
    Join Date
    07-20-2023
    Location
    France
    MS-Off Ver
    MS365 Version 2306 Build 16.0.16529.20164
    Posts
    9

    Re: INDIRECT(A1:A5&"!A1) to spill A1 from other sheets doesn't work, how could I do it ?

    First of all, thank you for your reply.

    I made a mistake while writing the function and instead of $A$3 it should be $K3.

    VALUE(IF(LEN($K3)=5,LEFT($K3,2),IF(LEN($K3)=4,LEFT($K3,1))))

    This part looks if the postal code only has 4 digits, it just return 1 digit from the left, and if 5 it returns 2.
    It allows me to have pricing depending on the postal code OR the area.

    It didn't impact the result, just changed the error of the values that were not found.
    I changed it and put the file back here.

    Also to be more clear about what I want to achieve:

    In the tab : MAPPING

    There is the function in the Cell N3.

    I need this function to spill to the bottom automatically. I don't want to drag it down. My databases change size a lot and I wish that it would just like the other columns.

    My second wish is that the function in the cell O3 would spill down and right but that is maybe impossible i don't know.

    What I put in the column R is what I thought would work in N3.


    Also I feel like the title of my post doesn't fit the problem, I don't really know how to name it.
    It really is the fact that I can't put a range of path to sheets in the function "indirect" to retrieve values from the said sheets ...
    Attached Files Attached Files
    Last edited by Annib12; 07-21-2023 at 02:15 AM.

+ 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. [SOLVED] Vlookup and Indirect functoin doesn't work
    By dobracik in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 02-18-2016, 04:26 AM
  2. [SOLVED] Indirect formula doesn't work
    By Ztv in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-30-2014, 05:15 PM
  3. [SOLVED] Help with INDIRECT FUNCTION Doesn't work
    By Kinez101 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 06-07-2013, 11:12 AM
  4. Open files from FTP server (works with "servername" but doesn't work with "ip address")
    By adammsu1983 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-24-2012, 04:30 PM
  5. Indirect doesn't work even if files are open - office 2010
    By Alexander_Golinsky in forum Excel General
    Replies: 0
    Last Post: 08-07-2012, 02:24 AM
  6. Indirect doesn't work when sheetname have spaces
    By ExcelQuestion in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-26-2007, 05:33 PM
  7. Indirect.ext - Eek! Doesn't Work
    By Gordon in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-04-2006, 08:15 AM

Tags for this Thread

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