+ Reply to Thread
Results 1 to 9 of 9
  1. #1
    Registered User
    Join Date
    10-26-2009
    Location
    uk
    MS-Off Ver
    Excel 2003
    Posts
    8

    IF Function Help

    =IF(OR(DAY(B4)<=DAY($O$1),(K4=0)),"DUE","")

    O1 = the current date.

    how can i make the following function have 2 statments eg,

    if the day b4 is less than or equal to O1 then return "due", however if k4 = 0 the it will be blank. they need to be two seperate functions.

    do i need to if statements?

  2. #2
    Forum Moderator NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003, 2007, 2010
    Posts
    31,148

    Re: IF Function Help

    You mean?

    =IF(K4=0,"",IF(DAY(B4)<=DAY($O$1),"DUE")
    Microsoft MVP - Excel

    Where there is a will there are many ways. Pick One!


    Please read the Forum Rules

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

    Preferred Charities: Lupus Canada and Sick Kids Foundation.
    Feel Free to Donate if you want to, for the assistance you received today.

  3. #3
    Forum Guru darkyam's Avatar
    Join Date
    03-05-2008
    Location
    Colorado, US
    MS-Off Ver
    2007
    Posts
    2,140

    Re: IF Function Help

    I could be misunderstanding something, but I don't think using the Day function will work. It will return an incorrect answer when the current day is the 31st and the due date is the first of the next month.

  4. #4
    Registered User
    Join Date
    10-26-2009
    Location
    uk
    MS-Off Ver
    Excel 2003
    Posts
    8

    Re: IF Function Help

    You mean?

    =IF(K4=0,"",IF(DAY(B4)<=DAY($O$1),"DUE")


    Great thanks works,

    But when the due date is not due it responds with a result FALSE, how can i make it blank when the due date is not due.

  5. #5
    Forum Moderator NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003, 2007, 2010
    Posts
    31,148

    Re: IF Function Help

    Add the condition:

    =IF(K4=0,"",IF(DAY(B4)<=DAY($O$1),"DUE","")
    Microsoft MVP - Excel

    Where there is a will there are many ways. Pick One!


    Please read the Forum Rules

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

    Preferred Charities: Lupus Canada and Sick Kids Foundation.
    Feel Free to Donate if you want to, for the assistance you received today.

  6. #6
    Registered User
    Join Date
    10-26-2009
    Location
    uk
    MS-Off Ver
    Excel 2003
    Posts
    8

    Re: IF Function Help

    Great Works,

    Thanks for your help...

    You may be able to help with the following,

    I have a field that you enter an amount once someone has paid, i also have another field where once that amount has been paid it is deducted from the total owed.

    example if £550 is owed and £300 is paid then the balance remaining is £250.

    what i need is in the field where you enter how much is paid, i need this field to let me enter an amount in there and then once it enters it calculates and saves the amount but leaves the field blank again so i can enter another amount in there example the remaining £250 can be entered leaving the total to £0.

    Can you help, i know it sounds a bit funny but thats the best way i could explain.

    Thanks in Advance.

  7. #7
    Registered User
    Join Date
    10-26-2009
    Location
    uk
    MS-Off Ver
    Excel 2003
    Posts
    8

    Re: IF Function Help

    Quote Originally Posted by darkyam View Post
    I could be misunderstanding something, but I don't think using the Day function will work. It will return an incorrect answer when the current day is the 31st and the due date is the first of the next month.
    Hi your right it will not work, do you have any solutions to make this work.

    say for example the payment is due every 10th of the month, i need a promt to let me know the payment is due and it needs to stay due untill paid.
    Last edited by jay1983; 10-26-2009 at 01:07 PM.

  8. #8
    Forum Guru darkyam's Avatar
    Join Date
    03-05-2008
    Location
    Colorado, US
    MS-Off Ver
    2007
    Posts
    2,140

    Re: IF Function Help

    Just take the Day part off: =IF(K4=0,"",IF(B4<=$O$1,"DUE","").
    As for your other question, I'm afraid I can't help with that. It would require VBA and I'm still no good at that. I'm sure NBVC or someone else could whip that up for you easily, though.

  9. #9
    Registered User
    Join Date
    10-26-2009
    Location
    uk
    MS-Off Ver
    Excel 2003
    Posts
    8

    Re: IF Function Help

    In one field is the day eg 20 or 27 etc.

    and the day today is 20-10-2009.

    I would need the field to promt due when it is the 20th.

    and if the 20 occurs over several months i still need it to promt untill paid.

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.2.0