+ Reply to Thread
Results 1 to 7 of 7

Vlookup Issue

  1. #1
    Registered User
    Join Date
    09-13-2012
    Location
    Calgary
    MS-Off Ver
    Excel 2016
    Posts
    8

    Vlookup Issue

    I have a database of monthly statistics. I want to show a YTD number based on a cell value and vlookup specific data.

    For example, in the attachment as I change B6 from 3 to 4, the value in B9 should change from 130000 to 172000.
    Attached Images Attached Images
    Attached Files Attached Files

  2. #2
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Vlookup Issue

    Enter formula in B9 and copy down

    =INDEX($B$2:$G$4,MATCH(A9,$A$2:$A$4,0),MATCH("Period "&B$6,$B$1:$G$1,0))
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  3. #3
    Registered User
    Join Date
    09-13-2012
    Location
    Calgary
    MS-Off Ver
    Excel 2016
    Posts
    8

    Re: Vlookup Issue

    Unfortunately that just enters the value of that period, I am looking for a sum of the periods. So, if B6 = 3, it would return 130000 and if it was 4 it would return 172000.

  4. #4
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,598

    Re: Vlookup Issue

    Please Login or Register  to view this content.
    copy down B9:B11
    Last edited by protonLeah; 09-30-2015 at 05:36 PM. Reason: in case it goes past column G
    Ben Van Johnson

  5. #5
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Vlookup Issue

    Or

    and copy down

    =SUM(INDEX((VLOOKUP(A9,$A2:$G2,{2,3,4},0)),0))

  6. #6
    Registered User
    Join Date
    09-13-2012
    Location
    Calgary
    MS-Off Ver
    Excel 2016
    Posts
    8

    Re: Vlookup Issue

    Thanks protonLeah. That works.

  7. #7
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Vlookup Issue

    One more

    =SUM(INDEX((--RIGHT(B$1:G$1)<=B$6)*(B2:G2),0))

+ 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. Issue with VLOOKUP
    By Sagittarus1977 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 07-13-2015, 07:22 AM
  2. vlookup issue
    By bmcdougal in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-02-2015, 04:33 PM
  3. [SOLVED] Vlookup issue
    By justanot in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 09-18-2012, 12:09 PM
  4. VLOOKUP Issue
    By purplehaze1988 in forum Excel - New Users/Basics
    Replies: 6
    Last Post: 02-25-2010, 12:19 PM
  5. [SOLVED] Yet Another VLOOKUP issue in VBA
    By Bill in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-27-2006, 09:45 PM
  6. VLOOKUP issue
    By Jonah in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-16-2005, 07:00 PM
  7. VLOOKUP issue
    By Jonah in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 11-16-2005, 06:35 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