+ Reply to Thread
Results 1 to 3 of 3

Replicating a time as a single digit

  1. #1
    Forum Contributor
    Join Date
    06-18-2013
    Location
    Barnsley
    MS-Off Ver
    Microsoft Office 365 ProPlus
    Posts
    104

    Replicating a time as a single digit

    Hi all,

    I hope you all well and keeping safe!

    I am not sure how to explain this problem in the title so please feel free to recommend if required.

    What I would like to do is represent someone's shift as a '1' in a single cell for the length of his shift. I used to have a formula for this but lost it somewhere, any help would be hugely appreciated.

    The attached document represents what I need and I am sure you will get more from that than my explanation.

    Thank you all in advance.

    Mark
    Attached Files Attached Files

  2. #2
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: Replicating a time as a single digit

    Please try at D2

    =(--TEXT(D$1,"h:m")>=$B2)*(--TEXT(D$1,"h:m")<$C2)

    and custom format 0;; to hide Zero

    or
    =IF((--TEXT(D$1,"h:m")>=$B2)*(--TEXT(D$1,"h:m")<$C2),1,"")
    Attached Files Attached Files

  3. #3
    Forum Contributor
    Join Date
    06-18-2013
    Location
    Barnsley
    MS-Off Ver
    Microsoft Office 365 ProPlus
    Posts
    104

    Re: Replicating a time as a single digit

    Thank you Bo, both work a treat

    Thanks again Mark

+ 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. Color a single digit in a mult-digit number cell
    By Phyllis in forum Excel General
    Replies: 8
    Last Post: 09-30-2022, 04:22 PM
  2. [SOLVED] How to subtract single cells with double digits into a single digit of a single cell.
    By greenfox74 in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 03-11-2021, 02:05 AM
  3. Google Sheets: Sum each digit in Cell to Double and Single Digit
    By rbhapkar in forum For Other Platforms(Mac, Google Docs, Mobile OS etc)
    Replies: 11
    Last Post: 12-27-2019, 08:41 AM
  4. Google Sheets: Sum each digit in Cell to Double and Single Digit
    By rbhapkar in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-24-2019, 01:47 AM
  5. Need formula to extract a single digit per column from time data
    By purelutz in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 05-22-2017, 10:29 PM
  6. [SOLVED] convert a time in minutes to a single digit
    By bzl in forum Excel General
    Replies: 5
    Last Post: 11-18-2015, 06:30 AM
  7. [SOLVED] LOTTERY FILTER#4, Find if 1 Digit Sum of 2 Digit or 3 Digit, Single Cell w/ dash
    By david gonzalez in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-08-2014, 12:57 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