+ Reply to Thread
Results 1 to 5 of 5

Formula is counting cell if nothing is entered

  1. #1
    Jennifer
    Guest

    Formula is counting cell if nothing is entered

    I have made a timesheet that will automatically round up to the nearest
    quarter hour, but if no time is entered the round column stays as 12:00 am
    and calcualtes as such. The first col. has the actual time then the second
    col. has the formula =round(E12*24/0.25,0)*0.25/24 which works to round the
    time, but, as I said, if nothing is entered in the time, the round col. shows
    12:00 am.

  2. #2
    B. R.Ramachandran
    Guest

    RE: Formula is counting cell if nothing is entered

    Hi

    Try one of the following modifications to your formula:

    =IF(E12="","",ROUND(E12*24/0.25,0)*0.25/24)
    =IF(ISBLANK(E12),"",ROUND(E12*24/0.25,0)*0.25/24)

    Regards,
    B. R. Ramachandran


    "Jennifer" wrote:

    > I have made a timesheet that will automatically round up to the nearest
    > quarter hour, but if no time is entered the round column stays as 12:00 am
    > and calcualtes as such. The first col. has the actual time then the second
    > col. has the formula =round(E12*24/0.25,0)*0.25/24 which works to round the
    > time, but, as I said, if nothing is entered in the time, the round col. shows
    > 12:00 am.


  3. #3
    Jennifer
    Guest

    RE: Formula is counting cell if nothing is entered

    I have tried both of those before and it comes back with a "Incorrect time
    format" box and indicates to cancel or retry...

    "B. R.Ramachandran" wrote:

    > Hi
    >
    > Try one of the following modifications to your formula:
    >
    > =IF(E12="","",ROUND(E12*24/0.25,0)*0.25/24)
    > =IF(ISBLANK(E12),"",ROUND(E12*24/0.25,0)*0.25/24)
    >
    > Regards,
    > B. R. Ramachandran
    >
    >
    > "Jennifer" wrote:
    >
    > > I have made a timesheet that will automatically round up to the nearest
    > > quarter hour, but if no time is entered the round column stays as 12:00 am
    > > and calcualtes as such. The first col. has the actual time then the second
    > > col. has the formula =round(E12*24/0.25,0)*0.25/24 which works to round the
    > > time, but, as I said, if nothing is entered in the time, the round col. shows
    > > 12:00 am.


  4. #4
    Gord Dibben
    Guest

    Re: Formula is counting cell if nothing is entered

    Jennifer

    Trap the error in your formula.

    =IF(E12="","",ROUND(E12*24/0.25,0)*0.25/24)

    If E12 is blank then nothing, otherwise do the calculation.


    Gord Dibben Excel MVP

    On Wed, 14 Dec 2005 12:16:39 -0800, "Jennifer"
    <[email protected]> wrote:

    >I have made a timesheet that will automatically round up to the nearest
    >quarter hour, but if no time is entered the round column stays as 12:00 am
    >and calcualtes as such. The first col. has the actual time then the second
    >col. has the formula =round(E12*24/0.25,0)*0.25/24 which works to round the
    >time, but, as I said, if nothing is entered in the time, the round col. shows
    >12:00 am.


  5. #5
    B. R.Ramachandran
    Guest

    RE: Formula is counting cell if nothing is entered

    Hi,

    I did try out the formulas before suggesting them to you. They do work.
    Make sure that the cell(s) containing the formula is(are) formatted for
    "Time" as "1:30 PM".

    Regards,
    B. R. Ramachandran

    "Jennifer" wrote:

    > I have tried both of those before and it comes back with a "Incorrect time
    > format" box and indicates to cancel or retry...
    >
    > "B. R.Ramachandran" wrote:
    >
    > > Hi
    > >
    > > Try one of the following modifications to your formula:
    > >
    > > =IF(E12="","",ROUND(E12*24/0.25,0)*0.25/24)
    > > =IF(ISBLANK(E12),"",ROUND(E12*24/0.25,0)*0.25/24)
    > >
    > > Regards,
    > > B. R. Ramachandran
    > >
    > >
    > > "Jennifer" wrote:
    > >
    > > > I have made a timesheet that will automatically round up to the nearest
    > > > quarter hour, but if no time is entered the round column stays as 12:00 am
    > > > and calcualtes as such. The first col. has the actual time then the second
    > > > col. has the formula =round(E12*24/0.25,0)*0.25/24 which works to round the
    > > > time, but, as I said, if nothing is entered in the time, the round col. shows
    > > > 12:00 am.


+ Reply to Thread

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.6.0 RC 1