+ Reply to Thread
Results 1 to 5 of 5

Provide 3 different results based upon date differences

Hybrid View

InterstateRentals Provide 3 different results... 02-07-2014, 07:00 PM
judgeh59 Re: Provide 3 different... 02-07-2014, 07:06 PM
InterstateRentals Re: Provide 3 different... 02-07-2014, 07:13 PM
judgeh59 Re: Provide 3 different... 02-07-2014, 07:19 PM
benishiryo Re: Provide 3 different... 02-07-2014, 10:15 PM
  1. #1
    Forum Contributor
    Join Date
    11-01-2013
    Location
    Atlanta, GA USA
    MS-Off Ver
    Excel 2010
    Posts
    115

    Provide 3 different results based upon date differences

    One more problem that we cannot get figured out ... Example file is attached.


    We have a table with dates A7:A16. We want to compare this list of dates to a date that we input in A1.


    Three different results that we want ...

    Case 1: ($A$1-$A7)<=15, then $B7="GOOD"

    Case 2: 15<($A$1-$A7)<30, then $B7="CALL"

    Case 3: ($A$1-$A7)>30, then $B7="CALL!!!"


    The results that we expect to get in Column B are written in Column E.

    Thank you!
    Attached Files Attached Files

  2. #2
    Forum Expert judgeh59's Avatar
    Join Date
    02-07-2013
    Location
    Boise, Idaho
    MS-Off Ver
    Excel 2016
    Posts
    2,310

    Re: Provide 3 different results based upon date differences

    try this

    =IF($A$1-A7<=15,"GOOD",IF(AND($A$1-A7>15,$A$1-A7<30),"CALL","CALL!!!!"))
    Ernest

    Please consider adding a * if I helped

    Nothing drives me crazy - I'm always close enough to walk....

  3. #3
    Forum Contributor
    Join Date
    11-01-2013
    Location
    Atlanta, GA USA
    MS-Off Ver
    Excel 2010
    Posts
    115

    Re: Provide 3 different results based upon date differences

    Judgeh59, that is exactly what we were looking for!! AWESOME!!!

    Thank you for the great solution!!!

  4. #4
    Forum Expert judgeh59's Avatar
    Join Date
    02-07-2013
    Location
    Boise, Idaho
    MS-Off Ver
    Excel 2016
    Posts
    2,310

    Re: Provide 3 different results based upon date differences

    glad I could help...have a great day and thanks for the points....

  5. #5
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,156

    Re: Provide 3 different results based upon date differences

    hi there. leveraging on Ernest's formula, you could reduce it to:
    =IF($A$1-A7<=15,"GOOD",IF($A$1-A7<30,"CALL","CALL!!!!"))

    because the 1st test has been done to check for those lesser or equals to 15, you are automatically checking for above 15 in the next test, so there's no need for:
    $A$1-A7>15

    do remember to mark the thread "Solved" as well. thanks

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

+ 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 provide a value based on multiple criteria.
    By hotelier in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-10-2013, 10:26 AM
  2. Return Results Based on Date Range
    By ExcelSuduko in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 04-05-2013, 11:23 AM
  3. Provide Month based on Running Total
    By zannnn in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 10-08-2012, 12:16 PM
  4. Find, then Provide Results
    By mycon73 in forum Excel General
    Replies: 6
    Last Post: 03-12-2012, 08:42 PM
  5. Equation to Provide Result Based on 2 Columns
    By Cincy in forum Excel General
    Replies: 3
    Last Post: 02-19-2008, 01:45 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