+ Reply to Thread
Results 1 to 7 of 7

Formulas nested in vlookup

  1. #1
    Registered User
    Join Date
    07-08-2013
    Location
    New York
    MS-Off Ver
    Excel 2007
    Posts
    4

    Formulas nested in vlookup

    I do not know if this is possible but I would like to nest a formula in a vlookup that would return information from the row where the lookup is returned.

    I have two worksheets one with detail data the other with summary data. I am looking up a value on the detail to the summary to give an explination. Within this explination I would like to reference a volume that is found in the same row on the detail page.

    For Example


    Sample Detail Table
    A B C D E
    1 Type Name Product Volume Explination
    2 Check Abc 1 50
    3 Wire Def 8 34
    4 Check Ghi 9 57
    5 Check Jkl 8 702
    6 Wire Mno 5 65
    7 Wire Pqr 6 40
    8 Wire Stu 7 482
    9 Check Vwx 3 45
    10 Check Yz 8 86

    Sample Summary Table
    A B
    1 Type Explination
    2 Check This customer is using a checking account with monthly volume of (volume from row).
    3 Wire This customer is performing wire transfers out of their account with a monthly volume of (volume from row)

    I would like to use a formual in Column E of the Detail table

    Vlookup(A2,Summary!$A$1:$B$3,2,false)

    The issue I am having is how I can referece column D from detail in the return.

    Thank you for any help.

  2. #2
    Forum Expert
    Join Date
    09-20-2011
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    2,278

    Re: Formulas nested in vlookup

    Hello
    If you curtail your explanation in the Summary Table to something like:

    This customer is using a checking account with monthly volume of (
    and then use the following formula:

    Please Login or Register  to view this content.
    Does this return the text required?

    DBY
    Last edited by DBY; 08-27-2013 at 11:27 AM.

  3. #3
    Registered User
    Join Date
    07-08-2013
    Location
    New York
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Formulas nested in vlookup

    DBY,

    Thank you for the response.

    Unfortunately this solution will not work.

    I simplified the tables in my example and the "volume" information can be sourced from 1 of 5 columns depending on the explination for the product.

    I was hoping to use a concatenation in the explination cell with and index formula but cannot figure out how to make the range of the index formula = current row.

    Hopefully this provides a little more color around my inquery.

    Best,
    Kevin

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: Formulas nested in vlookup

    Hi and welcome to the forum

    Perhaps if you provided a sample work book that more closely resembles what your actual workbook looks like, along with a few samples answers, it would be easier to help you?
    To attach a file to your post,
    click advanced (next to quick post),
    scroll down until you see "manage file",
    click that and select "add files" (top right corner).
    click "select files" find your file, click "open" click "upload" click 'done" bottom right. click "submit reply"

    Once the upload is completed the file name will appear below the input boxes in this window.
    You can then close the window to return to the new post screen.
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  5. #5
    Registered User
    Join Date
    07-08-2013
    Location
    New York
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Formulas nested in vlookup

    FDibbins,

    Thank you for the suggestion.

    I have attached a file with the two worksheets and some sample data.

    I would like the lookup to be able to reference the specific "Credit Grade, Volume, Count, proccessed" on a given row in the detail table.

    Thank you,
    Kevin
    Attached Files Attached Files

  6. #6
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: Formulas nested in vlookup

    If your intention is to not use helpers, then try this array formula, copied down...
    =index(Summary!$D$2:$D$26,match('Detail Table'!B2&'Detail Table'!C2,Summary!$A$2:$A$26&Summary!$B$2:$B$26,0),1)

    If you dont want 0 displayed if there is no data, then add this...
    =if(index(Summary!$D$2:$D$26,match('Detail Table'!B2&'Detail Table'!C2,Summary!$A$2:$A$26&Summary!$B$2:$B$26,0),1),"",=index(Summary!$D$2:$D$26,match('Detail Table'!B2&'Detail Table'!C2,Summary!$A$2:$A$26&Summary!$B$2:$B$26,0),1)

    ...confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer. Press F2 on that cell and try again.

  7. #7
    Forum Expert
    Join Date
    09-20-2011
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    2,278

    Re: Formulas nested in vlookup

    Hello
    The only way I could think to do this would be to use a series of nested Substiute functions with Vlookup. For example to replace: 'credit grade'; 'count'; 'Volume'; and 'processed' as stated, then:

    Please Login or Register  to view this content.
    Copied down column I on the 'Detail Table'. It appears to work with your sample file but I'm not sure how robust this method will be when and if you add more 'Rationale' to your Summary table.

    *Note in your Summary table there's a spelling error with 'credit gade' and 'processed' is missing a closing("). These need to be corrected for the above formula to work.

    Hope its of some use.
    DBY

+ 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. Nested IF Formulas
    By Ozbearinvn in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-31-2013, 09:14 PM
  2. [SOLVED] Too many nested formulas
    By kfirecracker in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 10-02-2012, 04:41 PM
  3. Excel 2007 : Nested Formulas
    By AMC16 in forum Excel General
    Replies: 3
    Last Post: 06-01-2012, 03:36 PM
  4. Vlookup across sheets, nested Vlookup possibly?
    By paid2mkgrlspanic in forum Excel Programming / VBA / Macros
    Replies: 16
    Last Post: 06-09-2009, 05:10 PM
  5. if nested formulas
    By marleneardon in forum Excel General
    Replies: 1
    Last Post: 05-11-2006, 07:30 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