+ Reply to Thread
Results 1 to 6 of 6

Function

  1. #1
    Registered User
    Join Date
    10-21-2006
    Location
    Gillingham, Kent, England
    Posts
    15

    Function

    Hi,
    I have the following formula and would like to add the ISERROR function.
    Could someone please post a reply with the amended formula?
    tia

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,523
    Lets see the formula, oh never mind , here's one example

    =IF(ISERROR(VLOOKUP(C9,A2:B26,2,FALSE)),"No Such Item",VLOOKUP(C9,A2:B26,2,FALSE))


    so what it is really saying is if the formula shows an error then show "No such Item"
    else do the lookup

  3. #3
    Registered User
    Join Date
    10-21-2006
    Location
    Gillingham, Kent, England
    Posts
    15
    Wow I've made a few blunders in my time, this one takes the biscuit.
    Here's the formula:
    =VLOOKUP(E3,$B$3:$D$11,MATCH($F$1,$B:$D$11,0),FALSE)

  4. #4
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,523
    what does this formula say when you use it??

    here's an example with vlookup and isserror
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    10-21-2006
    Location
    Gillingham, Kent, England
    Posts
    15
    The formula is one I have found in the Microsoft Office Assistance and pretty much does what I want. It states that using ISERROR will deal with missing data and will give a blank cell if required rather than an error value, as there will be a number of spaces in my lists I figured this would be a good idea, I just can't work out where to put the additional function.



    Practice1.zip

  6. #6
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,523
    This is all you need
    =VLOOKUP(E3,$B$3:$C$11,2,0)

    SO this is the formula with the iserror
    =IF(ISERROR(VLOOKUP(E3,$B$3:$C$11,2,0)),"",(VLOOKUP(E3,$B$3:$C$11,2,0)))

+ 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