search and answer only ODD rows

gtd526

Well-known Member
Joined
Jul 30, 2013
Messages
696
Office Version
  1. 2019
Platform
  1. Windows
Hello,
I want to only use ODD rows for the search and the answer.
L4:L13 contains the formula I want to change.
If I:I is >=55%, then return A:A value, only in ODD rows.

thank you

Cell Formulas
RangeFormula
C4:C33C4=IFERROR(IF(MOD(ROW(),2)=0,ROUND(VLOOKUP($A4,'TeamRankings - Stats'!$EU$3:$EY$32,5,0),2),ROUND(VLOOKUP($A4,'TeamRankings - Stats'!$EU$3:$EX$32,4,0),2)),"")
D4:D33D4=IFERROR(IF(MOD(ROW(),2)=0,VLOOKUP($A4,'TeamRankings - Stats'!$EK$3:$ER$32,8,0),VLOOKUP($A4,'TeamRankings - Stats'!$EK$3:$EQ$32,7,0)),"")
E4:E33E4=IFERROR(VLOOKUP(A4,'ATS Trends'!$O$3:$R$32,4,0),"")
F4:F33F4=IFERROR(VLOOKUP($A4,'ATS Trends'!$O$3:$T$32,6,0),"")
G4:G33G4=IFERROR(VLOOKUP($A4,'ATS Trends'!$O$3:$S$32,5,0),"")
H4:H33H4=IF(AND($B4<0,$G4=""),"",IF(AND($A4=$AI4,$B4<0,$G4<0),$B4+$G4,IF(AND($B4<0,$G4>0),$G4-ABS($B4),"")))
I4:I33I4=IFERROR(IF(MOD(ROW(),2)=0,ROUND(VLOOKUP($A4,'ATS Trends'!$H$3:$K$32,4,0),2),ROUND(VLOOKUP($A4,'ATS Trends'!$A$3:$D$32,4,0),2)),"")
B5,B33,B31,B29,B27,B25,B23,B21,B19,B17,B15,B13,B11,B9,B7B5=IF(ISTEXT(A4),IF(B4="PK","PK",IF(B4<0,B4*-1,B4*-1)),"")
L4:L14L4=INDEX($A$4:$A$33,SMALL(IF($I$4:$I$33>=0.55*($I$4:$I$33<>""),ROW($I$4:$I$33)-ROW($I$4)+1),ROW(1:1)))
Press CTRL+SHIFT+ENTER to enter array formulas.
 

Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"
Try: =IFERROR(INDEX($A$4:$A$33,SMALL(IF(($I$4:$I$33>=0.55)*($I$4:$I$33<>"")*ISODD(ROW($I$4:$I$33)),ROW($I$4:$I$33)-ROW($I$4)+1),ROWS(L$4:L4))),"")

This will return odd rows, so if you insert a new row at the top of the worksheet, the formula will return DAL, GS, PHI etc, as these are now in the odd rows.

If you still want the formula to return ORL, MIN and OKC, just change to:

=IFERROR(INDEX($A$4:$A$33,SMALL(IF(($I$4:$I$33>=0.55)*($I$4:$I$33<>"")*ISODD(ROW($I$4:$I$33)-ROW(I$4)),ROW($I$4:$I$33)-ROW($I$4)+1),ROWS(L$4:L4))),"")
 
Upvote 0
Try

Excel Formula:
=INDEX(A1:A25,FILTER(FILTER(ROW(A4:A25),I4:I25>55%),MOD(FILTER(ROW(A4:A25),I4:I25>55%),2)=1))

1709090812357.png
 
Upvote 0
Or perhaps:
Excel Formula:
=FILTER(A4:A25,(ISODD(ROWS(A4:A25))*(I4:I25>=0.55)),"")
 
Upvote 0
@gtd526
Didn't we basically already cover this at the end of your earlier thread? (apart from incrementing the final argument to return subsequent values)
Adapted to this thread it would have been ..
Excel Formula:
=IFERROR(INDEX(A$4:A$33,AGGREGATE(15,6,(ROW(H$4:H$33)-ROW(H$4)+1)/((I$4:I$33>=0.55)*(H$4:H$33<>"")*ISODD(ROW(H$4:H$33))),ROWS(L$4:L4))),"")

In that earlier thread the issue of possible inserted rows as mentioned by Stephen above was also raised.


@SunnyAlv @kevin9999
I think that you both have missed that the OP is referencing the range down to row 33 and column I has some formulas returning "" in that range.
Kevin, I also think that you didn't test your formula (ROWS v ROW) but you are on the right track in that SunnyAlv has a much more complicated formula than is needed.
If FILTER is available then
Excel Formula:
=FILTER(A4:A33,(I4:I33>55%)*(I4:I33<>"")*ISODD(ROW(A4:A33)))
 
Upvote 0
Try: =IFERROR(INDEX($A$4:$A$33,SMALL(IF(($I$4:$I$33>=0.55)*($I$4:$I$33<>"")*ISODD(ROW($I$4:$I$33)),ROW($I$4:$I$33)-ROW($I$4)+1),ROWS(L$4:L4))),"")

This will return odd rows, so if you insert a new row at the top of the worksheet, the formula will return DAL, GS, PHI etc, as these are now in the odd rows.

If you still want the formula to return ORL, MIN and OKC, just change to:

=IFERROR(INDEX($A$4:$A$33,SMALL(IF(($I$4:$I$33>=0.55)*($I$4:$I$33<>"")*ISODD(ROW($I$4:$I$33)-ROW(I$4)),ROW($I$4:$I$33)-ROW($I$4)+1),ROWS(L$4:L4))),"")
Both work.
Thank you.
 
Upvote 0
@gtd526
Didn't we basically already cover this at the end of your earlier thread? (apart from incrementing the final argument to return subsequent values)
Adapted to this thread it would have been ..
Excel Formula:
=IFERROR(INDEX(A$4:A$33,AGGREGATE(15,6,(ROW(H$4:H$33)-ROW(H$4)+1)/((I$4:I$33>=0.55)*(H$4:H$33<>"")*ISODD(ROW(H$4:H$33))),ROWS(L$4:L4))),"")

In that earlier thread the issue of possible inserted rows as mentioned by Stephen above was also raised.


@SunnyAlv @kevin9999
I think that you both have missed that the OP is referencing the range down to row 33 and column I has some formulas returning "" in that range.
Kevin, I also think that you didn't test your formula (ROWS v ROW) but you are on the right track in that SunnyAlv has a much more complicated formula than is needed.
If FILTER is available then
Excel Formula:
=FILTER(A4:A33,(I4:I33>55%)*(I4:I33<>"")*ISODD(ROW(A4:A33)))
Your formula works, thanks.
This was a little different than my earlier post, so I decided to post a new question.
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,176
Members
453,021
Latest member
Justyna P

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