+ Reply to Thread
Results 1 to 11 of 11

If statment or sumproduct to change a value in a cell from todays date to date closed

  1. #1
    Forum Contributor
    Join Date
    05-18-2012
    Location
    Chicopee, Ma
    MS-Off Ver
    Excel for Microsoft 365
    Posts
    196

    If statment or sumproduct to change a value in a cell from todays date to date closed

    I have a spreadsheet that uses the formula =If(C52="","",Today())
    it works well but when that line gets archived the date keeps counting.
    What I want to say is (C52= todays date unless there is a date in F52 then = the date in F52)
    can I use an if statement or should I be using a sumproduct?

  2. #2
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,501

    Re: If statment or sumproduct to change a value in a cell from todays date to date closed

    Something like =IF(F52<>"",F52,TODAY()) work for you?
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

  3. #3
    Forum Expert
    Join Date
    10-09-2014
    Location
    Newcastle, England
    MS-Off Ver
    2003 & 2013
    Posts
    1,986

    Re: If statment or sumproduct to change a value in a cell from todays date to date closed

    Please Login or Register  to view this content.
    If someone has helped you then please add to their Reputation

  4. #4
    Forum Contributor
    Join Date
    05-18-2012
    Location
    Chicopee, Ma
    MS-Off Ver
    Excel for Microsoft 365
    Posts
    196

    Re: If statment or sumproduct to change a value in a cell from todays date to date closed

    I need to check for a check for a date in C52 when a date is entered it returns todays date.
    When a job is closed a date will be put into F52 at that point I need the formula to say the cell is now = to the date in F52

  5. #5
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,501

    Re: If statment or sumproduct to change a value in a cell from todays date to date closed

    Ok, this seems like it should be simple but I keep rereading it and am not sure I still follow it.
    Will this work for you? =IF(C52<>"",C52,F52) Or does F52 override what is in C52? If this is true maybe this instead ... =IF(F52<>"",F52,C52)

  6. #6
    Forum Expert
    Join Date
    10-09-2014
    Location
    Newcastle, England
    MS-Off Ver
    2003 & 2013
    Posts
    1,986

    Re: If statment or sumproduct to change a value in a cell from todays date to date closed

    I think whats confusing here is the cell in question.

    Is the formula to go in C52, F52 or another one?


    From the messages above you would have to assume that its in A N Other cell as you have referenced both C52 and F52, in that case

    Please Login or Register  to view this content.
    Which basically checks if F52 is a date and if so, uses that, if it isnt then it checks C52 and if available, uses that otherwise its blank

  7. #7
    Forum Contributor
    Join Date
    05-18-2012
    Location
    Chicopee, Ma
    MS-Off Ver
    Excel for Microsoft 365
    Posts
    196

    Re: If statment or sumproduct to change a value in a cell from todays date to date closed

    In the file that I uploaded go to Dept 5811 on the bottom sheet tab.
    For this explanation lets use line number 52
    Look at cell L52 that formula returns todays date when C52's date is entered, if no date is there it remains blank.
    The problem is when I close a job (put a date in f52) and hit the archive button at the top let of the sheet, it sends the line to archive but the date keeps counting.
    When I enter a date into F52 I would like Cell L52 to return the value of F52, effectively stopping the date when I close the work order.

    I hope that clears it up.
    Attached Files Attached Files

  8. #8
    Forum Expert
    Join Date
    10-09-2014
    Location
    Newcastle, England
    MS-Off Ver
    2003 & 2013
    Posts
    1,986

    Re: If statment or sumproduct to change a value in a cell from todays date to date closed

    The formula I supplied should do that:

    Please Login or Register  to view this content.

  9. #9
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: If statment or sumproduct to change a value in a cell from todays date to date closed

    Quote Originally Posted by pjwhitfield View Post
    The formula I supplied should do that:

    =if(IsDate(F52),F52,if(IsDate(C52),C52,""))
    IsDate is not a native Excel worksheet function.

    It would be a good function to have, though!
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  10. #10
    Forum Contributor
    Join Date
    05-18-2012
    Location
    Chicopee, Ma
    MS-Off Ver
    Excel for Microsoft 365
    Posts
    196

    Re: If statment or sumproduct to change a value in a cell from todays date to date closed

    all I get in the cell is Name?

  11. #11
    Forum Contributor
    Join Date
    05-18-2012
    Location
    Chicopee, Ma
    MS-Off Ver
    Excel for Microsoft 365
    Posts
    196

    Re: If statment or sumproduct to change a value in a cell from todays date to date closed

    This is on the right track but when C52 is Null I don't want a date returned.

+ 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. Want Closed Excel workbook to alert me when celll or cells with date match todays date
    By morrisgnew in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-07-2013, 08:37 AM
  2. Replies: 3
    Last Post: 05-17-2011, 09:44 AM
  3. Change cell to CLOSED when Date entered
    By Gauntsghost in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-19-2010, 10:10 PM
  4. Need a formula to place todays date in cell when other cell ="closed"
    By mrgillus in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-25-2009, 12:28 PM
  5. Using VB to find a range based on todays date and todays date +30
    By Steve_al in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-13-2009, 09:31 AM

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