+ Reply to Thread
Results 1 to 14 of 14

LOOKUP to return values from multiple columns

Hybrid View

  1. #1
    Registered User
    Join Date
    05-30-2017
    Location
    Melbourne Florida!
    MS-Off Ver
    Home & business 2016
    Posts
    8

    LOOKUP to return values from multiple columns

    I've been a casual Excel user for years and by no means an expert so I could use some help. What I'm trying to do is create a spreadsheet that will look to MFR pricing spreadsheets on our server and return values in subsequent cells-like this;

    A B C D E F
    1 EA Joe's Parts Joe's parts model A Joe's parts model A description Joe's parts model A price

    Columns A&B would be manual entry with no formulas/links.
    Column C would be manual entry but point to a spreadsheet on our server based on MFR name text entered.
    Column D, E & F would autofill from same spreadsheet once the model # is filled in.
    And column F would increment with qty in column A. (I got this!)

    Thank you!

  2. #2
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,327

    Re: Newbie Here-Need help with VLOOKUP (I think)

    Hello Mike & Welcome to the Forum,

    Take a look at this

    The key with the Vlookup is the third argument. Adjust for the column you want to return.

    =VLOOKUP(lookup_value,table_array,col_index_num,range_lookup)
    HTH
    Regards, Jeff

  3. #3
    Registered User
    Join Date
    05-30-2017
    Location
    Melbourne Florida!
    MS-Off Ver
    Home & business 2016
    Posts
    8

    Re: LOOKUP to return values from multiple columns

    I understand but I need to return more than just a column/cell value. I want to look up another spreadsheet based on my text entered in a cell.
    Then in the next cell reference said spreadsheet and drill down to a particular part number that I am now typing and autofill the next 2 columns.
    (All in the same row). I read thru the link you posted but I don't think it addresses my exact need.

    Thanks for your help!

  4. #4
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,327

    Re: LOOKUP to return values from multiple columns

    Can you attach a sample sheet?

  5. #5
    Registered User
    Join Date
    05-30-2017
    Location
    Melbourne Florida!
    MS-Off Ver
    Home & business 2016
    Posts
    8

    Re: LOOKUP to return values from multiple columns

    Since I don't have anything done yet, I've attached a pdf of a sample spreadsheet that hopefully explains what I'm trying to accomplish.
    Attached Files Attached Files

  6. #6
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,327

    Re: LOOKUP to return values from multiple columns

    If this does not work, a sample workbook is needed.

    First Sheet
    A
    B
    C
    D
    E
    1
    Part #
    Packaging
    Part Description
    List
    Level 3
    2
    220
    Box
    2 Cond 22 Solid
    $25
    $17

    Second Sheet
    A
    B
    C
    D
    E
    F
    G
    1
    Item
    Qty
    Unit
    Manufacturer
    Model Number
    Description
    Unit Cost
    2
    220
    2 Cond 22 Solid
    $25.00

    F2 =VLOOKUP(E2,'First Sheet'!$A$2:$E$2,3,0)
    G2 =VLOOKUP(E2,'First Sheet'!$A$2:$E$2,4,0)

  7. #7
    Registered User
    Join Date
    05-30-2017
    Location
    Melbourne Florida!
    MS-Off Ver
    Home & business 2016
    Posts
    8

    Re: LOOKUP to return values from multiple columns

    So with the example you posted above, we're pointing cell F2 to the 2nd row, 3rd column on the first sheet. And the same for cell G2 but the 4th column. I get it.

    What I'm trying to do is "when I enter part# 220 in my second sheet, I want it to autofill columns F and G from columns C and E from the first sheet (in this case).
    Sounds confusing?

  8. #8
    Registered User
    Join Date
    05-30-2017
    Location
    Melbourne Florida!
    MS-Off Ver
    Home & business 2016
    Posts
    8

    Re: LOOKUP to return values from multiple columns

    Thanks. Let me digest this and I'll get back tomorrow.
    I don't know what you mean by a sample workbook. I'm trying to create this from the ground up and the only thing I can offer is a generic manufacturer's price sheet (which is represented by the "first sheet" above).

  9. #9
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: LOOKUP to return values from multiple columns

    Then you need
    F2 =VLOOKUP(E2,'First Sheet'!$A$2:$E$2,3,0)
    G2 =VLOOKUP(E2,'First Sheet'!$A$2:$E$2,5,0) <- changed the 4 to 5

  10. #10
    Registered User
    Join Date
    05-30-2017
    Location
    Melbourne Florida!
    MS-Off Ver
    Home & business 2016
    Posts
    8

    Re: LOOKUP to return values from multiple columns

    OK, thank you for your help. I got it to work...when I have the database in the same work book. Now I have to make it grab the data from another workbook on our network. The problem now is I'm getting a #VALUE error.

  11. #11
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,327

    Re: LOOKUP to return values from multiple columns

    You need to do some investigative work as I can't duplicate your error.

    You need to confirm the error is an error? What you are using as your lookup value and does it exist in the lookup table?

    If you see what you think is a match, test it with comparing the cells. It's as simple as =A1=A1

    If they match you will get TRUE and if they don't match FALSE

    I understand you said it's another workbook, so just point to those cells which you think match.

  12. #12
    Registered User
    Join Date
    05-30-2017
    Location
    Melbourne Florida!
    MS-Off Ver
    Home & business 2016
    Posts
    8

    Re: LOOKUP to return values from multiple columns

    Here is my function;

    =VLOOKUP(E4='\\Our Company\Share\SALES & MARKETING\Manufacturer Pricing\ACME Products\[price_list-03.28.17.xls]Control Systems'!$A$1:$E$147,2,0)

    The part number I enter is in column B of this source spreadsheet, but even if I use the associated data from column A I get the same #VALUE! return.

  13. #13
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: LOOKUP to return values from multiple columns

    That = after E4 needs to be a comma.

  14. #14
    Registered User
    Join Date
    05-30-2017
    Location
    Melbourne Florida!
    MS-Off Ver
    Home & business 2016
    Posts
    8

    Re: LOOKUP to return values from multiple columns

    I've changed the = to a comma and now it's pulling up the folder where price_list-03.28.17.xls is located and asking for Update Values. This happens continuously.

+ 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. Lookup multiple values in different columns and return a single value
    By tanyael in forum Hello..Introduce yourself
    Replies: 1
    Last Post: 07-18-2014, 10:41 AM
  2. Replies: 2
    Last Post: 12-04-2013, 04:21 PM
  3. Replies: 0
    Last Post: 10-07-2013, 10:24 AM
  4. lookup multiple values in multiple columns to return a result
    By AYAHOO123 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-11-2013, 07:53 PM
  5. [SOLVED] Lookup match index multiple values return other columns
    By martypocock in forum Excel Formulas & Functions
    Replies: 25
    Last Post: 11-07-2012, 10:57 PM
  6. Lookup multiple values in multiple columns and return value
    By Mads2600 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-20-2010, 09:57 AM
  7. Lookup in Multiple Columns, Return Multiple Values
    By andy62 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-05-2006, 09:40 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