+ Reply to Thread
Results 1 to 14 of 14

updating date based on another cells value

  1. #1
    Registered User
    Join Date
    04-15-2010
    Location
    u.s. version of excel
    MS-Off Ver
    Excel 2007
    Posts
    7

    updating date based on another cells value

    Ok...here's a full explanation of what i'm trying to do.....

    column b contains the date for each entry. i would like for cell e6 to update +60 whenever the MOST recent entry (date found in b column, value found in k column) is >0 is put into any cells from k10:k365. all i know is that i'll need something like a max(b10:b365). in case that didn't all come out clear.......

    i put a date in column b
    if i put a value >0 in k column....
    ....i want the e6 cell to show +60 days from whatever the most RECENT date is with the most RECENT k column data, so it's always updating another 60 days into the future whenever i put a value into the k column, based off whatever the last date had a value in the k column....have i thoroughly spoken in circles? thanks ahead of time.

  2. #2
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    14,719

    Re: updating date based on another cells value

    Perhaps you can use this formula

    =MAX(IF(K10>K365>0,B10:B365))+60

    This is an array formule that needs to be confirmed with CTRL+SHIFT+ENTER so that curly braces like { and } appear around the formula in the formula bar

  3. #3
    Registered User
    Join Date
    04-15-2010
    Location
    u.s. version of excel
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: updating date based on another cells value

    i switched out that first > for a : and the formula worked perfectly. i've been at this for over a f'n week now trying to figure it out. now, just for giggles, would i be able to add an additional formula that would have the e6 block say "expired" if the current date exceeded the new date gotten from the previous formula? something to the effect of *(if(today>e6="expired))? thank you very much for your help. i may have found a new semi-favorite website.
    Last edited by tattooguy21; 04-15-2010 at 11:41 PM.

  4. #4
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,375

    Re: updating date based on another cells value

    I take it that your setup requires the ; in formulas and not the comma, so here the notation for both variants

    =if(today()>E6;"expired";"")
    =if(today()>E6,"expired","")

    One of them should work. The difference with ; and , is one of the reasons why we ask for your location in your profile. Simply naming the country would help. "abroad" does not.

  5. #5
    Registered User
    Join Date
    04-15-2010
    Location
    u.s. version of excel
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: updating date based on another cells value

    apologies. in iraq with u.s. excel. would the formula you listed be added onto the end of the pre-existing one?

  6. #6
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,375

    Re: updating date based on another cells value

    The way I wrote it, the first formula would be in E6 and my formula in another cell.

    If you want it all in one cell, please first post the formula you are now actually using.

  7. #7
    Registered User
    Join Date
    04-15-2010
    Location
    u.s. version of excel
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: updating date based on another cells value

    the original formula i was using was

    =MAX(IF(K10:K365>0,B10:B365))+60

    which is updating my date in cell e6 based off any value in column k with the most recent date. what i would like to happen is that when today's date is greater than the value of e6, that e6 then display "expired."

  8. #8
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,375

    Re: updating date based on another cells value

    =if(today()>MAX(IF(K10:K365>0,B10:B365))+60,"expired","")

    confirm with Ctrl-Shift-Enter

  9. #9
    Registered User
    Join Date
    04-15-2010
    Location
    u.s. version of excel
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: updating date based on another cells value

    ah...and yet something's not quite right, as i'm getting a "value not available" error. i've check, check, and rechecked both my description, my cells being used, and the formula being typed in, yet there error persist.

  10. #10
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,375

    Re: updating date based on another cells value

    post the workbook

  11. #11
    Registered User
    Join Date
    04-15-2010
    Location
    u.s. version of excel
    MS-Off Ver
    Excel 2007
    Posts
    7

    Post Re: updating date based on another cells value

    here goes...
    Attached Files Attached Files

  12. #12
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,375

    Re: updating date based on another cells value

    tattooguy, could you please point out in which cell you see an error? Your attached file works fine for me, at least, there are no apparent "value not available" errors.

    If you post a workbook, it helps immensely if you actually name the cell where you see a problem. Remember, not everyone here knows you spreadsheet as well as you do!

    Also, could you please update your profile! It shows Excel 2003 as your Excel version, but you posted an .xlsx file, so you are clearly using Excel 2007 or above. In some situations, the solutions suggested will differ as to the Excel version you use, so please make sure that you provide the correct version info.
    Last edited by teylyn; 04-18-2010 at 05:14 AM.

  13. #13
    Registered User
    Join Date
    04-15-2010
    Location
    u.s. version of excel
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: updating date based on another cells value

    i removed the formula because it did not work. here it is from the top....


    column b contains the date for each entry. i would like for cell e6 to update +60 whenever the MOST recent entry (date found in b column, value found in k column) is >0 is put into any cells from k10:k365. all i know is that i'll need something like a max(b10:b365). in case that didn't all come out clear.......

    i put a date in column b
    if i put a value >0 in k column....
    ....i want the e6 cell to show +60 days from whatever the most RECENT date is with the most RECENT k column data, so it's always updating another 60 days into the future whenever i put a value into the k column, based off whatever the last date had a value in the k column....have i thoroughly spoken in circles? thanks ahead of time.

    so again, the cell i want the display in is e6.

    the cell should be the most recent (max) date from b10:b365 when there has been a number >0 in the k10:k365 with 60 days added onto that date. in the event that todays date is greater than the date in e6, it should state "expired." thanks again.

  14. #14
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,375

    Re: updating date based on another cells value

    try

    =IF(TODAY()>MAX((IF(K10:K365>0,B10:B365))+60),"expired",MAX((IF(K10:K365>0,B10:B365))+60))

    confirmed with Ctrl-Shift-Enter

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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