Finding occurance in formula when NOT A1

surkdidat

Well-known Member
Joined
Oct 1, 2011
Messages
582
Office Version
  1. 365
** PLease remove, have just self-solved**
I am using the following formula to extract a list of all values that are currently in cell A1 (This is a dopdown of about 10 different values) - and works fine.

However, is there an easy way to adapt this to do the reverse? (So wil perform the action if it IS NOT the same value as A1?


Excel Formula:
=INDEX('In Progress'!$A$2:$A$50,SMALL(IF(IFERROR(FIND($A$1,'In Progress'!$L$2:$L$50),0)>0,ROW('In Progress'!$E$2:$E$50)-ROW($A$2)+1),ROW(1:1)))
 

Excel Facts

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney
I'm not quite sure that I understand what you want, but have a look at this approach. For a sample worksheet [In Progress] that looks like this:
Book2
AL
1
22cat
33dog
44cat
55dog
66cat
77dog
8
9
10
In Progress

You can construct a list of values from column A whose corresponding contents in column L either match (see formula in D1 and down) or do not match (see formula in E1 and down).
Book2
ABCDE
1cat223
2445
3667
4#NUM!#NUM!0
5#NUM!#NUM!0
Sheet2
Cell Formulas
RangeFormula
C1:C5C1=INDEX('In Progress'!$A$2:$A$50,SMALL(IF(IFERROR(FIND($A$1,'In Progress'!$L$2:$L$50),0)>0,ROW('In Progress'!$E$2:$E$50)-ROW($A$2)+1),ROW(1:1)))
D1:D5D1=INDEX('In Progress'!$A$2:$A$50,AGGREGATE(15,6,(ROW('In Progress'!$E$2:$E$50)-ROW('In Progress'!$E$2)+1)/('In Progress'!$L$2:$L$50=$A$1),ROWS(D$1:D1)))
E1:E5E1=INDEX('In Progress'!$A$2:$A$50,AGGREGATE(15,6,(ROW('In Progress'!$E$2:$E$50)-ROW('In Progress'!$E$2)+1)/('In Progress'!$L$2:$L$50<>$A$1),ROWS(E$1:E1)))

How do want to handle blanks? As you'll see, a blank in the A column is reported back in the results as either an error or a 0, so some additional logic would be necessary to handle that condition. And to clarify, do you want the L column values to match the $A$1 value, or are you trying to determine whether a portion of the text strings in the L column matches $A$1. In other words, if $A$1 is "cat" would "bearcat" be considered a match?
 
Upvote 0

Forum statistics

Threads
1,215,097
Messages
6,123,076
Members
449,094
Latest member
mystic19

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