+ Reply to Thread
Results 1 to 3 of 3

If Statement with dates. probable an easy fix.

  1. #1
    Registered User
    Join Date
    04-18-2019
    Location
    Shreveport, LA
    MS-Off Ver
    2013
    Posts
    2

    If Statement with dates. probable an easy fix.

    Good Morning all,

    I have been out of the excel scene for awhile and just now getting back into it. I have the below equation that I built to help me with tracking different inspection amounts for when they come due. However, I had a weird result come out of it.

    My equation is: =IF(C22="Annual", SUM(B22,365),IF(C22="30 Day",SUM(B22,30),IF(C22="90 Day", SUM(C22,90),IF(C22="180 Day",SUM(C22,180),""))) )

    For annual it kicks out a date for the next year. However, when I did a date of 1-16-2019 in cell C22, it gave me a result of 3-30-1900. just curious A: what I am doing wrong and B: why its doing what its doing.(to learn more)

    Thanks in advance,

    DMaxwell
    Last edited by dmaxwell422; 04-18-2019 at 12:21 PM.

  2. #2
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,499

    Re: If Statement with dates. probable an easy fix.

    You've got your B22 and C22 mixed up in your sums. SUM(B22,30) and SUM(C22,90)
    change those.
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

  3. #3
    Registered User
    Join Date
    04-18-2019
    Location
    Shreveport, LA
    MS-Off Ver
    2013
    Posts
    2

    Re: If Statement with dates. probable an easy fix.

    ugh /bonkself. Thanks!

+ 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] Easy... if and statement...
    By Thanks4helping in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 11-24-2015, 07:33 AM
  2. Probable Simple Fix, Issue with Actual and Projection Overlap in Chart
    By thesteve in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 11-20-2013, 06:17 AM
  3. Easy way:If Statement
    By jrivas0418 in forum Excel - New Users/Basics
    Replies: 5
    Last Post: 01-16-2008, 12:47 PM
  4. easy IF statement
    By 1978 in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 03-12-2007, 10:36 AM
  5. easy if statement
    By acarnah2 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-27-2006, 01:00 AM
  6. SUM.IF...probable fingertrouble
    By Borken in forum Excel Formulas & Functions
    Replies: 19
    Last Post: 09-06-2005, 07:05 PM
  7. Macro halts on probable data error
    By Dan E in forum Excel General
    Replies: 7
    Last Post: 02-19-2005, 07: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