Skip the row if logical condition is not met

maitreyeepurohit

New Member
Joined
Sep 12, 2017
Messages
2
A
Current Month of PW
B
CODE
C
PNC
1 9SF-AY1-0001-K1-1
2 7SF-AY1-0002-Alindra-1
3 9SF-AY1-0003-K1-2
4 0SF-AY1-0004-K1-3
5 0SF-AY1-0005-K1-4

<colgroup><col span="2"><col></colgroup><tbody>
</tbody>


I Basically want only the codes which have current Month of PW as 9.
Thanks a lot in advance.
 

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
A
B
C
1
Current Month of PWCODEPNC
2
9​
SF-AY1-0001-K1-1SF-AY1-0001-K1-1
3
7​
SF-AY1-0002-Alindra-1SF-AY1-0003-K1-2
4
9​
SF-AY1-0003-K1-2
5
0​
SF-AY1-0004-K1-3
6
0​
SF-AY1-0005-K1-4

<tbody>
</tbody>

c2=IFERROR(INDEX($B$2:$B$6,SMALL(IF($A$2:$A$6=$A$2,ROW($B$2:$B$6)-ROW($B$2)+1),ROWS($B$2:B2))),"")

control+shift+enter copy down
 
Upvote 0
Thank you very much!!! This worked Perfectly!

A
B
C
1
Current Month of PWCODEPNC
2
9​
SF-AY1-0001-K1-1SF-AY1-0001-K1-1
3
7​
SF-AY1-0002-Alindra-1SF-AY1-0003-K1-2
4
9​
SF-AY1-0003-K1-2
5
0​
SF-AY1-0004-K1-3
6
0​
SF-AY1-0005-K1-4

<tbody>
</tbody>

c2=IFERROR(INDEX($B$2:$B$6,SMALL(IF($A$2:$A$6=$A$2,ROW($B$2:$B$6)-ROW($B$2)+1),ROWS($B$2:B2))),"")

control+shift+enter copy down
 
Upvote 0
use this one

c2=IFERROR(INDEX($B$2:$B$6,SMALL(IF($A$2:$A$6=9,ROW($B$2:$B$6)-ROW($B$2)+1),ROWS($B$2:B2))),"") control +shift+enter copy down
 
Last edited:
Upvote 0

Forum statistics

Threads
1,216,041
Messages
6,128,461
Members
449,455
Latest member
jesski

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