+ Reply to Thread
Results 1 to 8 of 8

Vlookup with two tables?

  1. #1
    Registered User
    Join Date
    02-08-2012
    Location
    New York
    MS-Off Ver
    Excel 2010
    Posts
    9

    Vlookup with two tables?

    Hello so i have a formula question, i need to only use Vlookup, IF, and other very basic functions to do it. So i need a formula in B11 that will tell me the price of the Item, times the number of those items listed, AND if the item you type in an item that is not there (like say you try to look up Hat, but obviously there arent any hats in the table...) then the price reads OUT OF STOCK. Take a look and see if you can help me please!!
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    02-08-2012
    Location
    New York
    MS-Off Ver
    Excel 2010
    Posts
    9

    Re: Vlookup with two tables?

    and i can not move that data around it has to stay where it is

  3. #3
    Forum Expert
    Join Date
    12-03-2009
    Location
    Florence, Italy
    MS-Off Ver
    Excel 2019
    Posts
    1,796

    Re: Vlookup with two tables?

    Hi,

    maybe

    Please Login or Register  to view this content.
    There are for sure better solutions.

    Regards
    Attached Files Attached Files
    -----------------------------------------------------

    At Excelforum, you can say "Thank you!" by clicking the star icon ("Add Reputation") below the post.

    Please, mark your thread [SOLVED] if you received your answer.

  4. #4
    Registered User
    Join Date
    02-08-2012
    Location
    New York
    MS-Off Ver
    Excel 2010
    Posts
    9

    Re: Vlookup with two tables?

    this returned the correct price values!!! although it did not multiply by the number of items sold, and i cant get that working??

  5. #5
    Valued Forum Contributor mahju's Avatar
    Join Date
    11-27-2010
    Location
    Pakistan, Faisalabad
    MS-Off Ver
    Excel 2010 plus
    Posts
    730

    Re: Vlookup with two tables?

    Hi

    May be this one

    Please Login or Register  to view this content.
    Regards
    Attached Files Attached Files
    Mark the thread as solved if you are satisfied with the answer.


    In your first post under the thread tools.

    Mahju

  6. #6
    Forum Expert
    Join Date
    12-03-2009
    Location
    Florence, Italy
    MS-Off Ver
    Excel 2019
    Posts
    1,796

    Re: Vlookup with two tables?

    Hi,

    if the number is in B10:

    Please Login or Register  to view this content.
    Regards
    Attached Files Attached Files
    Last edited by canapone; 02-12-2012 at 12:29 PM. Reason: Edit: B10 inside the IF formula

  7. #7
    Registered User
    Join Date
    02-08-2012
    Location
    New York
    MS-Off Ver
    Excel 2010
    Posts
    9

    Re: Vlookup with two tables?

    thank you!! they both work!

  8. #8
    Forum Guru
    Join Date
    05-24-2011
    Location
    India
    MS-Off Ver
    365
    Posts
    2,243

    Re: Vlookup with two tables?

    Since you are on XL 2010,

    =IFERROR(VLOOKUP(B9,A4:B6,2,0)*B10,IFERROR(VLOOKUP(B9,D4:E6,2,0)*B10,"Out of Stock"))

    Or with simple SUMIF,

    =SUMIF(A4:E6,B9,B4:E6)*B10

    Format the cell custom as,

    General;-General;"Out of Stock"
    Regards,
    Haseeb Avarakkan

    __________________________________
    "Feedback is the breakfast of champions"

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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