Formula Help: Only calculate when all cells have a value
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
add a comment |
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
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
add a comment |
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
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
microsoft-excel worksheet-function
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
add a comment |
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
add a comment |
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
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
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