+ Reply to Thread
Results 1 to 8 of 8

Replace N/A result with "New This Period" in a Vlookup formula

  1. #1
    Forum Contributor
    Join Date
    02-09-2004
    Location
    Cardiff - Wales - UK
    MS-Off Ver
    2013
    Posts
    475

    Question Replace N/A result with "New This Period" in a Vlookup formula

    Hi,

    I am using the vlookup formula =VLOOKUP(C2,'Last Months Data'!C:C,1,0) which is retuning results as requested, however, is it possible to amend the formula so that any results returned as N/A would be retuned as "New This Period".

    Any assistance in this matter would be gratefully appreciated

    Many thanks in advance


    Rob

    N.B. Excel version 2007
    Rob

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,916

    Re: Replace N/A result with "New This Period" in a Vlookup formula

    =IF(ISNA(VLOOKUP(C2,'Last Months Data'!C:C,1,0)),"New This Period",VLOOKUP(C2,'Last Months Data'!C:C,1,0)) should work.

  3. #3
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Replace N/A result with "New This Period" in a Vlookup formula

    Excel version 2007
    =iferror(VLOOKUP(C2,'Last Months Data'!C:C,1,0),"new this period")
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,916

    Re: Replace N/A result with "New This Period" in a Vlookup formula

    Quote Originally Posted by martindwilson View Post
    Excel version 2007
    =iferror(VLOOKUP(C2,'Last Months Data'!C:C,1,0),"new this period")
    Won't this return the text phrase for any error, rather than just #N/A?

  5. #5
    Forum Contributor
    Join Date
    02-09-2004
    Location
    Cardiff - Wales - UK
    MS-Off Ver
    2013
    Posts
    475

    Re: Replace N/A result with "New This Period" in a Vlookup formula

    AliGW & martindwilson

    EXCELLENT !! - Many thanks for your (VERY) prompt replies they both worked a treat

    Many thanks

    Regards

    Rob

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,916

    Re: Replace N/A result with "New This Period" in a Vlookup formula

    You're welcome, Rob!

  7. #7
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Replace N/A result with "New This Period" in a Vlookup formula

    =iferror(VLOOKUP(C2,'Last Months Data'!C:C,1,0),"new this period") what other error are you likely to get with vlookup? youll only get div/o or num errors if the result of the lookup is one of those

  8. #8
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,916

    Re: Replace N/A result with "New This Period" in a Vlookup formula

    Quote Originally Posted by martindwilson View Post
    =iferror(VLOOKUP(C2,'Last Months Data'!C:C,1,0),"new this period") what other error are you likely to get with vlookup? youll only get div/o on num errors if the result of the lookup is one of those
    I was asking you!

+ 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. result of vlookup = #N/A, how to replace it by "0"
    By ChantalR in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 07-23-2012, 11:32 AM
  2. Replies: 5
    Last Post: 10-12-2010, 06:46 AM
  3. Replies: 2
    Last Post: 07-17-2006, 06:55 PM
  4. [SOLVED] How do I replace a "#N/A" formula result with a blank in excel?
    By yrat in forum Excel General
    Replies: 6
    Last Post: 04-02-2006, 11:40 PM
  5. [SOLVED] Replace "insert function" with "edit formula" button in fourmula b
    By 13brian in forum Excel General
    Replies: 0
    Last Post: 08-24-2005, 04:05 PM

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