+ Reply to Thread
Results 1 to 5 of 5

Replace tab value inside formula with cell value

  1. #1
    Registered User
    Join Date
    02-10-2010
    Location
    Welkom, South Africa
    MS-Off Ver
    Excel 2007
    Posts
    3

    Angry Replace tab value inside formula with cell value

    Hi all,

    It would be extremely helpful if anybody can help me with this problem, which again would be obvious but for the life of me can not figure it out. I also tried searching the Forum but an error with "run out of memory" occurs, sorry if this has been asked before.

    I need to replace or substitute a tab reference value inside a formula to display the value of the cell in the validation drop down list. I have attached a file to explain the situation better.

    Please help!
    Thanks
    Attached Files Attached Files

  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: Replace tab value inside formula with cell value

    in b5 =INDIRECT($B$3&"!B2") in c5 =INDIRECT($B$3&"!C2") and so on
    "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
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Replace tab value inside formula with cell value

    If the cell references are to increment etc as outlined you want to use INDIRECT in conjunction with ADDRESS, eg:

    B5: =INDIRECT(ADDRESS(2,COLUMNS($A5:B5),,,$B$3))
    copied across to F5

  4. #4
    Registered User
    Join Date
    02-10-2010
    Location
    Welkom, South Africa
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Replace tab value inside formula with cell value

    Quote Originally Posted by martindwilson View Post
    in b5 =INDIRECT($B$3&"!B2") in c5 =INDIRECT($B$3&"!C2") and so on
    Thanks, this works perfectly on that example which hasn't got a formula, I tried to insert =INDIRECT($B$3&"!B2") in the "Feb" values in the following example and cant get it to work.

    How do I apply =INDIRECT($B$3&"!B2") in the following "Feb" values, =SUMIFS(Feb!$AB$7:$AB$277,Feb!$AF$7:$AF$277,Feb!$B5,Feb!$B$7:$B$277,Feb!B$2)+IF(Feb!$B5="7705-UG00",$AL$229*B$4,0)

    What I'm actually asking is for the syntax to merge the two formulas.

  5. #5
    Registered User
    Join Date
    02-10-2010
    Location
    Welkom, South Africa
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Replace tab value inside formula with cell value

    Thanks guys!!! sorted out

+ 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