Combining multiple excel formulas











up vote
0
down vote

favorite












I have three different formulas that I would like to combine into one formula;



In cell I2 : =IF(ISNA(MATCH(CONCATENATE(A2,D2),INTRAFREQNCELL!E:E,0)),"NO","YES")



In cell J2 : =IF(ISNA(MATCH(CONCATENATE(A2,D2),INTERFREQNCELL!E:E,0)),"NO","YES")



In cell K2 : =IF(I2=J2,"NO","YES")



The formula in cell I2 and cell J2 look for matches in two separate sheets and return a YES if there is a match, or NO if there is no match.



The formula in cell K2 returns a YES if cell I2 and cell J2 match.



What I want to do is to get rid of columns I and J by combining the formula in all three cells.



I've tried using the INDEX function to do this but it didn't work. Is this possible?










share|improve this question






















  • Formula in Cell I2 & J2 are identical therefore use any one and after that Formula in Cell K2 is not required !!
    – Rajesh S
    Dec 4 at 9:52










  • Y don't you share some sample data with us and so that we just fix the issue in better way.
    – Rajesh S
    Dec 4 at 9:53






  • 1




    @RajeshS they are looking at different sheets. Cell I2 is looking at INTRAfreqncell and cell J2 is looking at INTERfreqncell
    – aab
    Dec 4 at 10:19










  • @fixer1234 it's not a typo, I2 is looking at INTRAfreqncell and cell J2 is looking at INTERfreqncell
    – aab
    Dec 4 at 10:24










  • ,, yeah in first look both sheet names looks similar !! ☺
    – Rajesh S
    Dec 4 at 10:47

















up vote
0
down vote

favorite












I have three different formulas that I would like to combine into one formula;



In cell I2 : =IF(ISNA(MATCH(CONCATENATE(A2,D2),INTRAFREQNCELL!E:E,0)),"NO","YES")



In cell J2 : =IF(ISNA(MATCH(CONCATENATE(A2,D2),INTERFREQNCELL!E:E,0)),"NO","YES")



In cell K2 : =IF(I2=J2,"NO","YES")



The formula in cell I2 and cell J2 look for matches in two separate sheets and return a YES if there is a match, or NO if there is no match.



The formula in cell K2 returns a YES if cell I2 and cell J2 match.



What I want to do is to get rid of columns I and J by combining the formula in all three cells.



I've tried using the INDEX function to do this but it didn't work. Is this possible?










share|improve this question






















  • Formula in Cell I2 & J2 are identical therefore use any one and after that Formula in Cell K2 is not required !!
    – Rajesh S
    Dec 4 at 9:52










  • Y don't you share some sample data with us and so that we just fix the issue in better way.
    – Rajesh S
    Dec 4 at 9:53






  • 1




    @RajeshS they are looking at different sheets. Cell I2 is looking at INTRAfreqncell and cell J2 is looking at INTERfreqncell
    – aab
    Dec 4 at 10:19










  • @fixer1234 it's not a typo, I2 is looking at INTRAfreqncell and cell J2 is looking at INTERfreqncell
    – aab
    Dec 4 at 10:24










  • ,, yeah in first look both sheet names looks similar !! ☺
    – Rajesh S
    Dec 4 at 10:47















up vote
0
down vote

favorite









up vote
0
down vote

favorite











I have three different formulas that I would like to combine into one formula;



In cell I2 : =IF(ISNA(MATCH(CONCATENATE(A2,D2),INTRAFREQNCELL!E:E,0)),"NO","YES")



In cell J2 : =IF(ISNA(MATCH(CONCATENATE(A2,D2),INTERFREQNCELL!E:E,0)),"NO","YES")



In cell K2 : =IF(I2=J2,"NO","YES")



The formula in cell I2 and cell J2 look for matches in two separate sheets and return a YES if there is a match, or NO if there is no match.



The formula in cell K2 returns a YES if cell I2 and cell J2 match.



What I want to do is to get rid of columns I and J by combining the formula in all three cells.



I've tried using the INDEX function to do this but it didn't work. Is this possible?










share|improve this question













I have three different formulas that I would like to combine into one formula;



In cell I2 : =IF(ISNA(MATCH(CONCATENATE(A2,D2),INTRAFREQNCELL!E:E,0)),"NO","YES")



In cell J2 : =IF(ISNA(MATCH(CONCATENATE(A2,D2),INTERFREQNCELL!E:E,0)),"NO","YES")



In cell K2 : =IF(I2=J2,"NO","YES")



The formula in cell I2 and cell J2 look for matches in two separate sheets and return a YES if there is a match, or NO if there is no match.



