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

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.
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,215,009
Messages
6,122,674
Members
449,091
Latest member
peppernaut

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