+ Reply to Thread
Results 1 to 13 of 13

Nedd help with calculating a cell containing a formula that returns a blank value

  1. #1
    Registered User
    Join Date
    01-29-2011
    Location
    Upland, California
    MS-Off Ver
    Office 365
    Posts
    32

    Question Nedd help with calculating a cell containing a formula that returns a blank value

    I have two cells with the following values:
    Cell (V1) containing the formula “=IFERROR(SMALL($L17:$U17,1)," ")” that returns a blank date value.
    Cell (V2) containing the formula “=IFERROR(SMALL($L18:$U18,1)," ")” that returns the date of 2/1/12.
    In a third cell (W1) containing the formula "IF(V2>V1,"yes","no")"
    W2 should populate with “yes”, but is populating with “no”.
    If there a way to calculate two cells when one has a blank value but contains aformula?
    Last edited by ascottbag; 03-03-2012 at 10:32 AM.

  2. #2
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Nedd help with calculating a cell containing a formula that returns a blank value

    Remove the blank space from between your " ". It should be "". Does that help?
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Registered User
    Join Date
    01-29-2011
    Location
    Upland, California
    MS-Off Ver
    Office 365
    Posts
    32

    Re: Nedd help with calculating a cell containing a formula that returns a blank value

    Thank you. I tried removing the space but it didn't help.

  4. #4
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Nedd help with calculating a cell containing a formula that returns a blank value

    Okay, try

    =IF(AND(COUNT(V1:V2)=2,V2>V1),"yes","no")
    How's that?

  5. #5
    Registered User
    Join Date
    01-29-2011
    Location
    Upland, California
    MS-Off Ver
    Office 365
    Posts
    32

    Re: Nedd help with calculating a cell containing a formula that returns a blank value

    Thank you again.

    Sorry. That formula did not work either. It seems as though since the formula in cell "V1" is not returning a value, the formula to populate a yes/no in cell "W1" cannot correctly determine that the date in cell "V2" is greater than the value in cell "V1" and thus populate a yes value.

    This is so frustrating. Can this even be done?

  6. #6
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,926

    Re: Nedd help with calculating a cell containing a formula that returns a blank value

    have you tried adding or() to your formula to test for, eg, "yes" or ""? (or whichever way round you need to do your test)
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  7. #7
    Registered User
    Join Date
    02-29-2012
    Location
    Gloucester, England
    MS-Off Ver
    Excel, Word, Access 2007 and XP
    Posts
    58

    Re: Nedd help with calculating a cell containing a formula that returns a blank value

    It's because your comparing a numeric value against a text value.

  8. #8
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: Nedd help with calculating a cell containing a formula that returns a blank value

    Any text value (and both a space [" "] and a "null string" [""] are text values) is deemed to be greater than any number, try this version

    =IF(N(V2)>N(V1),"yes","no")
    Audere est facere

  9. #9
    Registered User
    Join Date
    02-29-2012
    Location
    Gloucester, England
    MS-Off Ver
    Excel, Word, Access 2007 and XP
    Posts
    58

    Re: Nedd help with calculating a cell containing a formula that returns a blank value

    Will this work for you?

    =IF(V1<>" ",IF(V2>V1,"Yes","No"),"Yes")

  10. #10
    Registered User
    Join Date
    02-29-2012
    Location
    Gloucester, England
    MS-Off Ver
    Excel, Word, Access 2007 and XP
    Posts
    58

    Re: Nedd help with calculating a cell containing a formula that returns a blank value

    Quote Originally Posted by daddylonglegs View Post
    Any text value (and both a space [" "] and a "null string" [""] are text values) is deemed to be greater than any number, try this version

    =IF(N(V2)>N(V1),"yes","no")
    Yes, that's a better solution.

  11. #11
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,926

    Re: Nedd help with calculating a cell containing a formula that returns a blank value

    =IF(or(V1<>" ",V2=V1),"Yes","No")

  12. #12
    Registered User
    Join Date
    01-29-2011
    Location
    Upland, California
    MS-Off Ver
    Office 365
    Posts
    32

    Re: Nedd help with calculating a cell containing a formula that returns a blank value

    Thank you eveyone fo your help!

    Daddylonglegs, your solution resolved my issue. Thank you

  13. #13
    Registered User
    Join Date
    01-29-2011
    Location
    Upland, California
    MS-Off Ver
    Office 365
    Posts
    32

    Re: Nedd help with calculating a cell containing a formula that returns a blank value

    Thank you! This was the perfect solution for my issue!

+ 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