The formula in cell K2 returns a YES if cell I2 and cell J2 match.



What I want to do is to get rid of columns I and J by combining the formula in all three cells.



I've tried using the INDEX function to do this but it didn't work. Is this possible?







microsoft-excel worksheet-function microsoft-excel-2016






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Dec 4 at 9:36









aab

1032




1032












  • Formula in Cell I2 & J2 are identical therefore use any one and after that Formula in Cell K2 is not required !!
    – Rajesh S
    Dec 4 at 9:52










  • Y don't you share some sample data with us and so that we just fix the issue in better way.
    – Rajesh S
    Dec 4 at 9:53






  • 1




    @RajeshS they are looking at different sheets. Cell I2 is looking at INTRAfreqncell and cell J2 is looking at INTERfreqncell
    – aab
    Dec 4 at 10:19










  • @fixer1234 it's not a typo, I2 is looking at INTRAfreqncell and cell J2 is looking at INTERfreqncell
    – aab
    Dec 4 at 10:24










  • ,, yeah in first look both sheet names looks similar !! ☺
    – Rajesh S
    Dec 4 at 10:47




















  • Formula in Cell I2 & J2 are identical therefore use any one and after that Formula in Cell K2 is not required !!
    – Rajesh S
    Dec 4 at 9:52










  • Y don't you share some sample data with us and so that we just fix the issue in better way.
    – Rajesh S
    Dec 4 at 9:53






  • 1




    @RajeshS they are looking at different sheets. Cell I2 is looking at INTRAfreqncell and cell J2 is looking at INTERfreqncell
    – aab
    Dec 4 at 10:19










  • @fixer1234 it's not a typo, I2 is looking at INTRAfreqncell and cell J2 is looking at INTERfreqncell
    – aab
    Dec 4 at 10:24










  • ,, yeah in first look both sheet names looks similar !! ☺
    – Rajesh S
    Dec 4 at 10:47


















Formula in Cell I2 & J2 are identical therefore use any one and after that Formula in Cell K2 is not required !!
– Rajesh S
Dec 4 at 9:52




Formula in Cell I2 & J2 are identical therefore use any one and after that Formula in Cell K2 is not required !!
– Rajesh S
Dec 4 at 9:52












Y don't you share some sample data with us and so that we just fix the issue in better way.
– Rajesh S
Dec 4 at 9:53




Y don't you share some sample data with us and so that we just fix the issue in better way.
– Rajesh S
Dec 4 at 9:53




1




1




@RajeshS they are looking at different sheets. Cell I2 is looking at INTRAfreqncell and cell J2 is looking at INTERfreqncell
– aab
Dec 4 at 10:19




@RajeshS they are looking at different sheets. Cell I2 is looking at INTRAfreqncell and cell J2 is looking at INTERfreqncell
– aab
Dec 4 at 10:19












@fixer1234 it's not a typo, I2 is looking at INTRAfreqncell and cell J2 is looking at INTERfreqncell
– aab
Dec 4 at 10:24




@fixer1234 it's not a typo, I2 is looking at INTRAfreqncell and cell J2 is looking at INTERfreqncell
– aab
Dec 4 at 10:24












,, yeah in first look both sheet names looks similar !! ☺
– Rajesh S
Dec 4 at 10:47






,, yeah in first look both sheet names looks similar !! ☺
– Rajesh S
Dec 4 at 10:47












1 Answer
1






active

oldest

votes

















up vote
2
down vote



accepted










There isn't enough information to see if your formulas work properly, so I'll just address combining them.



In general, if a formula contains a reference to the result in another cell, you can usually just replace the reference with the formula (excluding the initial =) in the referenced cell, as long as it's not an array formula (displayed with curly braces around it).



Doing that with K2 would yield:



=IF(IF(ISNA(MATCH(CONCATENATE(A2,D2),INTRAFREQNCELL!E:E,0)),"NO","YES")=IF(ISNA(MATCH(CONCATENATE(A2,D2),INTERFREQNCELL!E:E,0)),"NO","YES"),"NO","YES")


However, you can do better than that with your formulas because each one tests for a True/False condition, and then just displays the result as Yes/No, and you're using the same logical direction for each one. So you can simplify what's copied from I2 and J2 to just compare the True/False result:



=IF(ISNA(MATCH(CONCATENATE(A2,D2),INTRAFREQNCELL!E:E,0))=ISNA(MATCH(CONCATENATE(A2,D2),INTERFREQNCELL!E:E,0)),"NO","YES")


Since your output is just No/Yes, you could simplify it even more if True/False would suffice rather than Yes/No. You can just use the logical result of the comparison.



