Cell Formatting

%3CLINGO-SUB%20id%3D%22lingo-sub-3081964%22%20slang%3D%22en-US%22%3ECell%20Formatting%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3081964%22%20slang%3D%22en-US%22%3E%3CP%3EHello%2C%20I%20put%20a%20custom%20format%20to%20a%20cell%20of%20%22mm%2Fdd%20hh%3Amm%3Ass%22%2C%20to%20count%20the%20time%20from%20one%20date%20to%20another%2C%20the%20problem%20arises%20when%20it%20returns%20the%20response%20with%20a%20month%20more%20in%20time%2C%20how%20can%20I%20fix%20it%3F%20%2C%20Thanks.%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Excel1.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F343406iD90D024699632852%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22Excel1.png%22%20alt%3D%22Excel1.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-3081964%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExcel%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EFormulas%20and%20Functions%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-3082238%22%20slang%3D%22en-US%22%3ERe%3A%20Cell%20Formatting%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3082238%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1290296%22%20target%3D%22_blank%22%3E%40Anotny_Junes%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIf%20you%20apply%20it%20to%20datetime%20difference%2C%20perhaps%20you%20mean%20something%20like%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22image.png%22%20style%3D%22width%3A%20467px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F343413i0D020ECA0561177C%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22image.png%22%20alt%3D%22image.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E
New Contributor

Hello, I put a custom format to a cell of "mm/dd hh:mm:ss", to count the time from one date to another, the problem arises when it returns the response with a month more in time, how can I fix it? , Thanks.Excel1.png

2 Replies

@Anotny_Junes 

If you apply it to datetime difference, perhaps you mean something like

image.png

This customization is good, the problem is when the time difference is 7 months or years, then it would be many hours, Thanks for the help.