+ Reply to Thread
Results 1 to 3 of 3

Setting a variable

  1. #1
    Registered User
    Join Date
    10-29-2009
    Location
    New Jersey
    MS-Off Ver
    Excel 2003
    Posts
    7

    Setting a variable

    I want to change a letter for identifying a cell
    Ex. In cell B2, it says, =(G47) pulling the value from G47
    However, I want the letter “G” to change based on a letter from another cell where I am using “IF” statements. So, cell B2, could say, =(G47), =(D47), etc.
    How can i have the letter change?

  2. #2
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: Setting a variable

    Hi,

    say the formula that determines the letter is in A1, then in B2 use something like

    =INDIRECT(A1&47)

    hth

  3. #3
    Valued Forum Contributor rwgrietveld's Avatar
    Join Date
    09-02-2008
    Location
    Netherlands
    MS-Off Ver
    XL 2007 / XL 2010
    Posts
    1,671

    Re: Setting a variable

    Suppose the letter "G" is in B1:
    Please Login or Register  to view this content.
    or if the Letters can only be "G" or "D"
    Please Login or Register  to view this content.
    Looking for great solutions but hate waiting?
    Seach this Forum through Google

    www.Google.com
    (e.g. +multiple +IF site:excelforum.com/excel-general/ )

    www.Google.com
    (e.g. +fill +combobox site:excelforum.com/excel-programming/ )

    Ave,
    Ricardo

+ 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