+ Reply to Thread
Results 1 to 6 of 6

formula to ignore blank cells

  1. #1
    Registered User
    Join Date
    02-24-2022
    Location
    wigan england
    MS-Off Ver
    office 365
    Posts
    21

    formula to ignore blank cells

    hi, I have a sheet that I subtract start time from previous days end time. the problem occurs when the previous day is a rest day and therefore a blank cell. in the sheet attached my formula in column D is as such: =b5-c4.

    so on my sheet there is no data for sat and sun and my next shift worked is on the 15/04/2024.
    so I want the formula to read as: =b11-c8 (therefore ignoring blank cells)

    I then have a separate formula in column E that converts to hours

    Thanks

    Phil
    Attached Files Attached Files
    Last edited by crompton1980; 05-15-2024 at 12:59 AM. Reason: incorect file attatched

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,813

    Re: formula to ignore blank cells

    That file has one sheet and no data in it. Not the most helpful sample
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Registered User
    Join Date
    02-24-2022
    Location
    wigan england
    MS-Off Ver
    office 365
    Posts
    21

    Re: formula to ignore blank cells

    apologies, not sure what went wrong. I have edited the post, so hopefully the sheet should be visible

    Phil

  4. #4
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,813

    Re: formula to ignore blank cells

    Try, copied down:

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


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

  5. #5
    Registered User
    Join Date
    02-24-2022
    Location
    wigan england
    MS-Off Ver
    office 365
    Posts
    21

    Re: formula to ignore blank cells

    The above works perfect starting from D5 and E5. thank you so much for your patience.

    Phil

  6. #6
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,813

    Re: formula to ignore blank cells

    You're welcome.

    The above works perfect starting from D5 and E5.
    Oops, that's what I meant .

    thank you so much for your patience.
    No problem at all. No patience needed. It can take way longer to get some useful information. Glad it helped.


    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

    Also, you may not be aware that you can thank those who have helped you by clicking the small star icon (Next to Add Reputation) located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of those who helped.

+ 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. [SOLVED] IF formula but ignore blank cells
    By Ziggyboo84 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-14-2024, 11:10 AM
  2. [SOLVED] IF formula to ignore blank cells?
    By Elijah in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-02-2019, 01:31 AM
  3. [SOLVED] Formula to ignore blank cells with SUM?
    By Mr.Castle in forum Excel General
    Replies: 7
    Last Post: 08-20-2018, 05:12 PM
  4. CSV - Ignore Blank Formula Cells
    By almo136 in forum Excel General
    Replies: 1
    Last Post: 11-06-2017, 08:04 AM
  5. [SOLVED] Ignore blank cells with formulas or ignore NA() in a formula
    By guiismiti in forum Excel Charting & Pivots
    Replies: 5
    Last Post: 03-24-2016, 02:13 PM
  6. Ignore blank cells using formula
    By tcubed13t in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-30-2014, 09:12 PM
  7. Getting formula to ignore blank cells
    By CDM in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-23-2006, 06:07 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