+ Reply to Thread
Results 1 to 6 of 6

How to display an amount from a cell if the date of another cell is between 30 and 60 days

  1. #1
    Registered User
    Join Date
    06-05-2019
    Location
    USA
    MS-Off Ver
    2016
    Posts
    3

    How to display an amount from a cell if the date of another cell is between 30 and 60 days

    I'm actually trying to create a helper cell in excel for a pivot table. I need help with creating a formula to display a value from another cell if the date is between 30 and 60 days from a designated cell with a date.

    Here is an example:

    So for the table below, I would want the "Copay amount" to show up under the correlating "over 'N'" column.

    Invoice date Copay amount Over 30 Over 60 Over 90
    2/1/2019 30
    4/5/2019 120
    1/22/2019 27
    3/12/2019 82
    5/12/2019 25


    Let me know if I need to clarify further. Thank you
    Attached Images Attached Images

  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,916

    Re: How to display an amount from a cell if the date of another cell is between 30 and 60

    Welcome to the forum!

    In C2:

    =IF(AND(B2>30,B2<=60),B2,"")

    In D2:

    =IF(AND(B2>60,B2<=90),B2,"")

    InE2:

    =IF(B2>90,B2,"")
    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-05-2019
    Location
    USA
    MS-Off Ver
    2016
    Posts
    3

    Re: How to display an amount from a cell if the date of another cell is between 30 and 60

    Thank you so much! I was adding an extra "AND(" function to mine.

    This worked great, but now I am running into an issue that if a cell in the "Invoice Date" column is blank, then it calculates the days wrong. Is there a way to code it to treat a cell differently if it is blank?

    (thanks again! I'm so glad to join the forum here!)

  4. #4
    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,916

    Re: How to display an amount from a cell if the date of another cell is between 30 and 60

    Maybe this?

    =IF(A2="","",IF(AND(B2>30,B2<=60),B2,""))
    =IF(A2="","",IF(AND(B2>60,B2<=90),B2,""))
    =IF(A2="","",IF(B2>90,B2,""))

  5. #5
    Registered User
    Join Date
    06-05-2019
    Location
    USA
    MS-Off Ver
    2016
    Posts
    3

    Re: How to display an amount from a cell if the date of another cell is between 30 and 60

    I'll try this, thanks!!

  6. #6
    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,916

    Re: How to display an amount from a cell if the date of another cell is between 30 and 60

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

+ 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. Formula to display an amount in a specific cell after a certain time
    By Saeber4777 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-04-2018, 05:28 PM
  2. Replies: 1
    Last Post: 07-21-2015, 08:29 AM
  3. Looking to display data in a cell, only if today's date is 7 days past a cell's date
    By mbenderpetassure in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-20-2015, 01:57 PM
  4. [SOLVED] Best Way to Display a Large Amount of Data in a Single Cell
    By daedelous00 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-18-2013, 11:58 AM
  5. [SOLVED] display days in month in the cell according to date
    By mraines in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 12-05-2012, 09:49 AM
  6. large text amount in cell will not display in the cell
    By dbelch01 in forum Excel General
    Replies: 3
    Last Post: 06-15-2005, 11:05 AM
  7. Replies: 8
    Last Post: 02-06-2005, 01: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