+ Reply to Thread
Results 1 to 3 of 3

function of & in VLOOKUP formula?

Hybrid View

  1. #1
    Registered User
    Join Date
    02-17-2011
    Location
    Canada
    MS-Off Ver
    Excel 2007
    Posts
    15

    function of & in VLOOKUP formula?

    I am using the following statement to avoid errors if there is a blank cell in a vlookup
    =IFERROR(VLOOKUP($A19,Summary!$1:$1048576,15,FALSE)&"","").
    This eliminates the N/A and 0 Jan 00 errors I was having before, which weren't consistantly trapped by a IFERROR(VLOOKUP...) statement, but the formula is returning a number rather than a date. Any idea how to fix it? I have tried reformatting the cell receiving the information. What is the function of the & in the formula?
    Last edited by wgog; 03-02-2011 at 08:34 PM. Reason: question answered

  2. #2
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: function of & in VLOOKUP formula?

    The problem here is that by adding &"" you are converting the returned value to text, that's not good for a date because you just get the date serial number as a text value, best to revert to this

    =IFERROR(VLOOKUP($A19,Summary!$1:$1048576,15,FALSE),0)

    Now format result cell with this custom format

    d mmm yy;;

    Note the two semi-colons at the end, that will prevent you getting 0 Jan 00 (although the underlying cell value will still be zero when it looks blank)
    Audere est facere

  3. #3
    Registered User
    Join Date
    02-17-2011
    Location
    Canada
    MS-Off Ver
    Excel 2007
    Posts
    15

    Re: function of & in VLOOKUP formula?

    Perfect! Thanks so much.

+ 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