+ Reply to Thread
Results 1 to 4 of 4

If blank ignore formula

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

    If blank ignore formula

    Looking for help with the following:-

    i have the following formula which looks at a colleagues start and finish times and calculates how many hours he/she has worked within different time/pay brackets. The formula works as it should however if no times are entered into shift start and finish times it is still returning a number instead of blank.

    i have uploaded the sheet for you to play around with.

    example:-

    =MAX((MIN($R$5+($R$5<$R$4),F5+(F5<=E5))-MAX($R$4,E5))*24,0) (this formula is in cell h5 - it looks at the shift band time zone within cells R4&R5 and then looks at the colleague start and finish times in cells E5&F5 then calculates how many hours colleague has worked between those times.)

    as you can tell by the attached sheet, Tue through to Sat is displaying data in cells H,I&J (day,late&night prem) when it should be blank.
    this appears to be something to do with the first part of the search in column R?

    Thanks

    Phil
    Attached Files Attached Files

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2405 (Windows 11 23H2 64-bit)
    Posts
    81,448

    Re: If blank ignore formula

    Something like this in H11:

    =IF(COUNTIF(C11:F11,"")=4,"",MAX((MIN($R$5+($R$5<$R$4),F11+(F11<=E11))-MAX($R$4,E11))*24,0))

    and in H12:

    =IF(H11="","",H11*$U$4)
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

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

    Re: If blank ignore formula

    Thanks again, you have been really helpful. that works really well

    enjoy your day

    Phil

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2405 (Windows 11 23H2 64-bit)
    Posts
    81,448

    Re: If blank ignore formula

    No worries.

    If you have not already done so, you may not be aware that you can thank those who have helped you by clicking the small star icon 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 all those who offered help.

+ 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 to ignore blank cells?
    By Elijah in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-02-2019, 01:31 AM
  2. Ignore Formula if Cell is blank
    By Vulpecula in forum Excel General
    Replies: 2
    Last Post: 03-06-2018, 01:36 AM
  3. CSV - Ignore Blank Formula Cells
    By almo136 in forum Excel General
    Replies: 1
    Last Post: 11-06-2017, 08:04 AM
  4. [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
  5. Ignore blank cells using formula
    By tcubed13t in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-30-2014, 09:12 PM
  6. Ignore Cell if it is blank (but still has formula)
    By thelegazy in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-25-2013, 12:30 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