+ Reply to Thread
Results 1 to 10 of 10

Looking for a way to do a VLookup in one array, if value not there go to a second array

  1. #1
    Registered User
    Join Date
    01-02-2013
    Location
    Foster City, CA
    MS-Off Ver
    Excel 2010
    Posts
    37

    Looking for a way to do a VLookup in one array, if value not there go to a second array

    I have a part number list showing part number, description and a selling price amount in USD. I use this to to look up the description and amount where a series of PNs are entered elsewhere in the file, then I further manipulate with quantities and sum the result. I also have an option for other currencies showing a currency name and exchange rate. I use the exchange rate to manipulate the USD amount. Now the problem. We have some exceptions where we have predetermined a fixed amount as the price of some of the parts in the foreign currency. So I built a second table with the exceptions. So what I would like to do is be able to do a VLookup in the exception table and if the part number is not found do a second VLookup in the the main table. If I find the part in the exception table, I will use the amount as is. If I don't, I will find the part in the main table and then multiply by the exchange rate.

  2. #2
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Looking for a way to do a VLookup in one array, if value not there go to a second arra

    Hi Steverizer.. suggest you to upload a sample workbook to support your query. thanks.


    Regards,
    DILIPandey
    <click on below * if this helps>
    DILIPandey, Excel rMVP
    +919810929744 (India), +971528225509 (Dubai), [email protected]

  3. #3
    Registered User
    Join Date
    01-02-2013
    Location
    Foster City, CA
    MS-Off Ver
    Excel 2010
    Posts
    37

    Re: Looking for a way to do a VLookup in one array, if value not there go to a second arra

    In the attached sheet,

    If cell B2 = "EURO", then VLOOKUP in array E5:G19, if found use value column G, if not found then VLOOKUP in array A5:C60 and take value in column C times value in cell B3.
    Attached Files Attached Files
    Last edited by Steverizer; 01-12-2013 at 03:19 PM. Reason: Upload file

  4. #4
    Forum Expert dredwolf's Avatar
    Join Date
    10-27-2012
    Location
    Clearwater,Canada
    MS-Off Ver
    Excel 2007
    Posts
    2,649

    Re: Looking for a way to do a VLookup in one array, if value not there go to a second arra

    maybe something like this?:
    =IFERROR(VLOOKUP(PARTNUM,Exceptions table,fixed price column,FALSE),IFERROR(VLOOOKUP(PARTNUM,Main Table,Usd Column,FALSE)*exchange rate,""))

    Hope this helps
    A picture may be worth a thousand words, BUT, a sample Workbook is worth a thousand screenshots!
    -Add a File - click advanced (next to quick post), scroll to manage attachments, click, select add files, click select files, select file, click upload, when file shows up at bottom left, click done (bottom right), click submit
    -To mark thread Solved- go top of thread,click Thread Tools,click Mark as Solved
    If you received helpful response, please remember to hit the * of that post

  5. #5
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Looking for a way to do a VLookup in one array, if value not there go to a second arra

    you could try something like
    =iferror(VLOOKUP(A1,table_a,2,FALSE),VLOOKUP(A1,table_b,2,FALSE))
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  6. #6
    Registered User
    Join Date
    01-02-2013
    Location
    Foster City, CA
    MS-Off Ver
    Excel 2010
    Posts
    37

    Re: Looking for a way to do a VLookup in one array, if value not there go to a second arra

    Thanks. Also, I just uploaded a file as suggested.

  7. #7
    Forum Expert dredwolf's Avatar
    Join Date
    10-27-2012
    Location
    Clearwater,Canada
    MS-Off Ver
    Excel 2007
    Posts
    2,649

    Re: Looking for a way to do a VLookup in one array, if value not there go to a second arra

    Try This in C80:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Hope this helps

  8. #8
    Forum Expert dredwolf's Avatar
    Join Date
    10-27-2012
    Location
    Clearwater,Canada
    MS-Off Ver
    Excel 2007
    Posts
    2,649

    Re: Looking for a way to do a VLookup in one array, if value not there go to a second arra

    I also put this in B80:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    to get the description

  9. #9
    Registered User
    Join Date
    01-02-2013
    Location
    Foster City, CA
    MS-Off Ver
    Excel 2010
    Posts
    37

    Re: Looking for a way to do a VLookup in one array, if value not there go to a second arra

    Thank you. It works!

  10. #10
    Forum Expert dredwolf's Avatar
    Join Date
    10-27-2012
    Location
    Clearwater,Canada
    MS-Off Ver
    Excel 2007
    Posts
    2,649

    Re: Looking for a way to do a VLookup in one array, if value not there go to a second arra

    You are welcome

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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