Vlookup --> find next

Sunvisor

Board Regular
Joined
Oct 9, 2009
Messages
233
Lets say you are using a vlookup to a value but there are multiple values with different results...

Is there a formula to do a vlookup and then in the row underneath say if vlookup = the above result, go to next?
 

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
Hello,

I've just found this thread and the explanation provided is demonstrating almost exactly what I want to do. However, after transposing the cell references, I was getting a #NAME? error. So, I copied your table into excel and copied your array formula into the F column, and I get a #NAME? error as well.

Any idea why this might be happening? Either your formula doesn't work, even with the data you've provided, or I'm doing something wrong. It's probably the latter, so any help would be appreciated!
 
Upvote 0
Ignore my previous post, I was being an idiot (copying and pasting the formula doesn't work because it says 'Value' instead of B:B, for example, ha).

It also works with names instead of values, which is what I needed - thanks!
 
Upvote 0
My Sheet1 Format is



=========================================
Sheet1

Cell F2
Code
Cell N2
Reasons
6588down
6588up
6588down
2526up
2526
up
2526
up
5452down

<tbody>
</tbody>

=========================================

and i need
Reasons in Sheet2 N2 Against F2 Codes

Cell F2
Code
Cell N2
Reasons
6588
6588
6588
2526
2526
2526
5452

<tbody>
</tbody>

thanks,
 
Upvote 0
My Sheet1 Format is



=========================================
Sheet1

Cell F2
Code
Cell N2
Reasons
6588down
6588up
6588down
2526up
2526up
2526up
5452down

<tbody>
</tbody>


=========================================

and i need
Reasons in Sheet2 N2 Against F2 Codes

Cell F2
Code
Cell N2
Reasons
6588
6588
6588
2526
2526
2526
5452

<tbody>
</tbody>


thanks,
 
Upvote 0
@faraz502

Sheet2, N2, control+shift+enter, not just enter, and copy down:
Rich (BB code):
=IFERROR(INDEX(Sheet1!$N$2:$N$8,SMALL(IF(Sheet1!$F$2:$F$8=$F2,
  ROW(Sheet1!$F$2:$F$8)-ROW(Sheet1!$F$2)+1),COUNTIF($F$2:F2,F2))),"")
 
Upvote 0
Thankx

Aladin Akyurek

I am trying your formula but i found B/M Result. i need all matches in a cell EXP: if 6588 have three reasons so all reasons are mention in N2. If you are given solution its very helpful for me.

Thanks

F2
Code
N2
Reasons
6588
down
6588up
6588down
2526up
2526up
2526up
5452down

<colgroup><col style="width:48pt" span="9" width="64"> </colgroup><tbody>
</tbody>
 
Upvote 0
Thankx

Aladin Akyurek

I am trying your formula but i found B/M Result. i need all matches in a cell EXP: if 6588 have three reasons so all reasons are mention in N2. If you are given solution its very helpful for me.
...

I don't know what a B/M result is. By the way, control+shift+enter means: Press down the control and the shift keys while you hit the enter key.

See:

https://dl.dropboxusercontent.com/u/65698317/faraz502.xlsx
 
Upvote 0

Forum statistics

Threads
1,216,126
Messages
6,129,021
Members
449,480
Latest member
yesitisasport

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