It appears your No and Yes may be reversed, showing "No" if I2 and J2 match and "Yes" if they don't). So just test for = or <>, depending on which you want to show as "True":



=ISNA(MATCH(CONCATENATE(A2,D2),INTRAFREQNCELL!E:E,0))=ISNA(MATCH(CONCATENATE(A2,D2),INTERFREQNCELL!E:E,0))


or



=ISNA(MATCH(CONCATENATE(A2,D2),INTRAFREQNCELL!E:E,0))<>ISNA(MATCH(CONCATENATE(A2,D2),INTERFREQNCELL!E:E,0))





share|improve this answer























  • #Fix1234,, it's working you get 10 ☺
    – Rajesh S
    Dec 4 at 10:55













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%2f1380638%2fcombining-multiple-excel-formulas%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes








up vote
2
down vote



accepted










There isn't enough information to see if your formulas work properly, so I'll just address combining them.



In general, if a formula contains a reference to the result in another cell, you can usually just replace the reference with the formula (excluding the initial =) in the referenced cell, as long as it's not an array formula (displayed with curly braces around it).



Doing that with K2 would yield:



=IF(IF(ISNA(MATCH(CONCATENATE(A2,D2),INTRAFREQNCELL!E:E,0)),"NO","YES")=IF(ISNA(MATCH(CONCATENATE(A2,D2),INTERFREQNCELL!E:E,0)),"NO","YES"),"NO","YES")


However, you can do better than that with your formulas because each one tests for a True/False condition, and then just displays the result as Yes/No, and you're using the same logical direction for each one. So you can simplify what's copied from I2 and J2 to just compare the True/False result:



=IF(ISNA(MATCH(CONCATENATE(A2,D2),INTRAFREQNCELL!E:E,0))=ISNA(MATCH(CONCATENATE(A2,D2),INTERFREQNCELL!E:E,0)),"NO","YES")


Since your output is just No/Yes, you could simplify it even more if True/False would suffice rather than Yes/No. You can just use the logical result of the comparison.



It appears your No and Yes may be reversed, showing "No" if I2 and J2 match and "Yes" if they don't). So just test for = or <>, depending on which you want to show as "True":



=ISNA(MATCH(CONCATENATE(A2,D2),INTRAFREQNCELL!E:E,0))=ISNA(MATCH(CONCATENATE(A2,D2),INTERFREQNCELL!E:E,0))


or



=ISNA(MATCH(CONCATENATE(A2,D2),INTRAFREQNCELL!E:E,0))<>ISNA(MATCH(CONCATENATE(A2,D2),INTERFREQNCELL!E:E,0))





share|improve this answer























  • #Fix1234,, it's working you get 10 ☺
    – Rajesh S
    Dec 4 at 10:55

















up vote
2
down vote



accepted










There isn't enough information to see if your formulas work properly, so I'll just address combining them.



In general, if a formula contains a reference to the result in another cell, you can usually just replace the reference with the formula (excluding the initial =) in the referenced cell, as long as it's not an array formula (displayed with curly braces around it).



Doing that with K2 would yield:



=IF(IF(ISNA(MATCH(CONCATENATE(A2,D2),INTRAFREQNCELL!E:E,0)),"NO","YES")=IF(ISNA(MATCH(CONCATENATE(A2,D2),INTERFREQNCELL!E:E,0)),"NO","YES"),"NO","YES")


However, you can do better than that with your formulas because each one tests for a True/False condition, and then just displays the result as Yes/No, and you're using the same logical direction for each one. So you can simplify what's copied from I2 and J2 to just compare the True/False result:



=IF(ISNA(MATCH(CONCATENATE(A2,D2),INTRAFREQNCELL!E:E,0))=ISNA(MATCH(CONCATENATE(A2,D2),INTERFREQNCELL!E:E,0)),"NO","YES")


Since your output is just No/Yes, you could simplify it even more if True/False would suffice rather than Yes/No. You can just use the logical result of the comparison.



It appears your No and Yes may be reversed, showing "No" if I2 and J2 match and "Yes" if they don't). So just test for = or <>, depending on which you want to show as "True":



=ISNA(MATCH(CONCATENATE(A2,D2),INTRAFREQNCELL!E:E,0))=ISNA(MATCH(CONCATENATE(A2,D2),INTERFREQNCELL!E:E,0))


or



=ISNA(MATCH(CONCATENATE(A2,D2),INTRAFREQNCELL!E:E,0))<>ISNA(MATCH(CONCATENATE(A2,D2),INTERFREQNCELL!E:E,0))





