+ Reply to Thread
Results 1 to 10 of 10

Trying to find a formula, that will calculate the current date + 30 days in the future

  1. #1
    Registered User
    Join Date
    06-07-2023
    Location
    Bulgaria
    MS-Off Ver
    EXCEL 365
    Posts
    15

    Trying to find a formula, that will calculate the current date + 30 days in the future

    Hi awesome people.,

    I am trying to find a solution for a job, that I am doing. I hope to explain here and to be clear to you.

    I am looking for a solution, it's either a formula or some type of text, that can tell me if I need to make an order for the product or not.

    I have two tabs in my Excel sheet.

    Tab 1 is where, I can see my product, how many pieces are in stock, and how many pieces have been ordered.
    Tab 2 is where, I can see my order number, the quantity I have been made for the product, and the estimated date of arrival.

    What I am trying to achieve is that in "Tab 1", no matter if it's in Column E or somewhere else, I need a text, "need to order",
    if today's date + 30 days in the future are after the Arriving date in "Tab 2/Colum E", and vice versa, if its before "do not order". The issue, I am facing is that for each article, I have different order.

    Here is an example from the sheet:

    Tab 1 / Column B:

    Product QTY ORDER TEXT
    Table 6

    Tab 2 / Column D/E

    Product QTY ORDER Arriving date
    Table 3 6/25/2023
    Table 3 8/1/2023

    In this example, I have placed an order for qty 6, but 3 qty will arrive after today's date + 30 days in the future, so I need a text "need to order"

    I hope this makes sense. Of course the sheets, that I am working has hundred of items and I want to create a macro for it.

    Thank you very much
    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,926

    Re: Trying to find a formula, that will calculate the current date + 30 days in the future

    There is NO 2022 version of Excel. Which version are you using?

    What are the expected results (values)?

    AliGW on MS365 Beta Channel (Windows 11) 64 bit

    E
    1
    SOLUTION/TEXT ?
    2
    3
    4
    Sheet: 1
    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
    06-07-2023
    Location
    Bulgaria
    MS-Off Ver
    EXCEL 365
    Posts
    15

    Re: Trying to find a formula, that will calculate the current date + 30 days in the future

    Hi,

    On my About Excel info, it does say:
    Version 2208 ( Build 15601,206660)

    Using Windows 10.

    For Column E, I want to get "TEXT", either I need to order or not to order.

  4. #4
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,435

    Re: Trying to find a formula, that will calculate the current date + 30 days in the future

    Please try in C2 and copy down:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files

  5. #5
    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,926

    Re: Trying to find a formula, that will calculate the current date + 30 days in the future

    Version 2208 ( Build 15601,206660)
    Then why does your profile say 2022??? Which PRODUCT is it? Excel 2019, Excel 2021 or Excel 365? This also needs to be in your profile. At the moment, your profile is completely WRONG. Please update it now.

  6. #6
    Registered User
    Join Date
    06-07-2023
    Location
    Bulgaria
    MS-Off Ver
    EXCEL 365
    Posts
    15

    Re: Trying to find a formula, that will calculate the current date + 30 days in the future

    HI AliGW,

    I will fix it now. Sorry for this.

  7. #7
    Registered User
    Join Date
    06-07-2023
    Location
    Bulgaria
    MS-Off Ver
    EXCEL 365
    Posts
    15

    Re: Trying to find a formula, that will calculate the current date + 30 days in the future

    Quote Originally Posted by HansDouwe View Post
    Please try in C2 and copy down:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Thank you very much HansDouwe for the formula,

    For some reason, it does work on some products, but on the other, it does say #CALC! for some reason, and I can not figure it out

  8. #8
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,435

    Re: Trying to find a formula, that will calculate the current date + 30 days in the future

    Sorry, I forgot some $ signs.

    Please try in C2 and copy down:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    If the #CALC remains please upload a sample sheet showing the error.

  9. #9
    Registered User
    Join Date
    06-07-2023
    Location
    Bulgaria
    MS-Off Ver
    EXCEL 365
    Posts
    15

    Re: Trying to find a formula, that will calculate the current date + 30 days in the future

    It works great.

    Thanks a lot

  10. #10
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,435

    Re: Trying to find a formula, that will calculate the current date + 30 days in the future

    Thanks for the feedback and rep . Glad to have helped.

+ 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] How to calculate days between a future date and today? (#value! error)
    By jilaba in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 12-07-2020, 07:38 AM
  2. [SOLVED] calculate number of days from current date
    By sarat47 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 05-28-2017, 02:36 PM
  3. [SOLVED] Trying to calculate- compares two dates, chooses later date, tells days to current date
    By Vicious00013 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-31-2016, 12:20 PM
  4. [SOLVED] Get rid of 1/5/1900 in my column with a formula to calculate 5 days into the future
    By jholiday78 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-28-2014, 12:43 PM
  5. calculate No. of days between two date WITHIN A CURRENT MONTH
    By ahgoon in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-02-2009, 04:48 PM
  6. [SOLVED] formula to calculate future date from date in cell plus days
    By Chicesq in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 11-03-2005, 08:30 AM
  7. Replies: 2
    Last Post: 02-10-2005, 04: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