+ Reply to Thread
Results 1 to 15 of 15

Cells will become 0 automatically without changing formula

  1. #1
    Registered User
    Join Date
    08-26-2012
    Location
    malaysia
    MS-Off Ver
    Excel 2003
    Posts
    84

    Cells will become 0 automatically without changing formula

    Hi All

    I need help . Can or not if i use this formula =IF(OR(B5="",C5=""),0,DAYS360($B5,$C5,TRUE)+1) , If unpaid leave, half-pay leave and study leave, total days cells will become 0 automatically without changing formula
    Attached Files Attached Files

  2. #2
    Forum Contributor
    Join Date
    06-26-2013
    Location
    LAX
    MS-Off Ver
    Excel 2007,Excel 2010
    Posts
    363

    Re: Cells will become 0 automatically without changing formula

    Hello,

    Not sure, what you are referring as without changing formula. See if this helps. In E5, paste the below formula and copy down

    Please Login or Register  to view this content.
    Note: Study Leave has a space in the end & half pay leaf has a typo i guess. Both needs to be corrected if needed.

  3. #3
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Cells will become 0 automatically without changing formula

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


    Drag it down...


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  4. #4
    Registered User
    Join Date
    08-26-2012
    Location
    malaysia
    MS-Off Ver
    Excel 2003
    Posts
    84

    Re: Cells will become 0 automatically without changing formula

    how about if there is additional 1 columns. If unpaid leave, half-pay leave and study leave, total column will be 360 and total day colum will become 0
    Attached Files Attached Files

  5. #5
    Forum Contributor
    Join Date
    06-26-2013
    Location
    LAX
    MS-Off Ver
    Excel 2007,Excel 2010
    Posts
    363

    Re: Cells will become 0 automatically without changing formula

    Just reverse the true, false value in sixth sense formula,

    =IF(OR(B5="",C5="",ISNUMBER(MATCH(D5,REASON,0))),DAYS360($B5,$C5,TRUE)+1,0) - in E5 and drag down

    =IF(OR(B5="",C5="",ISNUMBER(MATCH(D5,REASON,0))),0,DAYS360($B5,$C5,TRUE)+1) - IN F5 and drag down

  6. #6
    Registered User
    Join Date
    08-26-2012
    Location
    malaysia
    MS-Off Ver
    Excel 2003
    Posts
    84

    Re: Cells will become 0 automatically without changing formula

    Quote Originally Posted by elayaz View Post
    Just reverse the true, false value in sixth sense formula,

    =IF(OR(B5="",C5="",ISNUMBER(MATCH(D5,REASON,0))),DAYS360($B5,$C5,TRUE)+1,0) - in E5 and drag down
    Why cells B5 & C5 blank at cells E5 have 1 not 0

  7. #7
    Forum Contributor
    Join Date
    06-26-2013
    Location
    LAX
    MS-Off Ver
    Excel 2007,Excel 2010
    Posts
    363

    Re: Cells will become 0 automatically without changing formula

    That's because the original formula which you don't want to change had DAYS360 +1

    Try this altered sixth sense formula in E5 and drag down


    Please Login or Register  to view this content.

  8. #8
    Registered User
    Join Date
    08-26-2012
    Location
    malaysia
    MS-Off Ver
    Excel 2003
    Posts
    84

    Re: Cells will become 0 automatically without changing formula

    Quote Originally Posted by elayaz View Post
    That's because the original formula which you don't want to change had DAYS360 +1

    Try this altered sixth sense formula in E5 and drag down


    Please Login or Register  to view this content.
    if i use this formula 1/1/2013 - 2/7/2013 in e5 181 day. i want 182 day because i count 1 month average 30 day. 1/1/2013 - 30/6/2013 = 180 day, 1/7/2013 - 2/7/2013 = 2 day. All day is 182.

  9. #9
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Cells will become 0 automatically without changing formula

    Try this...

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

  10. #10
    Registered User
    Join Date
    08-26-2012
    Location
    malaysia
    MS-Off Ver
    Excel 2003
    Posts
    84

    Re: Cells will become 0 automatically without changing formula

    Quote Originally Posted by :) Sixthsense :) View Post
    Try this...

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    how to include word automatically in E5. Example : 182 day

  11. #11
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Cells will become 0 automatically without changing formula

    Quote Originally Posted by redza View Post
    how to include word automatically in E5. Example : 182 day
    Try this...

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

  12. #12
    Forum Contributor
    Join Date
    06-26-2013
    Location
    LAX
    MS-Off Ver
    Excel 2007,Excel 2010
    Posts
    363

    Re: Cells will become 0 automatically without changing formula

    Sixth sense formula should work for you. Else wrap another if function in the original sixth sense formula


    Please Login or Register  to view this content.

  13. #13
    Registered User
    Join Date
    08-26-2012
    Location
    malaysia
    MS-Off Ver
    Excel 2003
    Posts
    84

    Re: Cells will become 0 automatically without changing formula

    Can or not in excel fix date based on year

    A1 (YEAR) 2004
    B1 (FROM) 1/1
    C1 (TO) 2/7

    I key in only 1/1 or 2/7 and the date change 1/1/2004 or 2/7/2004 based on year at cells A1

  14. #14
    Registered User
    Join Date
    08-26-2012
    Location
    malaysia
    MS-Off Ver
    Excel 2003
    Posts
    84

    Re: Cells will become 0 automatically without changing formula

    Quote Originally Posted by elayaz View Post
    sixth sense formula should work for you. Else wrap another if function in the original sixth sense formula


    Please Login or Register  to view this content.
    formula that is correct

  15. #15
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Cells will become 0 automatically without changing formula

    Quote Originally Posted by redza View Post
    Can or not in excel fix date based on year
    Since it is a new question please mark this thread as solved and start a new thread.

+ 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. Excel cells changing the colours automatically !!
    By binoykaladi in forum Excel General
    Replies: 2
    Last Post: 06-04-2012, 08:57 AM
  2. Replies: 1
    Last Post: 09-23-2009, 05:27 AM
  3. Automatically Changing fill colour in cells
    By frazzled in forum Excel General
    Replies: 3
    Last Post: 08-29-2009, 03:28 PM
  4. Changing color of date cells automatically
    By CLSSY56 in forum Excel General
    Replies: 20
    Last Post: 04-30-2008, 01:07 PM
  5. Calculating and changing cells automatically
    By Reign in forum Excel General
    Replies: 0
    Last Post: 07-31-2006, 03:04 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