+ Reply to Thread
Results 1 to 4 of 4

Setting a constant in a vlookup formula

  1. #1
    Registered User
    Join Date
    05-02-2013
    Location
    Knoxville, TN
    MS-Off Ver
    Excel 2010
    Posts
    22

    Setting a constant in a vlookup formula

    =VLOOKUP('I-S 4COLUMN'!$B18,'2 YR INCOME STMT'!$A$4:$E$20,2,0)

    Above is my vlookup formula. The spreadsheet '2 YR INCOME STMT' changes each month. How can I keep the formula constant when I change the spreadsheet '2 YR INCOME STMT' each month.

    When I change the spreadsheet the formula changes to =VLOOKUP('I-S 4COLUMN'!$B11,#REF!$A$4:$E$20,2,0)

    Can anyone help please?

  2. #2
    Forum Contributor
    Join Date
    03-06-2013
    Location
    Salt Lake City, Utah
    MS-Off Ver
    2007, 2010
    Posts
    127

    Re: Setting a constant in a vlookup formula

    Would something like this work:

    =VLOOKUP('I-S 4COLUMN'!$B18,OFFSET('2 YR INCOME STMT'!$A$4,0,0,COUNTA('2 YR INCOME STMT'!$A:$E),COUNTA('2 YR INCOME STMT'!1:1)),2,0)
    Last edited by BrownBoy; 09-18-2014 at 03:46 PM. Reason: Error in formula
    BrownBoy

    If happy, mark "SOVLED" & add to "REP"

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,962

    Re: Setting a constant in a vlookup formula

    The spreadsheet '2 YR INCOME STMT' changes each month.
    changes to what?

    Perhaps put that in an INDIRECT() function and reference it?
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  4. #4
    Registered User
    Join Date
    05-02-2013
    Location
    Knoxville, TN
    MS-Off Ver
    Excel 2010
    Posts
    22

    Re: Setting a constant in a vlookup formula

    Thanks I have a fix.

+ 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. Replies: 3
    Last Post: 09-18-2011, 12:08 PM
  2. [SOLVED] setting transferred text as constant
    By Tonto in forum Excel General
    Replies: 1
    Last Post: 10-26-2005, 06:05 PM
  3. vlookup using a constant value
    By Dave Peterson in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-06-2005, 06:05 AM
  4. [SOLVED] vlookup using a constant value
    By cutthroatjess in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 02:05 AM
  5. [SOLVED] Setting a Constant when creating a new file from a template?
    By Conan Kelly in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-15-2005, 02:05 AM

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