+ Reply to Thread
Results 1 to 5 of 5

Need Help With Referencing Sheet in Function

  1. #1
    Registered User
    Join Date
    01-04-2005
    Posts
    4

    Need Help With Referencing Sheet in Function

    I am a novice working with Excel. Hopfully you can help me. This is the equation that I'm trying to use but there is something missing.

    I am trying to pull information from another sheet in a cell based on the sheet name in A4. A4 is a date code (ie. Jan 01, 2005). I want the formula to be set up to vary based on my A4 cell.

    A4=Jan 01, 2005
    Worksheet Name= Jan 01
    B4=3

    Example of code:
    ='(text(A4,"mmm dd"))'!B4

  2. #2
    Forum Contributor Kieran's Avatar
    Join Date
    10-02-2003
    Location
    Perth, Western Australia
    MS-Off Ver
    Office 2003
    Posts
    109
    Try

    =INDIRECT(TEXT(A4,"mmm dd") &"!B4")
    Kieran

  3. #3
    Registered User
    Join Date
    01-04-2005
    Posts
    4

    Unsuccessful

    Thanks for the advice but it didn't work.
    =INDIRECT(TEXT(A4,"mmm dd") &"!B4")


    Perhaps I need to better explain.

    I have a worksheet called: Test chart in which A column has a list of all the worksheet names.

    I am trying to pull information from my various worksheets named Jan 01, Jan 02, etc...

    I thought using ='(text(A4,"mmm dd"))'!B4 would work but it gives me a #ref error.

    I want to read A4 on my Test Chart worksheet to find out what worksheet to reference and pull the value off B4 from the paticular worksheet.

    Does this help explain any better?

  4. #4
    Forum Contributor Kieran's Avatar
    Join Date
    10-02-2003
    Location
    Perth, Western Australia
    MS-Off Ver
    Office 2003
    Posts
    109
    mmcginnis,

    I thought that column A had a list of dates, it appears that you have text, therefore the formula

    =INDIRECT(A4 & "!B4") may be better

    However if the formula is on a sheet other than 'Test chart' then a specific reference to 'Test chart' will need to be added as in

    =INDIRECT('Test chart'!A4 & "!B4")

  5. #5
    Registered User
    Join Date
    01-04-2005
    Posts
    4

    Thanks!

    Success!!!

    Thanks for the additional info. With the information you gave me I was able to create the following formula:

    =INDIRECT("'" & (TEXT($A4,"mmm dd")) & "'" & "!b4")

    Thanks again!!!

+ 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