+ Reply to Thread
Results 1 to 3 of 3

Help! How to use the result of a function as part of another

Hybrid View

  1. #1
    Registered User
    Join Date
    06-17-2011
    Location
    California, USA
    MS-Off Ver
    Excel 2003
    Posts
    11

    Help! How to use the result of a function as part of another

    I have a column with the top cell as the title. THis usually reads: "month total"

    In this case for last month this title cell says: "May Total"

    One of the cells in that column references values from the sheet named "May" This cell currently contains the following: "=May!C25&"/"&May!C24"

    Every new month the title is changed. I would like the cell to automatically reference the new month's sheet... for example instead of having to go in and change the function like this: "=June!C25&"/"&June!C24"
    I would like to add a function that will grab the first word in the title.

    I was thinking along these lines: =LEFT(A1,SEARCH(" ",A1)-1)
    but I am not sure how to incorporate this into the other function.. something resembling this, but that would actually work
    "=LEFT(A1,SEARCH(" ",A1)-1)!C25&"/"&LEFT(A1,SEARCH(" ",A1)-1)!C24"

    Hope the question is clear enough.
    Thank you very much for any help

  2. #2
    Forum Expert
    Join Date
    01-15-2007
    Location
    Brisbane, Australia
    MS-Off Ver
    2007
    Posts
    6,591

    Re: Help! How to use the result of a function as part of another

    Hi

    try
    =INDIRECT(LEFT(A1,SEARCH(" ",A1)-1)&"!C25")&"/"&INDIRECT(LEFT(A1,SEARCH(" ",A1)-1)&"!C24")
    rylo

  3. #3
    Registered User
    Join Date
    06-17-2011
    Location
    California, USA
    MS-Off Ver
    Excel 2003
    Posts
    11

    Re: Help! How to use the result of a function as part of another

    Quote Originally Posted by rylo View Post
    Hi

    try
    =INDIRECT(LEFT(A1,SEARCH(" ",A1)-1)&"!C25")&"/"&INDIRECT(LEFT(A1,SEARCH(" ",A1)-1)&"!C24")
    rylo
    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