+ Reply to Thread
Results 1 to 7 of 7

Vlookup problem

  1. #1
    Registered User
    Join Date
    04-08-2014
    Location
    Jacksonville, FL United States
    MS-Off Ver
    Excel 2007
    Posts
    4

    Vlookup problem

    Hi everyone! My name is Kimberly and I am "OK' at using excel until you start needing more in depth equations. My boss informed me my job description requires me to be proficient in excel... Hmmm... I have been at this job for 22 years and barely used excel until he took over 5 years ago. Even then, we used it minimally. He is an EXPERT and I do mean EXPERT in it. I am guessing he THINKS EVERYONE is proficient in it...ROFLMBO... Anyways, this brings me to my first issue...

    I am trying to create a spreadsheet that utilizes VLOOKUP. I have attached it for some help. I can't get the first column in the masterpage tab to work... Any help would be greatly appreciated...
    Thanks...Kim
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Vlookup problem

    Okay, maybe we need to take a few steps back. In Masterpage cell A9, what is it we are trying to lookup and what do we expect to appear in that cell?
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Registered User
    Join Date
    04-08-2014
    Location
    Jacksonville, FL United States
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Vlookup problem

    A9 in the masterpage tab is supposed to return the portfolio code from tab 1 transsummary

  4. #4
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Vlookup problem

    Which portfolio code? If you were doing it manually, how would you explain it?
    i.e. "First, on Masterpage, I look at the values in E5 and F5 and try to find them on the Transummary page in the same row. Then I look in column C and put that portfolio code into A9."
    With the VLOOKUP, typically, you look for a specific value from a cell (on Masterpage) in a column on Transummary. When it finds that value, it pulls a second value based on the third argument/number in your VLOOKUP.

    =VLOOKUP(value to lookup or cell where that value is, where to look that value up including all columns where you want to pull a value back, count of columns to right of first column (with 1 as first column) that you want to return, FALSE means you are looking for an exact match)

  5. #5
    Registered User
    Join Date
    04-08-2014
    Location
    Jacksonville, FL United States
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Vlookup problem

    Ok, so, what I want to happen and what I have already tried to make work may not be correct...LOL With that said, I am trying to make the masterpage look at different tabs I have along the bottom, I am just working on the first column in hopes to understand the rest of the sheet. What I need to happen, is for the masterpage in A9 to read whatever portfolio code appears in column 3 on the transsummary page and populate it into that cell. I am sorry if this seems like I am rambling, I am new to VLOOKUP and trying to understand how it works...LOL

  6. #6
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Vlookup problem

    Here's how VLOOKUP works. it finds a specific value in a table by looking down the leftmost column of values and then returns another value on the same row as that found value.
    I attached your workbook. I put "CVS" into cell A5 of MasterPage.
    In A9, I want to return the portfolio code that is next to "CVS" on the Transsummary page.
    Here's the formula
    =VLOOKUP(A5, transsummary!$B$7:$F$47,2, FALSE)

    A5 is the value it's looking up so it's CVS

    transummary!$B$7:$F$47 is where it will be looking and returning from. With a VLOOKUP, the value you are looking for (CVS) must always be the leftmost column of this table/array. That's why I start with B and not A because column B is where the "security symbols" are. The $ are used to keep those references anchored. If I copied that formula from F9 to F10, the B7 and F47 would not change. The A5 would change to A6.

    2 is how many columns over is the value I want to return (including 1st column). Since I am starting in B, B would be 1. I want the portfolio code which is in column C so that's 2.

    FALSE means I am looking for an exact match which we are doing.
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    04-08-2014
    Location
    Jacksonville, FL United States
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Vlookup problem

    Thank you so much! You rock!!

+ 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. Vlookup problem in a loop with cell property and variable cell problem (long title sry)
    By ExcelsiorLux in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 06-13-2013, 10:38 AM
  2. Replies: 6
    Last Post: 05-28-2013, 05:08 PM
  3. vlookup? match? index? MULTIPLE criteria for vlookup search problem....
    By aborg88 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 02-11-2013, 09:56 AM
  4. vlookup problem and count problem
    By thy00123 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 06-05-2009, 04:31 AM
  5. [SOLVED] vlookup problem???
    By Lolly in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-21-2005, 11:06 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