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

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.
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,215,343
Messages
6,124,405
Members
449,157
Latest member
mytux

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