+ Reply to Thread
Results 1 to 4 of 4

Another issue within the same formula

  1. #1
    Registered User
    Join Date
    09-13-2017
    Location
    Florida
    MS-Off Ver
    2013
    Posts
    50

    Another issue within the same formula

    I had asked a bit earlier how to get the following formula to work:

    =IF(F9=" ",TODAY()-C9,F9-C9)

    And that was the answer and it worked! (I was trying to use IF and AND when I didn't need it.) But now I have another issue within the same formula. F9-C9 works out perfectly (gives the amount of days between the two dates but TODAY()-C9 is giving me some crazy negative large numbers rather than the days between the two dates and I can't figure out why. As if it doesn't recognize that C9 and F9 are both dates?

    Any insight? I apologize for asking two questions in the same day. I promise I am not normally so needy. :-)

  2. #2
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Another issue within the same formula

    There is a big difference between =IF(F9=" " and =F9=""
    =IF(F9=" " returns FALSE and =IF(F9="" returns TRUE
    I assume you would want this
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  3. #3
    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,300

    Re: Another issue within the same formula

    If C9 is greater than TODAY() you will get a "negative" date.

  4. #4
    Registered User
    Join Date
    09-13-2017
    Location
    Florida
    MS-Off Ver
    2013
    Posts
    50

    Re: Another issue within the same formula

    [QUOTE=AlKey;4741659]There is a big difference between =IF(F9=" " and =F9=""
    =IF(F9=" " returns FALSE and =IF(F9="" returns TRUE
    I assume you would want this
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Thank you so much! :-)

+ 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. [SOLVED] Issue with formula within VBA
    By McQLon in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-25-2017, 07:15 AM
  2. [SOLVED] SUM IF Formula issue
    By Obeitia in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-08-2016, 01:12 AM
  3. [SOLVED] SUM IF Formula issue
    By Obeitia in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 10-07-2016, 01:01 PM
  4. [SOLVED] Index Match Formula Issue - Lookup Value is a Formula
    By dodgemain in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-06-2016, 11:48 AM
  5. Lookup Formula Issue, Search issue
    By kperitz in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 04-07-2014, 01:50 PM
  6. Old Formula Issue
    By buffalochaser in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-18-2013, 01:33 PM
  7. #DIV/0! issue - cant get rid of it within another formula
    By skymaster in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-12-2007, 09:36 AM

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