+ Reply to Thread
Results 1 to 4 of 4

Adding a third parameter to IF

  1. #1
    Forum Contributor
    Join Date
    01-18-2013
    Location
    London
    MS-Off Ver
    Excel 2003
    Posts
    641

    Adding a third parameter to IF

    I'm using this expression in my worksheet to make certain entries based upon the amount of days between the date in B4 and today's date :

    Please Login or Register  to view this content.
    It works fine , but I need to add an extra parameter to this formula to say that if G4= "P" then put nothing.

    Can someone advise on how to adjust my formula to accommodate this?

    Grateful for any help.
    Using Excel , Word and Access 2003 - For the whole of 2024

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    91,031

    Re: Adding a third parameter to IF

    Try this:

    =IF(G4="P","",IF(DATEDIF(B4,TODAY(),"D")<31,(DATEDIF(B4,TODAY(),"D")), ">31"))
    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. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2504
    Posts
    13,627

    Re: Adding a third parameter to IF

    Try =IF(G4="P","",IF(DATEDIF(B4,TODAY(),"D")<31,(DATEDIF(B4,TODAY(),"D")), ">31"))

  4. #4
    Forum Contributor
    Join Date
    01-18-2013
    Location
    London
    MS-Off Ver
    Excel 2003
    Posts
    641

    Re: Adding a third parameter to IF

    Perfect - thanks guys.

+ 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. Adding an additional parameter to a VBA existing code
    By gregpaj in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 09-13-2018, 09:11 PM
  2. Replies: 2
    Last Post: 10-06-2014, 08:15 AM
  3. Replies: 0
    Last Post: 10-06-2014, 07:35 AM
  4. Parameter Query that takes parameter value from Excel Cell
    By Aquamore in forum Access Tables & Databases
    Replies: 1
    Last Post: 01-23-2014, 03:43 PM
  5. Replies: 0
    Last Post: 11-12-2013, 03:57 AM
  6. [SOLVED] adding additional parameter to median formula
    By justinhampton81 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-19-2013, 10:17 AM
  7. [SOLVED] Adding Parameter Description to VBA module list
    By popfan in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-20-2012, 10:33 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