+ Reply to Thread
Results 1 to 7 of 7

Date period function

  1. #1
    Registered User
    Join Date
    05-26-2014
    Location
    Denmark
    MS-Off Ver
    Office 16
    Posts
    44

    Date period function

    Hi,

    I have been trying to made a simple solution on attached. I want the "period" column to automatically fill out based on the 3 categories to the right. If the the date is between "From" and "To" then choose the Period to the right.

    I hope you can help.

    br, Alexander
    Attached Files Attached Files

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,779

    Re: Date period function

    Administrative Note:

    Welcome to the forum.

    Please update your forum profile with the version of excel that you are using.

    Although we value your privacy as much you do, it could be important that members have a rough idea of your location as the solutions they offer may be affected by your locale. For instance, you might in the future post questions which are related to your regional settings.

    With this in mind, please update your profile to something more precise (something such as UK, Europe, USA, UAE, etc. will suffice).

    Thank you for helping us to help you.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    02-05-2019
    Location
    Bangladesh
    MS-Off Ver
    Office 365
    Posts
    71

    Re: Date period function

    I assume the "ORDER_DATE" column is "From," but is there any delivery date you might need to mention? For example, if the order date is "1/1/2021," which is in column A and the order is expected to deliver on "1/30/2021" in column B, then column B - Column A = Period.

    Hope that helps!

  4. #4
    Registered User
    Join Date
    05-26-2014
    Location
    Denmark
    MS-Off Ver
    Office 16
    Posts
    44

    Re: Date period function

    basically I'm looking for something like this:

    if:

    Column A i larger than D2 then period should be "1-30"
    Column A i larger than D3 then period should be "31-60"
    Column A i larger than D4 then period should be "60+"

  5. #5
    Registered User
    Join Date
    02-05-2019
    Location
    Bangladesh
    MS-Off Ver
    Office 365
    Posts
    71

    Re: Date period function

    Okay, you could try using the formula below:

    IF(A1>$D$2,$F$2,IF([A1>$D$3,$F$3,IF(A1>$D$4,$F$4,"")))

    Let me know how it goes!

  6. #6
    Registered User
    Join Date
    05-26-2014
    Location
    Denmark
    MS-Off Ver
    Office 16
    Posts
    44

    Re: Date period function

    it works like a beauty. Thanks!

  7. #7
    Registered User
    Join Date
    02-05-2019
    Location
    Bangladesh
    MS-Off Ver
    Office 365
    Posts
    71

    Re: Date period function

    Glad that I could help! But please help me to get a reputation by pressing the "Add Reputation" button, as this would inspire me to solve more problems

+ 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. First date in specific time period based on today's date
    By BanginMyHeadOnMyDesk in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 08-19-2016, 05:28 AM
  2. Replies: 1
    Last Post: 11-24-2015, 03:00 AM
  3. Replies: 4
    Last Post: 06-12-2014, 11:37 AM
  4. Replies: 2
    Last Post: 05-21-2014, 02:26 PM
  5. [SOLVED] Semi Monthly autofill Period Starting Date based on Period Ending Date
    By greatwent in forum Excel General
    Replies: 6
    Last Post: 01-30-2014, 03:29 AM
  6. Replies: 0
    Last Post: 07-25-2013, 10:03 AM
  7. Replies: 2
    Last Post: 06-07-2013, 02:21 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