+ Reply to Thread
Results 1 to 4 of 4

Excel 2007 : How can I get diferent sheet names in the formula

  1. #1
    Forum Contributor stojko89's Avatar
    Join Date
    05-18-2009
    Location
    Maribor, Slovenia
    MS-Off Ver
    MS Office 365
    Posts
    913

    How can I get diferent sheet names in the formula

    Hi

    My problem is this:

    I'm using this
    Please Login or Register  to view this content.
    In my attached file this is in colum JA/Ne/Delno (Colum I)
    In colum A I have hiperlinks made to Sheets
    Is it possible to make the part where the sheet name is entered so it changes with every row to its name like this:

    If it's row 1 the code is this

    Please Login or Register  to view this content.
    If its row 4 the code is this:

    Please Login or Register  to view this content.
    The name of the work sheet in the formula changes. the part in ' '

    Thank you
    Attached Files Attached Files
    Last edited by stojko89; 01-27-2011 at 01:43 AM.

  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
    48,479

    Re: How can I get diferent sheet names in the formula

    Try using Indirect (in Row 4):

    =IF(INDIRECT("'"&TEXT(ROW(A4);"00000")&"-2011'!F2")="";"Ne";IF(INDIRECT("'"&TEXT(ROW(A4);"00000")&"-2011'!F2")="V celoti dobavljen material";"Ja";"Delno"))


    This should change the sheet number to reflect the row number

    Regards
    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 Contributor stojko89's Avatar
    Join Date
    05-18-2009
    Location
    Maribor, Slovenia
    MS-Off Ver
    MS Office 365
    Posts
    913

    Re: How can I get diferent sheet names in the formula

    Thank you very much

    I had to use this
    Please Login or Register  to view this content.
    But now it works great. If I didn't put the IF Empty part at the begining it would show me an error where the seet names aren't yet put

    It is strange that I have to have the above formula in I2 that refers to cell A2 <--- this is normal what I don't get is why the formula doesn't work in cell I2 if I put it like this
    Please Login or Register  to view this content.
    The changed part is ROW(A2) insted of ROW(A1)

  4. #4
    Registered User
    Join Date
    11-26-2010
    Location
    usa
    MS-Off Ver
    Excel 2003
    Posts
    1

    Re: How can I get diferent sheet names in the formula

    Thank you very much.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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