share|improve this answer























  • #Fix1234,, it's working you get 10 ☺
    – Rajesh S
    Dec 4 at 10:55















up vote
2
down vote



accepted







up vote
2
down vote



accepted






There isn't enough information to see if your formulas work properly, so I'll just address combining them.



In general, if a formula contains a reference to the result in another cell, you can usually just replace the reference with the formula (excluding the initial =) in the referenced cell, as long as it's not an array formula (displayed with curly braces around it).



Doing that with K2 would yield:



=IF(IF(ISNA(MATCH(CONCATENATE(A2,D2),INTRAFREQNCELL!E:E,0)),"NO","YES")=IF(ISNA(MATCH(CONCATENATE(A2,D2),INTERFREQNCELL!E:E,0)),"NO","YES"),"NO","YES")


However, you can do better than that with your formulas because each one tests for a True/False condition, and then just displays the result as Yes/No, and you're using the same logical direction for each one. So you can simplify what's copied from I2 and J2 to just compare the True/False result:



=IF(ISNA(MATCH(CONCATENATE(A2,D2),INTRAFREQNCELL!E:E,0))=ISNA(MATCH(CONCATENATE(A2,D2),INTERFREQNCELL!E:E,0)),"NO","YES")


Since your output is just No/Yes, you could simplify it even more if True/False would suffice rather than Yes/No. You can just use the logical result of the comparison.



It appears your No and Yes may be reversed, showing "No" if I2 and J2 match and "Yes" if they don't). So just test for = or <>, depending on which you want to show as "True":



=ISNA(MATCH(CONCATENATE(A2,D2),INTRAFREQNCELL!E:E,0))=ISNA(MATCH(CONCATENATE(A2,D2),INTERFREQNCELL!E:E,0))


or



=ISNA(MATCH(CONCATENATE(A2,D2),INTRAFREQNCELL!E:E,0))<>ISNA(MATCH(CONCATENATE(A2,D2),INTERFREQNCELL!E:E,0))





share|improve this answer














There isn't enough information to see if your formulas work properly, so I'll just address combining them.



In general, if a formula contains a reference to the result in another cell, you can usually just replace the reference with the formula (excluding the initial =) in the referenced cell, as long as it's not an array formula (displayed with curly braces around it).



Doing that with K2 would yield:



=IF(IF(ISNA(MATCH(CONCATENATE(A2,D2),INTRAFREQNCELL!E:E,0)),"NO","YES")=IF(ISNA(MATCH(CONCATENATE(A2,D2),INTERFREQNCELL!E:E,0)),"NO","YES"),"NO","YES")


However, you can do better than that with your formulas because each one tests for a True/False condition, and then just displays the result as Yes/No, and you're using the same logical direction for each one. So you can simplify what's copied from I2 and J2 to just compare the True/False result:



=IF(ISNA(MATCH(CONCATENATE(A2,D2),INTRAFREQNCELL!E:E,0))=ISNA(MATCH(CONCATENATE(A2,D2),INTERFREQNCELL!E:E,0)),"NO","YES")


Since your output is just No/Yes, you could simplify it even more if True/False would suffice rather than Yes/No. You can just use the logical result of the comparison.



It appears your No and Yes may be reversed, showing "No" if I2 and J2 match and "Yes" if they don't). So just test for = or <>, depending on which you want to show as "True":



=ISNA(MATCH(CONCATENATE(A2,D2),INTRAFREQNCELL!E:E,0))=ISNA(MATCH(CONCATENATE(A2,D2),INTERFREQNCELL!E:E,0))


or



=ISNA(MATCH(CONCATENATE(A2,D2),INTRAFREQNCELL!E:E,0))<>ISNA(MATCH(CONCATENATE(A2,D2),INTERFREQNCELL!E:E,0))






share|improve this answer














share|improve this answer



share|improve this answer








edited Dec 4 at 18:13

























answered Dec 4 at 10:25









fixer1234

17.7k144581




17.7k144581












  • #Fix1234,, it's working you get 10 ☺
    – Rajesh S
    Dec 4 at 10:55




















  • #Fix1234,, it's working you get 10 ☺
    – Rajesh S
    Dec 4 at 10:55


















#Fix1234,, it's working you get 10 ☺
– Rajesh S
Dec 4 at 10:55






#Fix1234,, it's working you get 10 ☺
– Rajesh S
Dec 4 at 10:55




















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.





Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


Please pay close attention to the following guidance:


  • 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%2f1380638%2fcombining-multiple-excel-formulas%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

"Incorrect syntax near the keyword 'ON'. (on update cascade, on delete cascade,)

Alcedinidae

RAC Tourist Trophy