+ Reply to Thread
Results 1 to 4 of 4

Lookup (vector) returns 0 when cell is empty

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    03-16-2012
    Location
    Halifax, UK
    MS-Off Ver
    MS Office 365
    Posts
    206

    Lookup (vector) returns 0 when cell is empty

    I have the formula below to lookup a supplier address from another sheet once the supplier name is entered into the B8.
    The formula works great but when there is an empty cell on the 'Supplier Details' sheet it return 0.
    What would I need to add to this formula to return a blank?
    Kieran

    =LOOKUP($B$8,'Supplier Details'!$A$4:$A$100,'Supplier Details'!$B$4:$B$100)

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,408

    Re: Lookup (vector) returns 0 when cell is empty

    Basically, something like this:

    =IF(your_formula="","",your_formula)

    Hope this helps.

    Pete

  3. #3
    Forum Contributor
    Join Date
    03-16-2012
    Location
    Halifax, UK
    MS-Off Ver
    MS Office 365
    Posts
    206

    Re: Lookup (vector) returns 0 when cell is empty

    Thanks Pete that worked.
    Kieran

  4. #4
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,788

    Re: Lookup (vector) returns 0 when cell is empty

    Try this...

    Formula: copy to clipboard
    =IFERROR(VLOOKUP($B$8,'supplier details'!$A$4:$B$100,2,FALSE),"")


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

+ 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