+ Reply to Thread
Results 1 to 3 of 3

Vlookup in conjunction with Index and CountA function

  1. #1
    Registered User
    Join Date
    10-22-2013
    Location
    Auburn Alabam
    MS-Off Ver
    Excel 2013
    Posts
    11

    Vlookup in conjunction with Index and CountA function

    Hi all,

    I am trying to create a table that will pull data off two spreadsheets with weekly sales data from 2014 and 2015. I am trying to set up the table so that it automatically pulls the most recent weekly sales data from the 2015 spreadsheet (did that already), and pulls the comparable data from the same period in 2014 (tricky part.) I was trying to use the vlookup function, searching for the last value input on the first row in the 2015 spreadsheet (which is just a "Week X" column), so that as new weeks are put in, it will search for the title "Week 21", on the 2014 sheet, and then pull the data in that specific store column, but as many times as I try its just telling me my formula is incomplete or something.

    =VLOOKUP(INDEX('Weekly Sales (2015)'!A:A, COUNTA('Weekly Sales (2015)'!A:A), 1), 'Weekly Sales (2014)'!A1:AB54, 'Weekly Sales (2014)'!I:I)

    That's the function I'm trying to use. Any suggestions, or an easier way to do this?

    Thanks

  2. #2
    Valued Forum Contributor
    Join Date
    10-10-2012
    Location
    New York
    MS-Off Ver
    Excel 2007/2010
    Posts
    337

    Re: Vlookup in conjunction with Index and CountA function

    Without seeing what your workbook/table looks like (it helps to upload a file for us to look at), the first thing I noticed wrong with your vlookup function is that you entered an array value 'Weekly Sales (2014)'!I:I instead of a number value for the third argument.
    Don't just use the answers provided for you. Try to understand how it works by reverse engineering or asking about it.

    Please mark the thread as [SOLVED] (Thread Tools->Mark thread as Solved) when answered.
    If you're happy with an answer given, please click the * under the person's name to boost their reputation.

  3. #3
    Registered User
    Join Date
    10-22-2013
    Location
    Auburn Alabam
    MS-Off Ver
    Excel 2013
    Posts
    11

    Re: Vlookup in conjunction with Index and CountA function

    Actually I just misunderstood what that field was supposed to be. I hoped it was something simple, I thought I was supposed to select the column like I did with the Index function, not list out the number of columns it was from the origin.

    Thanks for your help!

+ 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. [SOLVED] How to use INDEX formula in conjunction with Data Validation to output data.
    By Pope_003 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-09-2014, 11:08 AM
  2. [SOLVED] IF & INDEX Formula =INDEX(D11:D59,COUNTA(D11:D59),1)
    By GC1 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 10-05-2013, 08:11 AM
  3. Replies: 2
    Last Post: 03-29-2012, 07:52 AM
  4. Utilizing iteration in conjunction with Excel function
    By Squash_Pro in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-03-2008, 03:37 AM
  5. Replies: 3
    Last Post: 07-11-2005, 02:05 PM

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