Check if cells are different and ignore blanks & #n/a

lqorri

New Member
Joined
Feb 13, 2017
Messages
14
Hello Everyone,

I can really use your assistance with the below dilemma. I have tried incorporating, ISBLANK, Exact, iferror formulas but have had no luck.


NameSavingsNameSavingsNameSavingsNameSavingsNameSavings
John$25$25#N/AJohn$25#N/A#N/A

<tbody>
</tbody>

I need a formula that check all the columns with Name to see if the name John is consistent across while ignoring the errors as well as blanks. I would apply the same logic for the Savings column. If there is no formula, is there any way to see which text occurs the most often? For example, the name John is twice and that's what the output would be while the formula ignores the blanks and #N/A.

Thank you in advance.
 

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.
Apologies. I'm unable to delete the message. I had a response, but didn't see (until after I posted) that you wanted to ignore if error or blank.
 
Upvote 0
Try:

ABCDEFGHIJKLMNOPQ
1NameSavingsNameSavingsNameSavingsNameSavingsNameSavingsNameAll matchSavingsAll Match
2John$25 John$25 #N/AJohn$25 #N/A#N/AJohnTRUE25TRUE

<colgroup><col style="width: 25pxpx"><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>
Sheet3

Array Formulas
CellFormula
L2{=LOOKUP(2^14,MATCH(IF(MOD(COLUMN(A2:I2),2)=1,A2:I2,"xx"),A2:I2,0),A2:I2)}
M2{=IF(PRODUCT(IFERROR((A2:I2=L2)+(A2:I2="")+(MOD(COLUMN(A2:I2),2)=0),1)),TRUE)}
O2{=LOOKUP(2^14,MATCH(IF(MOD(COLUMN(B2:J2),2)=0,B2:J2,"xx"),B2:J2,0),B2:J2)}
P2{=IF(PRODUCT(IFERROR((B2:J2=O2)+(B2:J2="")+(MOD(COLUMN(B2:J2),2)=1),1)),TRUE)}

<thead>
</thead><tbody>
</tbody>
Entered with Ctrl+Shift+Enter. If entered correctly, Excel will surround with curly braces {}.
Note: Do not try and enter the {} manually yourself

<tbody>
</tbody>

The L2 formula finds the rightmost name, ignoring spaces and errors. The M2 formula checks to see if all of the values in the odd columns are that name, or a space, or an error. The O2:P2 formulas do the same for the savings.
 
Upvote 0

Forum statistics

Threads
1,214,641
Messages
6,120,692
Members
448,979
Latest member
DET4492

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