Compare, Search and highlight

Vishaal

Well-known Member
Joined
Mar 16, 2019
Messages
533
Office Version
  1. 2010
  2. 2007
Platform
  1. Windows
  2. Web
Thanks in Advance,

we have the following sheet

Excel 2010 32 bit
A
B
C
1
2
Emma
3
Olivia
4
Charlotte
5
Harper
6
Scarlet
7
Charlotte
8
Ava
9
Mia
10
Scarlet
11
Ava
12
Charlotte
13
Olivia
14
Sheet: Sheet1

We want to following result

Excel 2010 32 bit
A
B
C
1
2
Emma
3
Harper, IsabellaOlivia
4
Charlotte
5
Harper
6
Isabella, MiaScarlet
7
Charlotte
8
Ava
9
Mia
10
Ava, AmeliaScarlet
11
Ava
12
Charlotte
13
Olivia
14
Sheet: Sheet1

in this result, we have checked

1. A3 value in B3 to last row
2. A6 value in B6 to last row
3. A10 value in B10 to last row
4. Any value (name or numerical) anywhere in column we put it start search in column B (same row) and highlight the cell

Pls provide any code or vba or formula
 
I have downloaded and checked


Its working

Thanks for your help sir
 
Upvote 0

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest
Hi, one more request and that is can we get any common text (i mean xyz) on next row of highlighted cell

i mean, check the following sheet

Excel 2010 32 bit
A
B
C
D
E
1
2
3
Emma
4
Harper, IsabellaOlivia
5
Charlotte
6
Isabellaxyz
7
Harper
8
Isabella, MiaScarlet
9
Charlotte
10
Ava
11
Miaxyz
12
Ava, AmeliaScarlet
13
Avaxyz
14
Charlotte
15
Olivia
16
Sheet: Sheet1

sorry

but help pls
 
Last edited:
Upvote 0
find the solution in forum this in old post

but its added some time and task for me

Thanks Mrexcel
 
Upvote 0

Forum statistics

Threads
1,215,059
Messages
6,122,913
Members
449,093
Latest member
dbomb1414

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