+ Reply to Thread
Results 1 to 11 of 11

If formula troubles

  1. #1
    Registered User
    Join Date
    07-10-2014
    Location
    Edinburgh, Scotland
    MS-Off Ver
    2007
    Posts
    35

    If formula troubles

    Hi,

    I'm creating a training spreadsheet and need to show whether all completed essential training is still in date or not. Therefore I need to work out a formula that will look at a number of specific cells, and if the dates in any of these cells is in the past then the formula should return a 'N' to indicate that training is not up to date. Even just one cell with a date in the past should return an 'N' value. If all the dates are in the future then I need it to return a 'Y'.

    Thanks for your help.

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

    Re: If formula troubles

    It is hard to develop a formula without seeing what you are looking at. For example, how many dates are being referenced? Does the number of dates increase or decrease or change with time? Are you looking across rows or down columns or both? posting a sample with dummy data might go a long way to getting you help.
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

  3. #3
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,941

    Re: If formula troubles

    Attach a sample file
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  4. #4
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: If formula troubles

    Hi

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Where A1, B1....etc are the date cells.

    If you have a large number of dates and to avoid making the formula hard to read then it would be preferable to use an array formula entered with Ctrl Shift Enter
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  5. #5
    Registered User
    Join Date
    07-10-2014
    Location
    Edinburgh, Scotland
    MS-Off Ver
    2007
    Posts
    35

    Re: If formula troubles

    Thank you very much Richard Buttrey. I have five dates to take into account and they are dotted around the spreadsheet, so your first suggestion worked a treat.

    Very much appreciated.

  6. #6
    Registered User
    Join Date
    07-10-2014
    Location
    Edinburgh, Scotland
    MS-Off Ver
    2007
    Posts
    35

    Re: If formula troubles

    Ah, actually, I should have said that if the cell is actually blank I need it to return an "N". Not all my cells have dates e.g. if the person has not completed the training at all. So its actually if its out of date or blank. The above solution worked but ignored any blank cells and returned a Y as long as the dated cells were in date. How can I incorprate this into the formula?

    I'll try to upload a sample of data.

    Thanks for your help.

  7. #7
    Registered User
    Join Date
    07-10-2014
    Location
    Edinburgh, Scotland
    MS-Off Ver
    2007
    Posts
    35

    Red face Re: If formula troubles

    Okay, I think I've managed to upload a sample.

    The formula goes into column F. And its the Refresher Due columns that I'm trying to work with (columns H, K, M, P, S)

    Thanks again.
    Attached Files Attached Files

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

    Re: If formula troubles

    would this work as a change to your formula then? =IF(OR(H4<TODAY(),H4="",K4<TODAY(),K4="",M4<TODAY(),M4="",P4<TODAY(),P4="",S4<TODAY(),S4=""),"N","Y")

  9. #9
    Registered User
    Join Date
    07-10-2014
    Location
    Edinburgh, Scotland
    MS-Off Ver
    2007
    Posts
    35

    Re: If formula troubles

    Perfect Sambo Kid. Thanks very much! Thats great.

    Seems so obvious when I look at your formula, but I just couldnt quite get it right. Much appreciated.

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

    Re: If formula troubles

    You're welcome and thanks for the bump to my reputation.

  11. #11
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,941

    Re: If formula troubles

    F3=if(sumproduct((g$2:s$2=h$2)*isnumber(g3:s3)*(g3:s3>=today()))=5,"y","n")
    try this and copy towards down

+ 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. Counting Formula Troubles
    By stacey52891 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-09-2013, 12:41 PM
  2. Excel formula troubles
    By redous in forum Excel General
    Replies: 10
    Last Post: 04-15-2012, 03:27 AM
  3. Formula troubles
    By azizrasul in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-11-2008, 10:04 AM
  4. Formula troubles
    By egeorge4 in forum Excel General
    Replies: 5
    Last Post: 02-24-2006, 03:45 PM
  5. [SOLVED] Formula Troubles........
    By Tracy B in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 04-08-2005, 11:06 AM

Tags for this Thread

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