+ Reply to Thread
Results 1 to 2 of 2

Is there an 'IFONLY' formula

  1. #1
    Registered User
    Join Date
    12-02-2019
    Location
    Sydney, Australia
    MS-Off Ver
    2016 i think
    Posts
    11

    Is there an 'IFONLY' formula

    Not totally sure, but is there an 'IFONLY' formula. Formula below (not mine, so don't really understand it anyway). However 'sheet1!d10' has text, some having a number as well. I basically want to to read that if its only text in the cell to read blank. If its only '0 text' to read blank. But if its reading '60 text' it reads only the number, which it is already doing.


    =IF(ISBLANK(Sheet1!D10),"",SUMPRODUCT(MID(0&Sheet1!D10,LARGE(INDEX(ISNUMBER(--MID(Sheet1!D10,ROW(INDIRECT("1:"&LEN(Sheet1!D10))),1))*ROW(INDIRECT("1:"&LEN(Sheet1!D10))),0),ROW(INDIRECT("1:"&LEN(Sheet1!D10))))+1,1)*10^ROW(INDIRECT("1:"&LEN(Sheet1!D10)))/10))

    Ive tried 'isnumber' 'search', but reads that if text or number is in cell, it reads blank.

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Is there an 'IFONLY' formula

    There is no built-in function that is a simple way to do what you want. What you are asking is basically parsing the contents of a cell, which Excel can do but it isn't very good at it.

    I tried your formula and I don't know how it works either but it seems to return what you want, except it returns a 0 instead of a blank. Try adding

    &""

    at the end of the formula.

    The other way to do this is to write a VBA function to do exactly what you want, if you want to go that direction.
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

+ 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: 3
    Last Post: 01-10-2019, 09:34 AM
  2. Replies: 5
    Last Post: 02-16-2018, 06:50 AM
  3. Replies: 8
    Last Post: 09-22-2017, 05:41 AM
  4. Excel formula bar to display the result of the formula , not the formula?
    By max_max in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-18-2016, 07:15 PM
  5. Replies: 11
    Last Post: 06-06-2014, 03:34 PM
  6. how to hide formula in formula box, view lookup result in formula box?
    By vengatvj in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-14-2013, 04:06 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