+ Reply to Thread
Results 1 to 6 of 6

Need formula help - IF AND, Then Vlookup

  1. #1
    Registered User
    Join Date
    12-07-2011
    Location
    South Florida
    MS-Off Ver
    Excel 2010
    Posts
    16

    Need formula help - IF AND, Then Vlookup

    Have a table like this:

    WHS Item Desc OnHand InTransit POopen SOopenB/O Allocated Avail UnAvail
    FBDH GCGD18S21S2XE 1.5T 1 0 0 0 1 0 0
    FBDH GCGD42S21S2 3.5T 0 0 0 0 0 0 1
    FBDH GCGD42S21S2E 3.5T 0 0 6 0 0 0 0
    FBDH RAC13J244S21 2.0T 2 0 0 0 2 0 0
    FBDH RAC13J364S21 3.0T 1 0 0 0 0 1 0
    FBW1 YCJD24S41S1 2.0T 1 0 0 0 0 1 0
    FBW1 YCJD48S41S1E 4.0T 1 0 0 0 0 1 0
    FBW1 YCJD60S41S2 5.0T 0 0 0 0 0 0 1


    Trying to autofill a table like this:
    FBDH FBW1 FBW2
    GCGD18
    GCGD24
    GCGD30

    So if value in 1st table equals "FBDH" and the model "GCGD18", then return value 9th to the right.

    I tried an IF, AND with VLOOKUP, but I can't get it to work. HELP!!!

  2. #2
    Forum Contributor
    Join Date
    06-28-2016
    Location
    Pennsylvania, USA
    MS-Off Ver
    2013
    Posts
    308

    Re: Need formula help - IF AND, Then Vlookup

    I'm not exactly sure what you are asking, please try attaching a workbook with more entries so we can see what you are asking.

    Under advanced (after editing post), scroll down to manage attachments and upload a workbook with sample data.

    However, as a guess as to something that could possibly help, try highlighting your C column and inserting a new column. Then, highlight your B column and go to data > text to columns.
    Select fixed width > next > click after the character you are calling the "model" then hit finish. This will divide your item number into what you want (I think) and will allow you to lookup easier?

    If I am misunderstanding, please upload a larger sample size, and possibly a desired output in a different tab.

  3. #3
    Registered User
    Join Date
    12-07-2011
    Location
    South Florida
    MS-Off Ver
    Excel 2010
    Posts
    16

    Re: Need formula help - IF AND, Then Vlookup

    See attached to see what I'm looking for. I really appreciate the help!
    Attached Files Attached Files

  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: Need formula help - IF AND, Then Vlookup

    Try this, copied down and across...
    =INDEX(Inventory!$I$2:$I$16,MATCH(Output!$A2&Output!B$1,INDEX(Inventory!$B$2:$B$16&Inventory!$A$2:$A$16,0),0))
    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
    12-07-2011
    Location
    South Florida
    MS-Off Ver
    Excel 2010
    Posts
    16

    Re: Need formula help - IF AND, Then Vlookup

    It worked! You're the man, I love you! LOL.

  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: Need formula help - IF AND, Then Vlookup

    Awesome, happy to help and thanks for the feedback

+ 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. Multiple Vlookup Normal Formula (not array formula) or VBA Function Required
    By BoopathiK in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-17-2015, 03:06 AM
  2. vlookup, index/match formula factoring in time(days) and IF formula
    By rishijain11 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-08-2014, 06:37 PM
  3. [SOLVED] Vlookup with column name instead of col_index_name(3rd Section of Vlookup formula)
    By akulka58 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 01-21-2014, 10:42 AM
  4. [SOLVED] VBA code for change vlookup formula to vlookup formula with ISNA
    By erprasannaa in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-12-2013, 03:33 AM
  5. Vlookup referencing a vlookup formula
    By laurenann in forum Excel General
    Replies: 1
    Last Post: 01-24-2011, 05:52 PM
  6. Replies: 2
    Last Post: 10-08-2009, 09:51 PM
  7. vlookup-reate a vlookup formula?
    By Pam C in forum Excel General
    Replies: 1
    Last Post: 03-16-2006, 12:15 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