+ Reply to Thread
Results 1 to 3 of 3

Formula works but returns N/A

  1. #1
    Registered User
    Join Date
    02-09-2010
    Location
    knottingley england
    MS-Off Ver
    Office 365 Excel
    Posts
    53

    Formula works but returns N/A

    this formula works but returns N/A when l2 blank. I want it to return a blank cell when l2 is blank
    Please Login or Register  to view this content.
    Regards Troysie

  2. #2
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Formula works but returns N/A

    Try

    =IF(L2="","",HLOOKUP(L2,Sheet4!A2:A59,Sheet4!B2:B59,FALSE))

    or to actually trap all #N/A errors (including when the value in L2 is not found in sheet 4)
    =IFERROR(HLOOKUP(L2,Sheet4!A2:A59,Sheet4!B2:B59,FALSE),"")
    Last edited by Jonmo1; 04-10-2013 at 10:41 AM.

  3. #3
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    14,699

    Re: Formula works but returns N/A

    Quote Originally Posted by troysie View Post
    =HLOOKUP(L2,Sheet4!A2:A59,Sheet4!B2:B59,FALSE)
    That formula doesn't make much sense to me, usually the red part will be a number, not a range ......and if you only have one column as the "lookup array" with HLOOKUP then you are actualy just comparing L2 with a single cell, Sheet4!A2 - can you explain what that formula should do?
    Audere est facere

+ 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