Formula to find next value

kelbarben

New Member
Joined
Aug 12, 2008
Messages
23
Is there a formula that will find the next matching text in a column and return the text from the column to the right of it? Like a vlookup but I need it to continue on and find every one of them and return each thing that matches that row that the next one shows up in. Thanks in advance.

kelbarben
 
Hi,

an alternative using a 'Helper Column' might be:

Excel Workbook
AB
1Service AgentAccount code
2Amy178168
3Teri183302
4Bob184881
5Teri191562
6Alex199567
7Jake199747
8Sam208945
9Sharon212520
10Jake218960
11Lowell220245
12Greg220248
13Emily220250
14Bob220251
15Bob220253
16Amy220254
17Teri220255
18Alex220256
19Amber220259
20Bob220262
21Jake220263
22Amy220264
23Amy220268
24Amber220274
25Bob220275
26Bob220276
27Amy176876
28Alex181504
29Alex198347
Sheet1


Excel Workbook
ABC
1Helper ColumnAccount number
2Amy2178168
316220254
422220264
523220268
627176876
7#N/A#N/A
8#N/A#N/A
Sheet2
 
Upvote 0

Excel Facts

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK
1] Please followed al_b_cnu's Sheet 1 layout

2] Sheet2, A2 entered : AMY

3] Sheet2, B2 entered array formula and copied down :

{=INDEX(Sheet1!B$1:B$1000,SMALL(IF(Sheet1!A$1:A$1000=$A$2,ROW(B$1:B$1000),1000),ROWS(A$1:A1)))&""}

Regards
Bosco
 
Upvote 0

Forum statistics

Threads
1,223,714
Messages
6,174,051
Members
452,542
Latest member
Bricklin

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