+ Reply to Thread
Results 1 to 10 of 10

Calculate number of days between 2 dates & then assign a number based on the answer

Hybrid View

  1. #1
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Please help me create a spreadsheet with a very simple formula

    Like this...

    =TODAY()


    We used to party in Youngstown back in the 80's!
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  2. #2
    Registered User
    Join Date
    08-26-2009
    Location
    Ohio
    MS-Off Ver
    2010, 2013
    Posts
    11

    Question Re: Please help me create a spreadsheet with a very simple formula

    Hey, Tony--

    What am I doing wrong? I'm not getting a value of 1, 2, 3, 4, or 5 in C2. See attached.

    John

    Now everyone in Youngstown goes to Pittsburgh to party!
    Attached Files Attached Files

  3. #3
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Please help me create a spreadsheet with a very simple formula

    I downloaded the file and it shows the correct result of 3.

    B2-A2 = 21

    21 falls into category 3:

    If date in B2 - date in A2 is 1 or less days, put a 1 in cell C2.
    If date in B2 - date in A2 is 2-7 days, put a 2 in cell C2.
    If date in B2 - date in A2 is 8-30 days, put a 3 in cell C2.
    If date in B2 - date in A2 is 31-90 days, put a 4 in cell C2.
    If date in B2 - date in A2 is 91 days or more, put a 5 in cell C2

+ 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. How to create a simple formula for a data dump
    By blue_izce8 in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 05-07-2013, 06:32 PM
  2. how to create simple formula
    By rlc131993 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-04-2012, 06:55 PM
  3. Trying to create a simple formula or VBA to buy or sell stock
    By MMcCawley in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-28-2012, 11:47 PM
  4. How do you create simple add/subtract formula?
    By Suomalainen in forum Excel General
    Replies: 6
    Last Post: 07-01-2008, 03:18 AM
  5. [SOLVED] i want to create a simple yes/no spreadsheet with a dot represent.
    By alaskatpj in forum Excel General
    Replies: 6
    Last Post: 04-23-2005, 07:06 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