Thread: Excel Help

  1. #1

    Excel Help

    Im trying to create a formula in excel, but nothing about it is working correctly.

    I'm trying to find the date difference between 2 cells, and if the value is under 30, display 0 and if its over 30 display the number minus 30. (31 days would display 1) But even when I attempt to subtract the dates I get a #value error.

    Can someone help me out a bit please?
    Last edited by Ayla; 2016-05-27 at 09:20 PM.

  2. #2

  3. #3
    Quote Originally Posted by Lathais View Post
    That's what Im doing. Its not working. So I cant even test my if functions.
    =E3-B2 = #Value!
    Which in my case looks like E3-CurrentDate = #Value!

  4. #4
    Quote Originally Posted by Ayla View Post
    That's what Im doing. Its not working. So I cant even test my if functions.
    =E3-B2 = #Value!
    Which in my case looks like E3-CurrentDate = #Value!
    Keep reading and he explains how to use =DATEDIF. It's working fine for me. Make sure your cells with dates in them are formatted as Date and not General and of course that the formula field is not formatted as Date.

  5. #5
    Quote Originally Posted by Ayla View Post
    That's what Im doing. Its not working. So I cant even test my if functions.
    =E3-B2 = #Value!
    Which in my case looks like E3-CurrentDate = #Value!
    Make sure that the date in E3 is in the correct format

  6. #6
    Quote Originally Posted by Lathais View Post
    Keep reading and he explains how to use =DATEDIF. It's working fine for me. Make sure your cells with dates in them are formatted as Date and not General and of course that the formula field is not formatted as Date.
    E3 and B1 are both in date format and the cell I am working in is general.
    =DATEDIF(B1,E3,"D") or =DATEDIF(B1,E3,"d"). Neither works. So lets just forget that, how would I just work it in to display how I want? An if function or conditional formatting?

    This isnt overly important, its just a homework mark. and its preventing me from continuing with the rest of it
    Last edited by Ayla; 2016-05-27 at 09:52 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •