+ Reply to Thread
Results 1 to 3 of 3

IF(ISNA on vlookup.

  1. #1
    Registered User
    Join Date
    03-14-2006
    Posts
    46

    IF(ISNA on vlookup.

    I have the following formula, which works absolutely fine. I now need it to come up with the words "NO PRICE" instead of #N/A where the STOCK_CODE doesn't exist in Price!$A$3:$A$3000. I have tried =IF(ISNA, but cannot get the syntax right.


    =INDEX(Price!$B$2:$H$2,MATCH(MIN(INDEX(Price!$B$3:$H$3000,MATCH(A8,Price!$A$3:$A$3000,0),0)),INDEX(Price!$B$3:$H$3000,MATCH(A8,Price!$A$3:$A$3000,0),0),0))

    Ken

  2. #2
    Registered User
    Join Date
    06-08-2010
    Location
    Helsingborg, SWEDEN
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    18

    Re: IF(ISNA on vlookup.

    Hi!

    I use to cut the whole formula and the use a IF formula and then write like:

    =IF(ISERROR(INDEX(Price!$B$2:$H$2,MATCH(MIN(INDEX(Price!$B$3:$H$3000,MATCH(A8,Price!$A$3:$A$3000,0),0)),INDEX(P rice!$B$3:$H$3000,MATCH(A8,Price!$A$3:$A$3000,0),0),0))),"No Price",(INDEX(Price!$B$2:$H$2,MATCH(MIN(INDEX(Price!$B$3:$H$3000,MATCH(A8,Price!$A$3:$A$3000,0),0)),INDEX(P rice!$B$3:$H$3000,MATCH(A8,Price!$A$3:$A$3000,0),0),0))))

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

    Re: IF(ISNA on vlookup.

    You only really need ISNA on the MATCH, i.e.

    =IF(ISNA(MATCH(A8,Price!$A$3:$A$3000,0)),"No Price",INDEX(Price!$B$2:$H$2, MATCH(MIN(INDEX(Price!$B$3:$H$3000, MATCH(A8,Price!$A$3:$A$3000,0),0)),INDEX(Price!$B$3:$H$3000,MATCH(A8,Price!$A$3:$A$3000,0),0),0)))
    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