+ Reply to Thread
Results 1 to 9 of 9

VLOOKUP doesnt work

  1. #1
    Registered User
    Join Date
    05-08-2016
    Location
    uae
    MS-Off Ver
    2013
    Posts
    4

    Unhappy VLOOKUP doesnt work

    Hiya,

    I downloaded a daily sales excel format from internet, on which I altered few things, like adding a new column (price) on inventory data sheet.The problem is in the sales data sheet, when I enter a product number (and press tab), the product name or description auto fills or appears, but this does not happen the same with price. when I enter the product code I want the price to appear or auto fill the cell same like product name or description. I tried several times with VLOOKUP and it does not work. I have attached the file, where if you check on sales data sheet, row no. 105 col H, I tried using VLOOKUP and it doesnt work. Please do help.

    Many Thanks
    Lazy.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,197

    Re: VLOOKUP doesnt work

    Try

    =VLOOKUP('Sales Data'!$F$105,Inventory!$B$9:$D$87,3,FALSE)


    Price is the 3rd item in the range: column B=1, C=2, D=3)

  3. #3
    Registered User
    Join Date
    05-08-2016
    Location
    uae
    MS-Off Ver
    2013
    Posts
    4

    Re: VLOOKUP doesnt work

    THANK YOU VERY MUCH INDEED. IT ABSOLUTELY WORKED. I was actually counting the columns from outside the selected area. once again thanks very much indeed.

  4. #4
    Registered User
    Join Date
    05-08-2016
    Location
    uae
    MS-Off Ver
    2013
    Posts
    4

    Re: VLOOKUP doesnt work

    There is one other thing which I would like to do. How do we make the price column in sales data sheet 'AED 0.00' if we do not enter any product details (I mean if we leave it black). right now when i put the formula (vlookup) on price column and leave the product column blank then it shows '#N/A'

  5. #5
    Valued Forum Contributor
    Join Date
    09-09-2009
    Location
    Liverpool, England
    MS-Off Ver
    W: 2021 H: 365
    Posts
    940

    Re: VLOOKUP doesnt work

    Hi lazy_tuna you can use the IFERROR formula as follows:

    =IFERROR(VLOOKUP('Sales Data'!$F$105,Inventory!$B$9:$D$87,3,FALSE),0)

  6. #6
    Valued Forum Contributor
    Join Date
    09-09-2009
    Location
    Liverpool, England
    MS-Off Ver
    W: 2021 H: 365
    Posts
    940

    Re: VLOOKUP doesnt work

    *Duplicate post

  7. #7
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,197

    Re: VLOOKUP doesnt work

    Try

    =IFERROR(VLOOKUP('Sales Data'!$F$105,Inventory!$B$9:$D$87,3,FALSE),0)

    I set the error condition to zero (0) to avoid other errors if the price is used in other calculations.

    The following will set it to blank BUT you may need to change other formulae

    =IFERROR(VLOOKUP('Sales Data'!$F$105,Inventory!$B$9:$D$87,3,FALSE)," ")

    BUT you will need to add a test in Column J to avoid a value error

    e.g.

    =IFERROR('Sales Data'!$H106-'Sales Data'!$I106,"")

  8. #8
    Registered User
    Join Date
    05-08-2016
    Location
    uae
    MS-Off Ver
    2013
    Posts
    4

    Re: VLOOKUP doesnt work

    spot on. thank you very much indeed. the problem is solved.

  9. #9
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,197

    Re: VLOOKUP doesnt work

    Could you please mark thread as solved ("Thread Tools" at top of first post).

+ 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. [SOLVED] WorksheetFunction.VLookup doesnt work if result is #N/A
    By HerryMarkowitz in forum Excel - New Users/Basics
    Replies: 9
    Last Post: 03-11-2015, 10:40 AM
  2. why doesnt this work
    By cybereyeball in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 08-02-2012, 10:10 AM
  3. Sorting doesnt work-sumproduct, vlookup,IF
    By koklok123 in forum Excel General
    Replies: 1
    Last Post: 05-06-2010, 10:11 AM
  4. Please help : Macro doesnt work on other PCs
    By Jason in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-26-2005, 05:55 AM
  5. sum totaling doesnt work
    By Bedros in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 03:05 AM
  6. [SOLVED] events doesnt work
    By benitAAvi in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-18-2005, 11:06 AM
  7. [SOLVED] TAB Key doesnt work.
    By Murat D. Hekimoðlu in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-25-2005, 07:06 AM

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