Finding Specific Text Within A Column And Reporting Where That Cell Is

South Nashua

New Member
Joined
Mar 4, 2017
Messages
5
Hi all, first time posting. Wondering if you could help.

Okay, I have a column of with cells filled with text. Let's call that Column A.

In another column, I have more cells filled with text. Let's call that Column B.

I want to put a formula in Column C find where an adjacent specific cell in Column B shows up in Column A (if at all) and what specific cell in Column A that is.

Example:

Dog
Dog
Cat
Pig
Pig
Blue

<tbody>
</tbody>


C1 would lookup B1 and equal A1. C1 would lookup B1 and equal A3. C3 would lookup B3 and equal FALSE.

I've tried combinations of VLOOKUP and FIND and SEARCH and MATCH and INDEX, but it's beyond my abilities. Hoping you all could help.
 

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.
Give this formula a try (adjust the A$1:A$3 range as needed but keep the $ signs)...

=IFERROR("A"&MATCH(B1,A$1:A$3,0),"")
 
Last edited:
Upvote 0
Welcome to the MrExcel board!

A slight word of caution. If for some reason, any row(s) are subsequently added at the top of the sheet (eg to add headers) those formulas will be pointing to the wrong matching cells.

Here I have the suggested formula in column C and an alternative in column D. Both return the correct locations.


Excel 2010 32 bit
ABCD
1DogDogA1A1
2CatPigA3A3
3PigBlue
4
Address of match
Cell Formulas
RangeFormula
C1=IFERROR("A"&MATCH(B1,A$1:A$3,0),"")
D1=IFERROR(ADDRESS(MATCH(B1,A:A,0),1,4),"")



.. and here is the same sheet with a new row 1 inserted.


Excel 2010 32 bit
ABCD
1List 1List 2MatchMatch
2DogDogA1A2
3CatPigA3A4
4PigBlue
5
Address of match
Cell Formulas
RangeFormula
C2=IFERROR("A"&MATCH(B2,A$2:A$4,0),"")
D2=IFERROR(ADDRESS(MATCH(B2,A:A,0),1,4),"")
 
Upvote 0

Forum statistics

Threads
1,214,643
Messages
6,120,702
Members
448,980
Latest member
CarlosWin

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