+ Reply to Thread
Results 1 to 7 of 7

short formula if answer should be 0 or blank

  1. #1
    Forum Contributor
    Join Date
    10-26-2012
    Location
    malaysia
    MS-Off Ver
    Excel 2010
    Posts
    138

    short formula if answer should be 0 or blank

    Please modify the formula below so that the result is blank if the answer is 0 or null.

    =iferror(index(sheet1!w:w;match(materlist!a1;index(sheet1!f:f;0);0));"")

    I get a answer of - when there is no data in the cell..

    Thank you.

  2. #2
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: short formula if answer should be 0 or blank

    Hi jewellove,

    Try =iferror(if(index(sheet1!w:w;match(materlist!a1;index(sheet1!f:f;0);0))=0;"",;index(sheet1!w:w;match(materlist!a1;index(sheet1!f:f;0);0));"")

    have'nt tested this on Excel but should be working at your end

    Regards,
    DILIPandey
    <click on below * if this helps>
    DILIPandey, Excel rMVP
    +919810929744 (India), +971528225509 (Dubai), [email protected]

  3. #3
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: short formula if answer should be 0 or blank

    Try this..

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  4. #4
    Forum Contributor
    Join Date
    10-26-2012
    Location
    malaysia
    MS-Off Ver
    Excel 2010
    Posts
    138

    Re: short formula if answer should be 0 or blank

    Hi, i tried incorporating your modification to my formula below:

    =IFERROR(if(INDEX(Profile!W:W;MATCH(MASTERLIST!$G3;INDEX(Profile!$F:$F;0);0));"")=0;"";INDEX(Profile!W:W;MATCH(MASTERLIST!$G3;INDEX(Profile!$F:$F;0);0));"")

    Excel can not process because too many arguments... Kindly correct. Thanks

  5. #5
    Forum Contributor
    Join Date
    10-26-2012
    Location
    malaysia
    MS-Off Ver
    Excel 2010
    Posts
    138

    Re: short formula if answer should be 0 or blank

    I tried sixthsense's modification.. but excel can't process it either... Pls see print screen.

    (Pivot return to blanks.jpg

  6. #6
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: short formula if answer should be 0 or blank

    But my suggestion don't have Index function inside the match function

  7. #7
    Forum Expert dredwolf's Avatar
    Join Date
    10-27-2012
    Location
    Clearwater,Canada
    MS-Off Ver
    Excel 2007
    Posts
    2,649

    Re: short formula if answer should be 0 or blank

    Also
    dilipandey's:
    =iferror(if(index(sheet1!w:w;match(materlist!a1;index(sheet1!f:f;0);0))=0;"",;index(sheet1!w:w;match(materlist!a1;index(sheet1!f:f;0);0));"")
    is not the same as:
    =IFERROR(if(INDEX(Profile!W:W;MATCH(MASTERLIST!$G3;INDEX(Profile!$F:$F;0);0));"")=0;"";INDEX(Profile!W:W;MATCH(MASTERLIST!$G3;INDEX(Profile!$F:$F;0);0));"")

    not only are the references (slightly, which may be intentional) different, BUT, if you check the red portions of each, you have CHANGED the formula..( the blue highlighted comma looks like an edit error from changing to different region separators?)

    Maybe this will give you a start ?

    EDIT_
    Also, neither solution said put the $ in front of the F's in 'F:F' parts, it's a whole column reference, making the $ redundant, now if you limited the range to F$1:F$100000, then it would be needed (AS shown)
    Last edited by dredwolf; 03-13-2013 at 04:15 AM.
    A picture may be worth a thousand words, BUT, a sample Workbook is worth a thousand screenshots!
    -Add a File - click advanced (next to quick post), scroll to manage attachments, click, select add files, click select files, select file, click upload, when file shows up at bottom left, click done (bottom right), click submit
    -To mark thread Solved- go top of thread,click Thread Tools,click Mark as Solved
    If you received helpful response, please remember to hit the * of that post

+ 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