+ Reply to Thread
Results 1 to 13 of 13

Vlookup help?

  1. #1
    Registered User
    Join Date
    10-11-2015
    Location
    Saskatchewan Canada
    MS-Off Ver
    Excel 2013
    Posts
    18

    Vlookup help?

    Sorry if this has been asked before but I'm not even really sure how to ask what formula I need help with, fairly new to this but now a few of the basics. I'm trying to build a template for the purpose of billing. In A1 there's "part#" A2 "serial#" A3 "tech#" and A4 "description". B1,2,&3 I have validated drop down lists to choose from, but here's where it gets tricky, how do I get which ever I choose (a1,2 or 3 to to return info in b4? I can write a simple vlookup,to use 1 column at a time but not utilize all 3. Only 1 column would be selected at a time. I'm hope this makes sense. Sorry if Not.

  2. #2
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Vlookup help?

    I would use a three cell lookup.

    Sample attached.

    enter cis into cell A2 and press tab
    enter ana in B2 and press tab
    click on the list box.


    This is just something for you to consider.

    Paste your sample spreadsheet with detailed requirements and I will customise something for you.
    Attached Files Attached Files
    My General Rules if you want my help. Not aimed at any person in particular:

    1. Please Make Requests not demands, none of us get paid here.

    2. Check back on your post regularly. I will not return to a post after 4 days.
    If it is not important to you then it definitely is not important to me.

  3. #3
    Valued Forum Contributor
    Join Date
    08-07-2014
    Location
    Quito, Ecuador
    MS-Off Ver
    Excel 2016 & 365, Windows 10
    Posts
    511

    Re: Vlookup help?

    @ verno74

    It is not clear what you want to put in cell B4 and under what condition, and from where....
    please explain better
    Barriers are there for those who don't want to dream

  4. #4
    Registered User
    Join Date
    10-11-2015
    Location
    Saskatchewan Canada
    MS-Off Ver
    Excel 2013
    Posts
    18
    I would like to select either a part # serial # or tech# and have the description return in b4

    Quote Originally Posted by vichopalacios View Post
    @ verno74

    It is not clear what you want to put in cell B4 and under what condition, and from where....
    please explain better
    Last edited by verno74; 10-11-2015 at 09:32 PM.

  5. #5
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: Vlookup help?

    see attached solution i made your problem

    Formula in b4 is
    this solution does not require CSE
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    there are alternatives which do require CSE...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.

    essentially the scoped formula

    checks for more how many items are entered
    if with COUNTA(B1:B3)<=1
    if 0...does into the primary formula which will error out and give "Product not found"
    if greater than 1..ie 2 or 3...then more than one product selected( i should of probably wrote entered)

    the primary formula is this
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    which at its core is a index/match formula

    breaking it down
    the index bit is simply looking at column L...description down the row 500 (extend as required)

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    SUMPRODUCT((ISBLANK(B1:B3)=FALSE)*ROW(B1:B3)) and SUMPRODUCT(MAX((B1:B3<>"")*(ROW(B1:B3))) do the same thing, i put both in so you could get the flavour of it
    essentially it returns the row number (1,2 or 3) of what was typed in to lookup

    if you type something in row 1 then the indirect will return B1 etc

    the other piece of the puzzle the offset
    so starting at H1, it will offset columns based on the sumproduct number...ie if you type in part# it will offset 1 column Right
    etc

    500 is the length..extend to your needs
    Attached Files Attached Files
    If you are satisfied with the solution(s) provided, please mark your thread as Solved.
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  6. #6
    Registered User
    Join Date
    10-11-2015
    Location
    Saskatchewan Canada
    MS-Off Ver
    Excel 2013
    Posts
    18

    Re: Vlookup help?

    Thanks guys I'll be sure to try these

  7. #7
    Registered User
    Join Date
    10-11-2015
    Location
    Saskatchewan Canada
    MS-Off Ver
    Excel 2013
    Posts
    18

    Re: Vlookup help?

    How did you attach the file?

  8. #8
    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,969

    Re: Vlookup help?

    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

  9. #9
    Registered User
    Join Date
    10-11-2015
    Location
    Saskatchewan Canada
    MS-Off Ver
    Excel 2013
    Posts
    18

    Re: Vlookup help?

    Heres a screenshot of the spreadsheet I'm working on. I have drop down lists under Serial #, Part# & RDS as well and would like the selected column to return the information under the Description column. The information is on other tabs, I can get us VLOOKUP at a basic level. As in it works if I'm only wanting to use just a single column for the reference but not all three. [ATTACH]424243
    Attached Images Attached Images
    Last edited by verno74; 10-12-2015 at 12:32 AM.

  10. #10
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: Vlookup help?

    this is a different setup to your original post however the same principals apply

    attach a santised sample sheet on how your data is setup
    Last edited by humdingaling; 10-12-2015 at 12:40 AM.

  11. #11
    Registered User
    Join Date
    10-11-2015
    Location
    Saskatchewan Canada
    MS-Off Ver
    Excel 2013
    Posts
    18

    Re: Vlookup help?

    Here is a sample sheet
    Attached Files Attached Files

  12. #12
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: Vlookup help?

    cannot use the offset method with the way your data is setup
    cannot use the CSE method with all your merged cells

    Formula that goes into G19
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    principle same as above except the sumproduct goes across instead of down
    Attached Files Attached Files

  13. #13
    Registered User
    Join Date
    10-11-2015
    Location
    Saskatchewan Canada
    MS-Off Ver
    Excel 2013
    Posts
    18

    Re: Vlookup help?

    That worked so awesome! Thank you for taking the time to assist me with that formula.

+ 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. Using vLookup based on results from a vLookup & returning an undetermined list
    By NormalityBan in forum Excel Formulas & Functions
    Replies: 15
    Last Post: 08-14-2014, 05:02 AM
  2. Replies: 0
    Last Post: 12-26-2013, 01:12 PM
  3. Display Cell within VLookup range that excel thinks matches the VLookup Value
    By headachexcelperson in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-04-2013, 04:56 PM
  4. how to bring all vlookup returns even with duplicate vlookup search keys
    By NYC4LIFE in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-06-2013, 04:53 PM
  5. 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
  6. Replies: 5
    Last Post: 07-29-2009, 07:53 AM
  7. vlookup function-Can vlookup command find the data from the 5 sheets.
    By Rishab shah in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-05-2005, 11: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