+ Reply to Thread
Results 1 to 4 of 4

Excel V-Look up Macro Simplified

  1. #1
    Registered User
    Join Date
    10-30-2013
    Location
    Boise, ID
    MS-Off Ver
    Excel 2010
    Posts
    36

    Excel V-Look up Macro Simplified

    Hello all,

    I am working with a report in Excel, in which I wrote a macro to balance information on a quarterly basis. The data used to look up and bring into the worksheet is stored on it's own sheet. I can write the macro, no problem, but each quarter the size of the information I am balancing changes. I am looking for a simplified way to change the macro so the macro does not have to be changed every quarter to reflect the new size. Here is an example of the code I used.

    Range("F2").Select
    ActiveCell.FormulaR1C1 = "=VLOOKUP(RC[-1],Siebel!R1C1:R5641C8,1,FALSE)"

    There are 7 columns (3300 rows long) that are added and the vlookup formula applied to, but it would be nice to not have to change the column and row size every quarter. The macro changes formatting before and after the v-look up formula is applied.

    Does anyone have an quick tips to change this?

    Thanks!

  2. #2
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Excel V-Look up Macro Simplified

    Maybe, something like this would help?

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    10-30-2013
    Location
    Boise, ID
    MS-Off Ver
    Excel 2010
    Posts
    36

    Re: Excel V-Look up Macro Simplified

    I tried this, and it works very well. Thank you so much for your help.

  4. #4
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Excel V-Look up Macro Simplified

    You're welcome. Glad to help out and thanks for the feedback. Please comply with Forum Rule No. 9.


    9. Acknowledge the responses you receive, good or bad. If your problem is solved, please say so clearly, and mark your thread as Solved: Click Thread Tools above your first post, select "Mark your thread as Solved". Or click the Edit button on your first post in the thread, Click Go Advanced, select [SOLVED] from the Prefix dropdown, then click Save Changes. If more than two days have elapsed, the Dropdown option or Edit button will not appear -- ask a moderator to mark it.

+ 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. can area calculations be simplified in excel?
    By musataq in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-01-2012, 11:13 AM
  2. Simplified Conditional Macro
    By martinez_pedro in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-27-2011, 10:31 PM
  3. Simplified Macro
    By martinez_pedro in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-17-2011, 09:47 AM
  4. [SOLVED] can't read simplified chinese in excel
    By Iris in forum Excel General
    Replies: 0
    Last Post: 06-26-2006, 04:25 AM
  5. Can this be simplified
    By Barb Reinhardt in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-04-2005, 10:05 AM

Tags for this Thread

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