+ Reply to Thread
Results 1 to 4 of 4

How to get the sheet name from a cell value

  1. #1
    Registered User
    Join Date
    03-12-2021
    Location
    Sweden
    MS-Off Ver
    365
    Posts
    2

    How to get the sheet name from a cell value

    Hi

    I have 3 suppliers, who gives me a price list and discount list.
    The 6 documents have been merged to 1 to make it easier for me.
    Sheet has been named after there supplier... (in my example Suppler_1, Supplier_2 etc...)

    By writing the Item number in my Calculation sheet I get all the information I need...
    All except who the supplier is.

    Is there any formula to get the Supplier (sheet name) as a cell value depending on another cell?

    I write the item nummber in cell A10 ( my Calculation sheet) and want the Supplier name (sheet name) to be displayed in cell B7.
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    01-11-2021
    Location
    CANADA
    MS-Off Ver
    Excel 2007, Office 2019
    Posts
    31

    Re: How to get the sheet name from a cell value

    =IF(COUNTIF(Supplier_1!A:A,Calc!A10),"Supplier_1",IF(COUNTIF(Supplier_2!A:A,Calc!A10),"Supplier_2",IF(COUNTIF(Supplier_3!A:A,Calc!A10),"Supplier_3","Not Found")))

  3. #3
    Registered User
    Join Date
    03-12-2021
    Location
    Sweden
    MS-Off Ver
    365
    Posts
    2

    Re: How to get the sheet name from a cell value

    Thank very much

    Works perfect

  4. #4
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,587

    Re: How to get the sheet name from a cell value

    Pl see file. In each supplier sheet file additional Column E with formula added.
    In Calc Sheet
    In B10
    Please Login or Register  to view this content.
    In C10 then copied across
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Pl note
    Array formula should be confirmed with Ctrl+Shift+Enter keys together.
    If answere is satisfactory press * to add reputation.

+ 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: 5
    Last Post: 10-12-2019, 12:08 AM
  2. [SOLVED] syntax to select cell in another sheet based on offset of active cell in current sheet
    By duvius in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 10-07-2014, 11:16 AM
  3. [SOLVED] read single cell content from sheet of closed file and put it in a cell on an active sheet
    By rsmith5413 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-09-2014, 04:16 AM
  4. Replies: 2
    Last Post: 11-18-2013, 07:31 AM
  5. [SOLVED] Locating a cell in sheet 2, based on 2 variables in sheet 1. Result into sheet 1.
    By Gezza24 in forum Excel Formulas & Functions
    Replies: 19
    Last Post: 11-05-2013, 12:50 AM
  6. Replies: 13
    Last Post: 04-04-2012, 01:25 AM
  7. Replies: 1
    Last Post: 10-30-2009, 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