ExcelIsMyFave
New Member
- Joined
- Mar 8, 2012
- Messages
- 14
I'm new here, so please take it easy on me
This will likely be an easy one for the gurus in here.
Say I have the following:
Cell A1: male
Cell A2: male
Cell A3: female
Cell A4: male
I want to conduct a search using the value in cell B1, and return the row numbers for which the value in B1 exists.
So my formula in C1 is:
=small(if(isnumber(search($B$1, $A$1:$A$A4)), row($A$1:$A$A4)), row(1:1))
and I make it an array by CTRL+SHIFT+enter
So in B1 I type "male" (without the quotes). From C1 to C4 the values populate as 1,2,3,4
However, I only want the rows where "male" exists, in other words, i want an exact match and I want to exclude those cells that have "female"
I'm wanting:
C1 = 1
C2 = 2
C3 = 4
C4 = blank
Is there a way to do this?
Thanks in advance.
This will likely be an easy one for the gurus in here.
Say I have the following:
Cell A1: male
Cell A2: male
Cell A3: female
Cell A4: male
I want to conduct a search using the value in cell B1, and return the row numbers for which the value in B1 exists.
So my formula in C1 is:
=small(if(isnumber(search($B$1, $A$1:$A$A4)), row($A$1:$A$A4)), row(1:1))
and I make it an array by CTRL+SHIFT+enter
So in B1 I type "male" (without the quotes). From C1 to C4 the values populate as 1,2,3,4
However, I only want the rows where "male" exists, in other words, i want an exact match and I want to exclude those cells that have "female"
I'm wanting:
C1 = 1
C2 = 2
C3 = 4
C4 = blank
Is there a way to do this?
Thanks in advance.
Last edited: