Formula Help: Only calculate when all cells have a value












0















I need help with my formula. I only want it to calculate when both H1 and I1 have a value and then run formula.



I convert 24hr time to 00/00 which becomes text then it gets subtracted.



=IF(I5<>"",TEXT(I5,"00:00")-TEXT(H5,"00:00")+(H5>I5),"")



Please help.










share|improve this question























  • Can your please edit your question to give us sample data and the expected result?

    – cybernetic.nomad
    Jan 24 at 4:41













  • A text cannot be subtracted from a text. a number can. Can you please clarify what is the contents in I5 & H5 , is it a text or a value that is formatted as excel time..

    – p._phidot_
    Jan 24 at 4:51











  • Sorry about the confusion: I5 and H5 and - will have time in from 0000-2359. It is then converted to 00:00. I need to know when something enters a location at different time stamps. The problem that i have is that this is connected to a live dashboard that feeds from that data. Sometimes the times are entered in late and it throws off the dashboard. That why i want it to only calculate when both fields have a value .

    – Soko19
    Jan 25 at 0:45


















0















I need help with my formula. I only want it to calculate when both H1 and I1 have a value and then run formula.



I convert 24hr time to 00/00 which becomes text then it gets subtracted.



=IF(I5<>"",TEXT(I5,"00:00")-TEXT(H5,"00:00")+(H5>I5),"")



Please help.










share|improve this question























  • Can your please edit your question to give us sample data and the expected result?

    – cybernetic.nomad
    Jan 24 at 4:41













  • A text cannot be subtracted from a text. a number can. Can you please clarify what is the contents in I5 & H5 , is it a text or a value that is formatted as excel time..

    – p._phidot_
    Jan 24 at 4:51











  • Sorry about the confusion: I5 and H5 and - will have time in from 0000-2359. It is then converted to 00:00. I need to know when something enters a location at different time stamps. The problem that i have is that this is connected to a live dashboard that feeds from that data. Sometimes the times are entered in late and it throws off the dashboard. That why i want it to only calculate when both fields have a value .

    – Soko19
    Jan 25 at 0:45
















0












0








0








I need help with my formula. I only want it to calculate when both H1 and I1 have a value and then run formula.



I convert 24hr time to 00/00 which becomes text then it gets subtracted.



=IF(I5<>"",TEXT(I5,"00:00")-TEXT(H5,"00:00")+(H5>I5),"")



Please help.










share|improve this question














I need help with my formula. I only want it to calculate when both H1 and I1 have a value and then run formula.



I convert 24hr time to 00/00 which becomes text then it gets subtracted.



=IF(I5<>"",TEXT(I5,"00:00")-TEXT(H5,"00:00")+(H5>I5),"")



Please help.







microsoft-excel worksheet-function






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Jan 24 at 4:37









Soko19Soko19

1




1













  • Can your please edit your question to give us sample data and the expected result?

    – cybernetic.nomad
    Jan 24 at 4:41













  • A text cannot be subtracted from a text. a number can. Can you please clarify what is the contents in I5 & H5 , is it a text or a value that is formatted as excel time..

    – p._phidot_
    Jan 24 at 4:51











  • Sorry about the confusion: I5 and H5 and - will have time in from 0000-2359. It is then converted to 00:00. I need to know when something enters a location at different time stamps. The problem that i have is that this is connected to a live dashboard that feeds from that data. Sometimes the times are entered in late and it throws off the dashboard. That why i want it to only calculate when both fields have a value .

    – Soko19
    Jan 25 at 0:45





















  • Can your please edit your question to give us sample data and the expected result?

    – cybernetic.nomad
    Jan 24 at 4:41













  • A text cannot be subtracted from a text. a number can. Can you please clarify what is the contents in I5 & H5 , is it a text or a value that is formatted as excel time..

    – p._phidot_
    Jan 24 at 4:51











  • Sorry about the confusion: I5 and H5 and - will have time in from 0000-2359. It is then converted to 00:00. I need to know when something enters a location at different time stamps. The problem that i have is that this is connected to a live dashboard that feeds from that data. Sometimes the times are entered in late and it throws off the dashboard. That why i want it to only calculate when both fields have a value .

    – Soko19
    Jan 25 at 0:45



















Can your please edit your question to give us sample data and the expected result?

– cybernetic.nomad
Jan 24 at 4:41







Can your please edit your question to give us sample data and the expected result?

– cybernetic.nomad
Jan 24 at 4:41















A text cannot be subtracted from a text. a number can. Can you please clarify what is the contents in I5 & H5 , is it a text or a value that is formatted as excel time..

– p._phidot_
Jan 24 at 4:51





A text cannot be subtracted from a text. a number can. Can you please clarify what is the contents in I5 & H5 , is it a text or a value that is formatted as excel time..

– p._phidot_
Jan 24 at 4:51













Sorry about the confusion: I5 and H5 and - will have time in from 0000-2359. It is then converted to 00:00. I need to know when something enters a location at different time stamps. The problem that i have is that this is connected to a live dashboard that feeds from that data. Sometimes the times are entered in late and it throws off the dashboard. That why i want it to only calculate when both fields have a value .

– Soko19
Jan 25 at 0:45







Sorry about the confusion: I5 and H5 and - will have time in from 0000-2359. It is then converted to 00:00. I need to know when something enters a location at different time stamps. The problem that i have is that this is connected to a live dashboard that feeds from that data. Sometimes the times are entered in late and it throws off the dashboard. That why i want it to only calculate when both fields have a value .

– Soko19
Jan 25 at 0:45












0






active

oldest

votes











Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "3"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1397751%2fformula-help-only-calculate-when-all-cells-have-a-value%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes
















draft saved

draft discarded




















































Thanks for contributing an answer to Super User!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1397751%2fformula-help-only-calculate-when-all-cells-have-a-value%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

flock() on closed filehandle LOCK_FILE at /usr/bin/apt-mirror

Mangá

 ⁒  ․,‪⁊‑⁙ ⁖, ⁇‒※‌, †,⁖‗‌⁝    ‾‸⁘,‖⁔⁣,⁂‾
”‑,‥–,‬ ,⁀‹⁋‴⁑ ‒ ,‴⁋”‼ ⁨,‷⁔„ ‰′,‐‚ ‥‡‎“‷⁃⁨⁅⁣,⁔
⁇‘⁔⁡⁏⁌⁡‿‶‏⁨ ⁣⁕⁖⁨⁩⁥‽⁀  ‴‬⁜‟ ⁃‣‧⁕‮ …‍⁨‴ ⁩,⁚⁖‫ ,‵ ⁀,‮⁝‣‣ ⁑  ⁂– ․, ‾‽ ‏⁁“⁗‸ ‾… ‹‡⁌⁎‸‘ ‡⁏⁌‪ ‵⁛ ‎⁨ ―⁦⁤⁄⁕