check true and false if error on cell

sksanjeev786

Well-known Member
Joined
Aug 5, 2020
Messages
996
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
Hi Team,

Need help on below data in column N3, O3 i need True if the data (C3,I3) are same

book2
ABCDEFGHIJKLMNO
1POE Diapers70#DIV/0!11%POE Diapers7029%11%TRUETRUE#DIV/0!TRUE
2Non POE Diapers37732%11%Non POE Diapers37732%11%TRUETRUETRUETRUE
3Usual LD pack size Reg0#DIV/0!#DIV/0!Usual LD pack size Reg0#DIV/0!#DIV/0!TRUETRUE#DIV/0!#DIV/0!
4Usual LD pack size XL0#DIV/0!#DIV/0!Usual LD pack size XL0#DIV/0!#DIV/0!TRUETRUE#DIV/0!#DIV/0!
5
6
7Need True on yellow
8Need False on orange
Sheet1
Cell Formulas
RangeFormula
L1:O4L1=A1=G1


Regards,
Sanjeev
 

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.
Hi Sksanjeev786,

Assuming a #DIV/0 should always trigger a FALSE then:
Excel Formula:
=IFERROR(A1=G1,FALSE)
 
Upvote 0
Based on the example, try this in N1
Excel Formula:
=IFERROR(C1=I1,NOT(COUNT(C1,I1)))
Note that with the exception of #N/A! there is no simple way of identifying the actual error in the cell. If there are errors other than #DIV/0! or if there are text entries instead of numbers then it may still give incorrect results.
Assuming a #DIV/0 should always trigger a FALSE then:
Assuming that you didn't read the comment in N7 ?
 
Upvote 0
Based on the example, try this in N1
Excel Formula:
=IFERROR(C1=I1,NOT(COUNT(C1,I1)))
Note that with the exception of #N/A! there is no simple way of identifying the actual error in the cell. If there are errors other than #DIV/0! or if there are text entries instead of numbers then it may still give incorrect results.

Assuming that you didn't read the comment in N7 ?


Thanks Jason yes I have check if we getting #NA or other error it comes as True.
as of now, I am getting this error #Div/0! thanks for your time on this.

Will check later if we have a #NA error and can diferrencaite on that.
Thanks.
Sanjeev.
 
Upvote 0
Will check later if we have a #NA error and can diferrencaite on that.
I think that you may have misunderstood what I meant, to try and make it a bit clearer.

The formula that I have suggested will assume that anything which is not a number is a #DIV/0! error. If you have #N/A! and #Div/0! then it will return TRUE.

It can be rewritten to show FALSE if it is needed, but only for #N/A! errors by using either the IFNA or ISNA functions.

For any other errors, #REF, #NAME?, #VALUE!, #SPILL, it is not possible to differentiate between them and #DIV/0! so comparing 2 different errors in this case will always return TRUE with simple formulas.

It might be possible to compare different results in such case by using the formula that returns the error or with a UDF (vba function) but a lot more information would be needed in order to consider attempting that.
 
Upvote 0
I think that you may have misunderstood what I meant, to try and make it a bit clearer.

The formula that I have suggested will assume that anything which is not a number is a #DIV/0! error. If you have #N/A! and #Div/0! then it will return TRUE.

It can be rewritten to show FALSE if it is needed, but only for #N/A! errors by using either the IFNA or ISNA functions.

For any other errors, #REF, #NAME?, #VALUE!, #SPILL, it is not possible to differentiate between them and #DIV/0! so comparing 2 different errors in this case will always return TRUE with simple formulas.

It might be possible to compare different results in such case by using the formula that returns the error or with a UDF (vba function) but a lot more information would be needed in order to consider attempting that.

Thanks for the detailed information Jason :)

I Will try to implement the things you have mentioned above and will get back to you if need any clarifications:)
 
Upvote 0

Forum statistics

Threads
1,223,910
Messages
6,175,320
Members
452,635
Latest member
laura12345

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top