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?
 
Dear, Aladin Akyurek

Sheet1

6588
down
6588
up
6588
down
2526
up
2526
up
2526
up
5452
down

<colgroup><col style="width:48pt" span="9" width="64"> </colgroup><tbody>
</tbody>
ok and

Sheet2

6588
2526
5452

<colgroup><col style="width:48pt" width="64"> </colgroup><tbody>
</tbody>

I need all reasons of 6588,2526,5452 in a single cell
 
Upvote 0

Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.
Dear, Aladin Akyurek

Sheet1

6588down
6588up
6588down
2526up
2526up
2526up
5452down

<tbody>
</tbody>
ok and

Sheet2
6588
2526
5452

<tbody>
</tbody>

I need all reasons of 6588,2526,5452 in a single cell

1) If "down, up, down" in a single cell for 6588 is admissible, it's doable using a function a VBA along with native functions..

2) If you don't want repeats and having the unique reasons next to each other in the same row as 6588, a native formula aproach is possible.

Which do you want?
 
Upvote 0
i thing i need 2nd option.

thanks for your all replies

Sheet1, F1:N8 (source)

CodeReason
6588down
6588up
6588down
2526up
2526up
2526up
5452down

<tbody>
</tbody>

Sheet2 (destination)

Code
Reason(s)
6588downup
2526up
5452down

<colgroup><col style="width:48pt" span="5" width="64"> </colgroup><tbody>
</tbody>

Define Ivec using Formulas | Name Manager as referring to:
Rich (BB code):
=ROW(Sheet1!$N$2:$N$8)-ROW(Sheet1!$N$2)+1

B2, control+shift+enter, not just enter, and copy across:
Rich (BB code):
=IFERROR(INDEX(Sheet1!$N$2:$N$8,
  SMALL(IF(FREQUENCY(IF(Sheet1!$N$2:$N$8<>"",
  IF(Sheet1!$F$2:$F$8=$A2,MATCH(Sheet1!$N$2:$N$8,Sheet1!$N$2:$N$8,0))),
  Ivec),Ivec),COLUMNS($B$2:B2))),"")

See:

https://dl.dropboxusercontent.com/u/65698317/faraz502 version-2.xlsx
 
Upvote 0
Try this:

Layout

CodeReasonsSheet2
6588downupdown
2526upupup
5452down
*******************************************

<tbody>
</tbody>

Formulas

Code:
In A2 - use only Enter to enter the formula

=IFERROR(INDEX(Sheet1!$A$2:$A$8,MATCH(0,INDEX(COUNTIF(A$1:A1,Sheet1!$A$2:$A$8),),0)),"")

In I2 - use Ctrl+Shift+Enter to enter the formula

=IF($A2="","",IFERROR(INDEX(Sheet1!$I$2:$I$8,SMALL(IF(Sheet1!$A$2:$A$8=$A2,ROW(Sheet1!$A$2:$A$8)-ROW(Sheet1!$A$2)+1),COLUMNS($I2:I2))),""))

Markmzz
 
Upvote 0
it is possible i am connected excel with a networking software??

When network is down showing in Excel.
 
Upvote 0
i have a It room so i need when network is down in a department so excel collect the data related department issue and showing in a chart . it is possible??
 
Upvote 0
i have a It room so i need when network is down in a department so excel collect the data related department issue and showing in a chart . it is possible??
Hi Faraz502,

I'm sorry, but I don't know how to do that.

Maybe another user.

Markmzz
 
Upvote 0

Forum statistics

Threads
1,216,129
Messages
6,129,055
Members
449,484
Latest member
khairianr

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