+ Reply to Thread
Results 1 to 5 of 5

An equals formula that doesn't return a blank cell

  1. #1
    Registered User
    Join Date
    08-26-2009
    Location
    London, England
    MS-Off Ver
    Excel 2003
    Posts
    27

    An equals formula that doesn't return a blank cell

    Hi there,

    I have given the cell AL5 the following basic formula...
    =AF1

    However, when there is no item in AF1 it returns the value "£0", or if I format AL5 to 'general' then it returns "0".

    How do I get it to return a blank cell when AF1 is blank?

    Any help appreciated.

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: An equals formula that doesn't return a blank cell

    if(af1="","",af1)
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  3. #3
    Forum Expert mikerickson's Avatar
    Join Date
    03-30-2007
    Location
    Davis CA
    MS-Off Ver
    Excel 2011
    Posts
    6,229

    Re: An equals formula that doesn't return a blank cell

    You could use
    =IF(AF1="","",AF1)

    or
    =AF1&""
    _
    ...How to Cross-post politely...
    ..Wrap code by selecting the code and clicking the # or read this. Thank you.

  4. #4
    Registered User
    Join Date
    08-26-2009
    Location
    London, England
    MS-Off Ver
    Excel 2003
    Posts
    27

    Re: An equals formula that doesn't return a blank cell

    Thanks for the help, I used

    =AF1&""

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

    Re: An equals formula that doesn't return a blank cell

    You just need to be a little careful using that formula......

    If AF1 contains a number then that formula returns the result as text....which could cause you problems if you include it in a SUM function (text is ignored by SUM) or similar.....

+ 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