+ Reply to Thread
Results 1 to 11 of 11

use a vlookup value in a table

  1. #1
    Registered User
    Join Date
    05-10-2014
    MS-Off Ver
    Excel 2007
    Posts
    57

    use a vlookup value in a table

    This is what I want to do
    formula to go in cell K12
    Find the cell in the range C11:C93 that corresponds to the number to the left of this cell (J12) and add the value one column to the right of that matching value to the value in K11
    Add K11 (cell above)

    photo of the sheet here to give you context.
    https://drive.google.com/open?id=0B0...DM4VlZ1RzRNd1U

    Previously it worked with this
    =IF((K11-$N$7)*(1+$F$7)<=0,0,(K11-$N$7)*(1+$F$7))+P12

    I want it to do almost the same thing I just want to add a value from the table next to the one this cell is in.
    Attached Files Attached Files
    Last edited by SageAdvisor; 04-08-2017 at 06:09 PM.

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,912

    Re: use a vlookup value in a table

    I'm sorry - I opened your file and my eyes started boggling, inducing a headache. Can you provide a simplified version with JUST the tables in question?

    Thanks.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,055

    Re: use a vlookup value in a table

    It might also be an idea to tell us what sheet we're meant to be trying to look at...
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  4. #4
    Registered User
    Join Date
    05-10-2014
    MS-Off Ver
    Excel 2007
    Posts
    57

    Re: use a vlookup value in a table

    Oh sorry about that. It's the 4th tab. 'Retire@65'

    The photo also shows JUST the tab and the 2 tables in question.

  5. #5
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,208

    Re: use a vlookup value in a table

    K10 has text "Capital" and K9 is blank???

  6. #6
    Registered User
    Join Date
    05-10-2014
    MS-Off Ver
    Excel 2007
    Posts
    57

    Re: use a vlookup value in a table

    Quote Originally Posted by JohnTopley View Post
    K10 has text "Capital" and K9 is blank???
    Oh I see what happened. The spreadsheet I uploaded and the photo are from two different versions of the workbook.

    I fixed the link to the photo so now the workbook and the photo of the sheet I need help with are a match. Sorry about the screw up.
    Last edited by SageAdvisor; 04-08-2017 at 06:15 PM.

  7. #7
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,055

    Re: use a vlookup value in a table

    so the expected answer in K11 is what????

  8. #8
    Registered User
    Join Date
    05-10-2014
    MS-Off Ver
    Excel 2007
    Posts
    57

    Re: use a vlookup value in a table

    K11 won't be changed it will stay the same
    K12 is the cell the new formula will be in.
    The solution will be ((((K11+D39)+P12)-$N$6)+L12))
    to be exact.

    The part I need help with is the D39 part
    That's what I need the lookup for but I'm not sure syntax wise how to set it up exactly

    K11 is last year's balance
    D39 is the current year deposit if there is one that corresponds to the age to the left of K12
    So the lookup will take the age listed in J12 and find the corresponding value in the range C11:C93 and get the value in the first column to the right of that
    P12 is the Current year's fees as a negative value that's why the fees are added
    $N$6 is the Current year's withdrawal
    L12 is the current year's growth

    Oops there's some other stuff I almost forgot about
    I still need it to do what it was before so I need it to do all that
    IF((K11-$N$6)<=0,0,

    So I need it to do a check first if last year's balance minus this year's withdrawal is less than or equal to zero
    so I guess it'll look something like this

    IF((K11-$N$6)<=0,0,
    and after that the else condition
    ((((K11+D39)+P12)-$N$6)+L12))

    Again I'm not sure syntax wise how to build it or the D39 lookup

    Thanks for the help
    Last edited by SageAdvisor; 04-08-2017 at 07:18 PM.

  9. #9
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,208

    Re: use a vlookup value in a table

    Is this it ????

    IF((K11-$N$6)<=0,0,(((K11+VLOOKUP(('Retire @'!$B$38-1), $C$11:$G$93, 2))+P12)-$N$6)+L12))

    Also check if highlighted 2 is correct

    value in the first column to the right....
    why not specify the column ?

  10. #10
    Registered User
    Join Date
    05-10-2014
    MS-Off Ver
    Excel 2007
    Posts
    57

    Re: use a vlookup value in a table

    Quote Originally Posted by JohnTopley View Post
    Is this it ????

    IF((K11-$N$6)<=0,0,(((K11+VLOOKUP(('Retire @'!$B$38-1), $C$11:$G$93, 2))+P12)-$N$6)+L12))

    Also check if highlighted 2 is correct



    why not specify the column ?
    Here's what worked
    =IF((K11-$N$6)<=0,0,(((K11+VLOOKUP((J12),$C$11:$G$93,2))+P12)-$N$6)*(1+$F$9))
    Thanks to your formula.

    Thanks very much for your help John

  11. #11
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,208

    Re: use a vlookup value in a table

    Your are very welcome. Thank you for the rep.

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

+ 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] Vlookup query - looking up from a horizontal table to deliver numbers to a vertical table
    By adam_d_john in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 02-21-2017, 09:43 PM
  2. Replies: 3
    Last Post: 06-05-2014, 06:59 PM
  3. Replies: 0
    Last Post: 12-26-2013, 01:12 PM
  4. VLOOKUP for Specific Text in One Table Where an ID Matches in Another Table
    By towanda7 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 06-04-2013, 12:52 PM
  5. Vlookup return the header name of table (Table of 4 column x 55 rows)
    By sanpat in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 01-09-2013, 11:23 PM
  6. Adding data to a table, from another table..reverse vlookup??
    By Speshul in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-24-2012, 04:06 AM
  7. Vlookup info being used without vlookup table attached?
    By in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 01-25-2005, 07: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