Results 1 to 2 of 2

Indirect Variable

Threaded View

  1. #1
    Valued Forum Contributor
    Join Date
    07-16-2007
    Location
    GA
    MS-Off Ver
    Office 365 - Version 2403
    Posts
    1,059

    Indirect Variable

    Hi Excel Users,


    I attached a sample to my previous question, concerning this subject. Perhaps, when seeing the file, you will get a better understanding of what I'm trying to do.

    In this file example, I have 2 worksheets, which are as follows:

    CTQ-TNG06307-101 Work Log -- This is my Work Summary Log
    03-2008-TNG06307-101_P1 -- This is my project form, in which I will have multiple similar forms like this, except different data that pertains to that specific project.

    I want to be able to "automatically" pull or extract data off my other worksheets, which in this case is, 03-2008-TNG06307-101_P1 worksheet.

    Part of my CTQ-TNG06307-101 Work Log intent is to have a "string" value, as I copy the formular down, within the CTQ-TNG06307-101 Work Log worksheet.

    However, I want part of my Indirect formula to have a "Indirect Variable", if there is a such a thing in Excel.

    As, I copy the worksheet name into cell 'C19', I want my indirect formula that will change my "I19" value to become a variable & become "I20", as I copy the formula down.

    So far, I tried the other suggestions, but there's still something wrong with my formula.

    Please assist.

    Thanks



    I have a file that has multiple worksheets in it. The majority of the worksheets is a basic form that helps summarize job requirements for each specific project.

    In this file, I have a Work Summary Log worksheet in which I'm extracting some data from the other worksheets to "summarize" all jobs into one nice work summary log.

    The following form works great to "automatically" extract desired data from desired worksheets:

    =IF(C20="","",INDIRECT("'"&C20&"'!I9"))

    C20 = Worksheet name or Worksheet tab name

    Example: 03-2008-TNG06307-101_P1

    I9 = The desired extracted data
    I have a handful of variables for each task, such as:
    C = Complete
    WIP = Work in Progress

    When I use the above formula, I would like the result to be 'C' or "WIP" if that's what is stated from the 03-2008-TNG06307-101_P1 form or worksheet.


    If I copy this formulat to the next row or rows, the "I9" variable does not change - The rest of the formula is fine.

    How can I modify this formula so that "I9" variable becomes "I10" & gives the desired result from the worksheet in which I'm extracting data from?

    Example:

    If "I9" = 'C' in worksheet, 03-2008-TNG06307-101_P1, my result will be 'C' on my Work Summary Log worksheet

    =IF(C20="","",INDIRECT("'"&C20&"'!I9"))


    If "I10" = 'WIP' in worksheet, 03-2008-TNG06307-101_P1, my result will be 'WIP' on my Work Summary Log worksheet

    =IF(C20="","",INDIRECT("'"&C20&"'!I10"))

    As of now, I have to manually change the 'IXX' value, which I don't want to do

    How can I modify this to "automically" change cells, as if the formula was:

    =I9 -- Gives result as, "C"

    Then, copied this formula to get:

    =I10 -- To get result as, "WIP"



    Is there another formula that works similar to the above formula or description given that will provide desired results?

    Thanks
    Attached Files Attached Files
    MyCon
    -- Using Latest Version of Excel

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