+ Reply to Thread
Results 1 to 14 of 14

if then question

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

    if then question

    I have a spreadsheet in one column I have "date closed" on another I have "status".
    I would like to write an if then formula to say, if a date is entered in F5 (date closed) then E5 says "Completed"...

  2. #2
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: if then question

    How about

    =IF(ISNUMBER(F5),"Completed","")

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

    Re: if then question

    would the formula be in e5 or f5

  4. #4
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: if then question

    That would be in E5

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

    Re: if then question

    it works great.
    Is ther any way to make the cell gray at the same time?

  6. #6
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: if then question

    Use the Conditional Formatting feature.

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

    Re: if then question

    Right, thank you

  8. #8
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: if then question

    You're welcome. Happy to help.

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

    Re: if then question

    Something I didn't consider E5 has information in it, i still need to have information in that cell but when teh date is entered in cell F5 I want it to change to Completed.
    How can I do that and maintain information in cell e5?

  10. #10
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: if then question

    What kind of information is there? Formula, keyed entry....?

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

    Re: if then question

    just keyed entry information. Status of job assignments.

  12. #12
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: if then question

    That will require VBA (Worksheet Change Event). I'm not a VBAer so if you want help with that then someone else will have to provide it for you.

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

    Re: if then question

    Ok thanks for all your help

  14. #14
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: if then question

    I suppose an alternative could be to set up 2 rules in Conditional Formatting - 1 to turn the cell gray when it contains the word "Completed" and another rule to change it, say red, if there is a date in F and E does not say "Completed". That would serve to alert the user to input "Completed". To make it easier you could have Data Validation to provide a list of entries acceptable for that cell, "Completed" being in the list. Assuming there is a finite list of possible entries.

    If you want help with VBA let me know and I'll see if I can get someone to have a look at this thread.

+ 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