Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
EXACT FUNCTION
Does anyone know if you can exclude blank cells when using the exact function
to compare two cells to see if they are duplicates? |
#2
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
EXACT FUNCTION
Lana wrote:
Does anyone know if you can exclude blank cells when using the exact function to compare two cells to see if they are duplicates? Two blank cells compared with EXACT() will result in "TRUE". One blank cell (and one non-blank cell) compared with EXACT() will result in "FALSE". What result are you looking for. |
#3
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
EXACT FUNCTION
Ho about:
=IF(AND(ISBLANK(A1),ISBLANK(B1)),NA(),EXACT(A1,B1) ) You could replace NA() by "" if this works better fro you best wishes -- Bernard V Liengme Microsoft Excel MVP http://people.stfx.ca/bliengme remove caps from email "Lana" wrote in message ... Does anyone know if you can exclude blank cells when using the exact function to compare two cells to see if they are duplicates? |
#4
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
EXACT FUNCTION
What do you mean? Not get TRUE if both are blank?
If yes, then one way is to use a formula like the one below; =IF(AND(A1="",B1=""),"",EXACT(A1,B1)) If you want to get blank if either one is blank then use OR instead of AND This will return a blank if both A1 and B1 are blank and return TRUE/False otherwise. "Lana" wrote: Does anyone know if you can exclude blank cells when using the exact function to compare two cells to see if they are duplicates? |
#5
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
EXACT FUNCTION
"Bernard Liengme" wrote...
Ho about: =IF(AND(ISBLANK(A1),ISBLANK(B1)),NA(),EXACT(A1,B1 )) .... Or simplify. =IF(COUNT(A1,B1)=2,EXACT(A1,B1),whatever) |
#6
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
EXACT FUNCTION
Or
=IF(COUNTA(A1,B1)=2,EXACT(A1,B1),whatever) if the entries are text No need to use EXACT to compare numbers, Harlan ! -- Bernard V Liengme Microsoft Excel MVP http://people.stfx.ca/bliengme remove caps from email "Harlan Grove" wrote in message ... "Bernard Liengme" wrote... Ho about: =IF(AND(ISBLANK(A1),ISBLANK(B1)),NA(),EXACT(A1,B 1)) ... Or simplify. =IF(COUNT(A1,B1)=2,EXACT(A1,B1),whatever) |
#7
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
EXACT FUNCTION
OTOH if the values are derived from formulas then isblank will fail and so
will counta so you might want to use =IF(AND(A1="",B1=""),NA(),EXACT(A1,B1)) -- Regards, Peo Sjoblom "Bernard Liengme" wrote in message ... Or =IF(COUNTA(A1,B1)=2,EXACT(A1,B1),whatever) if the entries are text No need to use EXACT to compare numbers, Harlan ! -- Bernard V Liengme Microsoft Excel MVP http://people.stfx.ca/bliengme remove caps from email "Harlan Grove" wrote in message ... "Bernard Liengme" wrote... Ho about: =IF(AND(ISBLANK(A1),ISBLANK(B1)),NA(),EXACT(A1, B1)) ... Or simplify. =IF(COUNT(A1,B1)=2,EXACT(A1,B1),whatever) |
#8
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
EXACT FUNCTION
Good point
-- Bernard V Liengme Microsoft Excel MVP http://people.stfx.ca/bliengme remove caps from email "Peo Sjoblom" wrote in message ... OTOH if the values are derived from formulas then isblank will fail and so will counta so you might want to use =IF(AND(A1="",B1=""),NA(),EXACT(A1,B1)) -- Regards, Peo Sjoblom "Bernard Liengme" wrote in message ... Or =IF(COUNTA(A1,B1)=2,EXACT(A1,B1),whatever) if the entries are text No need to use EXACT to compare numbers, Harlan ! -- Bernard V Liengme Microsoft Excel MVP http://people.stfx.ca/bliengme remove caps from email "Harlan Grove" wrote in message ... "Bernard Liengme" wrote... Ho about: =IF(AND(ISBLANK(A1),ISBLANK(B1)),NA(),EXACT(A1 ,B1)) ... Or simplify. =IF(COUNT(A1,B1)=2,EXACT(A1,B1),whatever) |
#9
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
EXACT FUNCTION
Or possibly even this way...
=IF(A1&B1="",NA(),EXACT(A1,B1)) -- Rick (MVP - Excel) "Peo Sjoblom" wrote in message ... OTOH if the values are derived from formulas then isblank will fail and so will counta so you might want to use =IF(AND(A1="",B1=""),NA(),EXACT(A1,B1)) -- Regards, Peo Sjoblom "Bernard Liengme" wrote in message ... Or =IF(COUNTA(A1,B1)=2,EXACT(A1,B1),whatever) if the entries are text No need to use EXACT to compare numbers, Harlan ! -- Bernard V Liengme Microsoft Excel MVP http://people.stfx.ca/bliengme remove caps from email "Harlan Grove" wrote in message ... "Bernard Liengme" wrote... Ho about: =IF(AND(ISBLANK(A1),ISBLANK(B1)),NA(),EXACT(A1 ,B1)) ... Or simplify. =IF(COUNT(A1,B1)=2,EXACT(A1,B1),whatever) |
#10
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
EXACT FUNCTION
"Rick Rothstein" wrote...
Or possibly even this way... =IF(A1&B1="",NA(),EXACT(A1,B1)) Produces #VALUE! errors if either cell is truly blank when transition formula evaluation is enabled. |
#11
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
EXACT FUNCTION
I have never used transition formula evaluation myself, so thanks for
pointing that out... I really appreciate it. -- Rick (MVP - Excel) "Harlan Grove" wrote in message ... "Rick Rothstein" wrote... Or possibly even this way... =IF(A1&B1="",NA(),EXACT(A1,B1)) Produces #VALUE! errors if either cell is truly blank when transition formula evaluation is enabled. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Routine to find exact Row matches in Col1 Col2 Col3 but exact offsetting numbers in Col4 | Excel Discussion (Misc queries) | |||
Fix EXACT function so it always compares in the same row. | Excel Worksheet Functions | |||
MOD function not returning exact zero | Excel Worksheet Functions | |||
Insert row to EXACT function | Excel Worksheet Functions | |||
EXACT function | Excel Discussion (Misc queries) |