+ Reply to Thread
Results 1 to 6 of 6

Reading sheet name from specific cell

  1. #1
    Registered User
    Join Date
    06-02-2021
    Location
    Norway
    MS-Off Ver
    Office 2019
    Posts
    12

    Reading sheet name from specific cell

    I have a workbook with multiple sheets where I would like to read specific (same) cell values from every sheet, and add them to a Summary sheet.

    I know this can be done by typing 'sheet name!cell', but I have 100+ sheets, and I read 50-100 cells from each.
    The way its done for "Martin" and "John" in the picture is the way I know about.
    But can it be done in a way like for "Debbie" and "Leah" ?

    Ie., I would like to have the sheet names in column A, and then use the same code for all columns B..Z, ie CELL C5 should show the value from sheet=Leah, CELL=B207.

    New sheets are added on a regular basis, and adding sheet name for every column B..Z each time is very time consuming, when you can't just copy the previous line....

    Any suggestions?

    2021-06-02_170108.png

  2. #2
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.83 (24031120))
    Posts
    8,724

    Re: Reading sheet name from specific cell

    a spreadsheet attached would be better, see yellow banner. then i could have added to the spreadsheet this example
    you can use indirect() to add the sheet name

    =Indirect($A2&"!"&B$1)
    Attached Files Attached Files
    Last edited by etaf; 06-02-2021 at 11:29 AM.
    Wayne
    if my assistance has helped, and only if you wish to , there is an "* Add Reputation" on the left hand side - you can add to my reputation here

    If you have a solution to your thread - Please mark your thread solved do the following: >
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  3. #3
    Registered User
    Join Date
    06-02-2021
    Location
    Norway
    MS-Off Ver
    Office 2019
    Posts
    12

    Re: Reading sheet name from specific cell

    Thanks Wayne, exactly what I needed!

  4. #4
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.83 (24031120))
    Posts
    8,724

    Re: Reading sheet name from specific cell

    you are welcome

  5. #5
    Registered User
    Join Date
    06-02-2021
    Location
    Norway
    MS-Off Ver
    Office 2019
    Posts
    12

    Re: Reading sheet name from specific cell

    May I ask one more question with reference to the attached Indirect-ETAF.xlsx?

    What if Sheet2 contain an "x" in C1, and Sheet3 contains an "x" in E1, is it then possible on Sheet1, to show the cellposition of the x?
    Something like this:
    Sheet A1 A2 C1:E1
    Sheet2 Sheet2 A1 Sheet2 A2 C1
    Sheet3 Sheet3 A1 Sheet3 A2 E1

    The x needs to be in position C1:E1

    Or even better:
    If the "x" is in C1, it should return the character a
    If the "x" is in D1, it should return the character b
    If the "x" is in E1, it should return the character c

    So that sheet1 would look like this:
    Sheet A1 A2 C1:E1
    Sheet2 Sheet2 A1 Sheet2 A2 a
    Sheet3 Sheet3 A1 Sheet3 A2 c
    Last edited by Bartonsen; 06-02-2021 at 04:27 PM. Reason: Adding info

  6. #6
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.83 (24031120))
    Posts
    8,724

    Re: Reading sheet name from specific cell

    not sure i'm fully following, it may also be worth starting a new thread, as more chance of other members seeing , and in addition also adding spreadsheet , and include manually adding the expected results.

+ 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. Matrix Style Reading: Reading from one cell to cause change in another cell
    By snkhan in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-23-2019, 01:52 AM
  2. Replies: 6
    Last Post: 07-30-2018, 07:45 AM
  3. [SOLVED] reading the tab name of a different sheet into a cell
    By Trebor777 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 12-16-2017, 08:16 AM
  4. [SOLVED] Copy specific cell value on sheet1 to specific cell on sheet2 or other sheet.
    By Mr.GfCs in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-20-2015, 02:41 PM
  5. delete specific columns by reading headings
    By sa02000 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-01-2008, 06:52 AM
  6. Reading specific text question
    By adsxvii in forum Excel General
    Replies: 1
    Last Post: 03-15-2007, 01:50 PM
  7. Reading a cell at a specific clock time.
    By revets in forum Excel General
    Replies: 3
    Last Post: 01-10-2007, 10:58 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