+ Reply to Thread
Results 1 to 2 of 2

IF fuction using date to produce numbers dependant on the amount of time between dates

  1. #1
    Registered User
    Join Date
    02-04-2015
    Location
    Brisbane, Australia
    MS-Off Ver
    2007
    Posts
    7

    IF fuction using date to produce numbers dependant on the amount of time between dates

    hi guys,

    I'm trying to create a formula that will give me a number based on the differences between dates. If the dates are the same (L2=B2) the cell should list -24 and if the dates are are different (04.02.2015, 05.02.2015) the cell should list 24. If the dates show 04.02.2015 to 06.02.2015 the cell should list 48 and so on.

    so far I only have =IF(L2=B2,-24,IF(L2<B2,24,)), however this wont show 48, 72 etc.

    screenshot time in motion.png

  2. #2
    Forum Moderator vlady's Avatar
    Join Date
    09-22-2011
    Location
    Philippines - OLSHCO -Guimba-Nueva Ecija
    MS-Off Ver
    2021
    Posts
    4,361

    Re: IF fuction using date to produce numbers dependant on the amount of time between dates

    some members cannot open pictures (restrictions on their network policies) so it is better to post sample workbooks.

    maybe something like this could help

    =IF(L2-B2=0,-1,L2-B2)*24
    I think people forget the word "THANK YOU!!!!" Do you still know it???

    There is a little star ( ADD REPUTATION ) below those person who helped you. Click it to say your "PRIVATE APPRECIATION TO THEIR EFFORT ON THEIR CONTRIBUTIONS "

    Regards,
    Vladimir

+ 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. Count amount of time between two dates, only unique items, in date range
    By matt99199 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-23-2014, 12:06 PM
  2. [SOLVED] Help in writing formula in excel to produce dates based on start date and end date
    By shoot for moon in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 07-10-2014, 01:00 PM
  3. VBA to calculate planned amount to produce per a schedule broken down by day...
    By Zoediak in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-10-2013, 02:36 PM
  4. Match between 2 different spreadsheets to produce corresponding amount
    By tdavis8903 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-24-2013, 01:46 AM
  5. calculate the amount of time between 2 dates (working hours)
    By rickyRRE in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 01-23-2012, 10:03 AM

Tags for this Thread

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