+ Reply to Thread
Results 1 to 4 of 4

Equal 0 when 0 and blank when blank

  1. #1
    Registered User
    Join Date
    01-19-2017
    Location
    West Midlands
    MS-Off Ver
    Excal 2010
    Posts
    26

    Equal 0 when 0 and blank when blank

    Hello

    I am using the following formual which is working great =(HLOOKUP($F$7&" "&$F$12,'Specification Data'!$A$4:$G$41,MATCH(A34,'Specification Data'!$A$4:$A$41,0),FALSE)) However sometimes the answer is blank and the formual is returning 0, which dealing with in its self ifs fine, however sometimes the anwer is 0. What i want is if the answer is blank to return a blank cell, but if the anser is 0 to return 0

    Thanks for any help

    Andy

  2. #2
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Equal 0 when 0 and blank when blank

    Try this...

    =IF(HLOOKUP($F$7&" "&$F$12,'Specification Data'!$A$4:$G$41,
    MATCH(A34,'Specification Data'!$A$4:$A$41,0),0)="","",
    HLOOKUP($F$7&" "&$F$12,'Specification Data'!$A$4:$G$41,
    MATCH(A34,'Specification Data'!$A$4:$A$41,0),0))
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  3. #3
    Registered User
    Join Date
    01-19-2017
    Location
    West Midlands
    MS-Off Ver
    Excal 2010
    Posts
    26

    Re: Equal 0 when 0 and blank when blank

    Spot on, Thanks, that has worked. I have tried so much with IF and ="" etc but just couldnt get it to work, i can see where i was going wrong now, as i was putting it at the end not the middle.

    Thanks again

  4. #4
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Equal 0 when 0 and blank when blank

    You're welcome. Thanks for the feedback!

+ 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. How do I make blank cells not be equal?
    By afe5026 in forum Excel General
    Replies: 3
    Last Post: 10-03-2014, 03:37 PM
  2. [SOLVED] Concatenate If Blank - remove blank line if first cell is blank
    By ker9 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 05-27-2014, 02:14 PM
  3. Excel 2007 : String not equal to blank
    By priyajunior8 in forum Excel General
    Replies: 1
    Last Post: 10-09-2010, 08:18 AM
  4. when is equal not equal - cell reference results to blank cell
    By riwiseuse in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-10-2009, 09:44 AM
  5. I don't want blank tp equal zero
    By lovemark in forum Excel General
    Replies: 3
    Last Post: 05-19-2006, 03:25 PM
  6. [SOLVED] If value is equal, if not a blank row is inserted.
    By Emajination in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-27-2006, 04:30 PM
  7. Blank (empty) cell always equal to 0??
    By ulfah in forum Excel General
    Replies: 3
    Last Post: 02-01-2006, 01:00 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