+ Reply to Thread
Results 1 to 5 of 5

VLOOKUP Problem

  1. #1
    Registered User
    Join Date
    06-30-2006
    Posts
    7

    VLOOKUP Problem

    I am trying to have one Excel file pull up a price from another Excel file. In cell B3 I type in my part number, B4 is going to be the price. I want B4 to look through column A in another workbook to find the part number (from B3) and then look in column B of the same row to find the price of the part number. To Get this to work, I used the following function:

    =VLOOKUP(B3,'O:\Eng_Sales\NQL LOG\NQL work sheet\[12-1-05 Pricing Sheet with Multipliers and Ultraline.xls]Sheet1'!$A$1:$B$415,2,FALSE)

    However, when cell B3 is empty, cell B4 shows "#N/A". If B3 is left empty, I want B4 to read 0. I am not sure what to do to fix this problem.

    Your help is greatly appreciated!!

  2. #2
    CLR
    Guest

    RE: VLOOKUP Problem

    Wrap your formula in an IF statement, like......

    =IF(isna(=VLOOKUP(B3,'O:\Eng_Sales\NQL LOG\NQL work sheet\[12-1-05 Pricing
    Sheet with Multipliers and
    Ultraline.xls]Sheet1'!$A$1:$B$415,2,FALSE)),"",VLOOKUP(B3,'O:\Eng_Sales\NQL
    LOG\NQL work sheet\[12-1-05 Pricing Sheet
    with Multipliers and Ultraline.xls]Sheet1'!$A$1:$B$415,2,FALSE)

    Vaya con Dios,
    Chuck, CABGx3


    "brown_toby" wrote:

    >
    > I am trying to have one Excel file pull up a price from another Excel
    > file. In cell B3 I type in my part number, B4 is going to be the price.
    > I want B4 to look through column A in another workbook to find the part
    > number (from B3) and then look in column B of the same row to find the
    > price of the part number. To Get this to work, I used the following
    > function:
    >
    > =VLOOKUP(B3,'O:\Eng_Sales\NQL LOG\NQL work sheet\[12-1-05 Pricing Sheet
    > with Multipliers and Ultraline.xls]Sheet1'!$A$1:$B$415,2,FALSE)
    >
    > However, when cell B3 is empty, cell B4 shows "#N/A". If B3 is left
    > empty, I want B4 to read 0. I am not sure what to do to fix this
    > problem.
    >
    > Your help is greatly appreciated!!
    >
    >
    > --
    > brown_toby
    > ------------------------------------------------------------------------
    > brown_toby's Profile: http://www.excelforum.com/member.php...o&userid=35942
    > View this thread: http://www.excelforum.com/showthread...hreadid=557358
    >
    >


  3. #3
    Registered User
    Join Date
    06-30-2006
    Posts
    7
    I put entered the following in the cell:

    =IF(isna(=VLOOKUP(B3,'O:\Eng_Sales\NQL LOG\NQL work sheet\[12-1-05 Pricing Sheet with Multipliers and Ultraline.xls]Sheet1'!$A$1:$B$415,2,FALSE)),"",VLOOKUP(B3,'O:\En g_Sales\NQL LOG\NQL work sheet\[12-1-05 Pricing Sheet with Multipliers and Ultraline.xls]Sheet1'!$A$1:$B$415,2,FALSE)


    And I received an error. What could the problem be?

  4. #4
    Registered User
    Join Date
    06-30-2006
    Posts
    7
    I put entered the following in the cell:

    =IF(isna(=VLOOKUP(B3,'O:\Eng_Sales\NQL LOG\NQL work sheet\[12-1-05 Pricing Sheet with Multipliers and Ultraline.xls]Sheet1'!$A$1:$B$415,2,FALSE)),"",VLOOKUP(B3,'O:\En g_Sales\NQL LOG\NQL work sheet\[12-1-05 Pricing Sheet with Multipliers and Ultraline.xls]Sheet1'!$A$1:$B$415,2,FALSE)


    And I received an error. What could the problem be?

  5. #5
    CLR
    Guest

    Re: VLOOKUP Problem

    Sorry, my bad..........remove the = sign out of the inside of the
    formula.........

    =IF(isna(VLOOKUP(B3,'O:\Eng_Sales\NQL LOG\NQL work sheet\[12-1-05
    Pricing Sheet with Multipliers and
    Ultraline.xls]Sheet1'!$A$1:$B$415,2,FALSE)),"",VLOOKUP(B3,'O:\En
    g_Sales\NQL LOG\NQL work sheet\[12-1-05 Pricing Sheet with Multipliers
    and Ultraline.xls]Sheet1'!$A$1:$B$415,2,FALSE)

    Vaya con Dios,
    Chuck, CABGx3


    "brown_toby" wrote:

    >
    > I put entered the following in the cell:
    >
    > =IF(isna(=VLOOKUP(B3,'O:\Eng_Sales\NQL LOG\NQL work sheet\[12-1-05
    > Pricing Sheet with Multipliers and
    > Ultraline.xls]Sheet1'!$A$1:$B$415,2,FALSE)),"",VLOOKUP(B3,'O:\En
    > g_Sales\NQL LOG\NQL work sheet\[12-1-05 Pricing Sheet with Multipliers
    > and Ultraline.xls]Sheet1'!$A$1:$B$415,2,FALSE)
    >
    >
    > And I received an error. What could the problem be?
    >
    >
    > --
    > brown_toby
    > ------------------------------------------------------------------------
    > brown_toby's Profile: http://www.excelforum.com/member.php...o&userid=35942
    > View this thread: http://www.excelforum.com/showthread...hreadid=557358
    >
    >


+ 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