+ Reply to Thread
Results 1 to 5 of 5

IF formula to return no value if a cell is blank (but contains a formula)

  1. #1
    Forum Contributor
    Join Date
    11-13-2015
    Location
    London
    MS-Off Ver
    Office 365
    Posts
    831

    IF formula to return no value if a cell is blank (but contains a formula)

    Hi alL

    Please see my sheet. In column N I have a formula which will be dragged down. I have an IF Formula in column O which should return 1 if the opposite cell in column N is not blank (has numbers). If the cell is blank, I want nothing displayed in cell O. However, I have a formula in column N to be dragged down so need the IF formula to ignore this and return nothing as the cell is blank. How do I do this?

    thanks!
    Attached Files Attached Files
    Thanks,

    R.



  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,047

    Re: IF formula to return no value if a cell is blank (but contains a formula)

    Where to the values in column J come form?

    maybe this...


    =LET(j,J2:J5000,Suj,SORT(UNIQUE(FILTER(j,j<>""))),a,A2:A5000,c,C2:C5000,r,INDEX(a,MATCH(Suj,c,0)),CHOOSE({1,2,3},r,1,Suj))
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  3. #3
    Valued Forum Contributor
    Join Date
    09-09-2009
    Location
    Liverpool, England
    MS-Off Ver
    W: 2021 H: 365
    Posts
    940

    Re: IF formula to return no value if a cell is blank (but contains a formula)

    Hi rayted,

    It's because your formula in column N inputs a space rather than returning blank if it returns an error. Change it to "", rather than " ".

    =IFNA(INDEX($A$2:$A$50000,MATCH(P2,$C$2:$C$50000,FALSE))," ")

    Regards,

    Snook

  4. #4
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,199

    Re: IF formula to return no value if a cell is blank (but contains a formula)

    Try

    =IF(N2=" ","",1)

    N is set to " " by its formula
    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

  5. #5
    Forum Contributor
    Join Date
    11-13-2015
    Location
    London
    MS-Off Ver
    Office 365
    Posts
    831

    Re: IF formula to return no value if a cell is blank (but contains a formula)

    perfect thank you all.

+ 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. 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
  2. [SOLVED] Formula to return Blank cell if referenced cell has no entries, if not use formula
    By stpeter in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-17-2016, 01:41 PM
  3. Replies: 10
    Last Post: 09-12-2015, 02:04 PM
  4. [SOLVED] When my formula encounters a blank cell it returns a 0, I need it to return a blank
    By stretch99 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-27-2014, 07:52 PM
  5. [SOLVED] Cell referenced in formula has no information displayed (shows blank), return blank cell
    By nunayobinezz in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-07-2013, 04:51 PM
  6. If formula to return blank if reference cell blank
    By dhooper in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-10-2013, 08:56 PM
  7. [SOLVED] Need formula to return blank instead of #N/A when source cell is blank, using VLOOKUP
    By TMB1234 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-03-2013, 07:16 PM

Tags for this Thread

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