+ Reply to Thread
Results 1 to 3 of 3

How to return value blank cell, if criteria do not match

  1. #1
    Forum Contributor
    Join Date
    04-23-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    113

    Post How to return value blank cell, if criteria do not match

    Hi all,

    =OFFSET('Stock Details'!$C$1,MATCH("PABW0608040",'Stock Details'!$C$2:$C$114,0),5)

    I am using the formula above which works just fine, however it returns a #N/A when the criteria do not match

    I would like the formula to return a blank cell.

    plz help

    Dev.
    Attached Files Attached Files

  2. #2
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: How to return value blank cell, if criteria do not match

    hi Dev. OFFSET is slightly volatile & that means it might slow down your workbook. you can try INDEX instead:
    =INDEX('Stock Details'!H:H,MATCH("PABW0408040",'Stock Details'!C:C,0))

    i am not too sure about your rationale here with the lookup_value though. do you need to manually type in each cell? why can't you use C5? if it's because of additional spaces in column C, use TRIM:
    =INDEX('Stock Details'!H:H,MATCH(TRIM(C5),'Stock Details'!C:C,0))

    to hide the error, surround it with IFERROR. same thing if you still wish to use OFFSET:
    =IFERROR(INDEX('Stock Details'!H:H,MATCH(TRIM(C5),'Stock Details'!C:C,0)),"")

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  3. #3
    Forum Contributor
    Join Date
    04-23-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    113

    Re: How to return value blank cell, if criteria do not match

    Dear Forum Guru,

    You are just amazing, you are true forum guru, All the solution you have given are working exactly as I want.

    I am very proud to be a part of excel help forum and having a Guru like you...

    Hat's of to you..

    Dev.

+ 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. Replies: 5
    Last Post: 07-02-2017, 10:25 AM
  2. Index/ Match Formula, How to return blank cell as a blank not 0
    By MDResearcher in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 02-24-2016, 08:40 PM
  3. How to return a blank cell based on if then criteria
    By azucar360 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 08-01-2013, 04:05 PM
  4. Replies: 3
    Last Post: 01-08-2013, 09:48 PM
  5. Index/Match to return a blank cell
    By Nick_in_Dubai in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 01-26-2012, 06:36 AM

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