+ Reply to Thread
Results 1 to 4 of 4

Calling on text from a cell within a function

  1. #1
    Registered User
    Join Date
    08-29-2013
    Location
    Atlanta, Georgia
    MS-Off Ver
    Excel 2010
    Posts
    3

    Calling on text from a cell within a function

    Hey everyone,

    I have to make these sheets for work to keep track of daily gigabyte totals from cameras. Everyday I create a new sheet and call upon the last sheet to create totals to date. This is the current function:

    =E36+'Day 8'!N36

    Now I also have a cell that has the current day. So cell H3 contains: 8

    Is there a way so that I can rewrite the function to do the math I need it to do automatically if I only change the contents of H3. Right now I am having to go through 16 cells to manually change 'Day #' to the next day.

    Thanks!

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Calling on text from a cell within a function

    =E36+INDIRECT("'day "&H3&"'!N36")
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  3. #3
    Registered User
    Join Date
    08-29-2013
    Location
    Atlanta, Georgia
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Calling on text from a cell within a function

    Uh oh, I forgot to mention that I need the H3 cell to be one less from the pervious. So if Today is Day 7 and I need it to call upon Day 6 I need it to subtract 1 somehow.

  4. #4
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Calling on text from a cell within a function

    Try this tweak to Martin's suggestion.

    =E36+INDIRECT("'Day "&H3-1&"'!N36")
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

+ 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. [SOLVED] help with calling a function (B) and return control of program flow to the calling functio
    By john/nyc in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 10-26-2012, 11:06 AM
  2. Calling the color of the text from another cell
    By pglufkin in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-16-2012, 03:41 AM
  3. how findout the calling cell address in a function
    By krish in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-26-2007, 07:00 AM
  4. Referencin "Calling" Cell from VBA Function
    By kayard in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-15-2006, 09:30 AM
  5. How do you get calling cell for custom function
    By Gregory Cmar in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-29-2006, 12:25 PM

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