Dear all
I am lookong for the code to give the values greater than 6 from the list on the left.
I can do this quickly by sorting but my data keeps changing and it would be even quicker with code.
Hope you can help
Kevin
Dear all
I am lookong for the code to give the values greater than 6 from the list on the left.
I can do this quickly by sorting but my data keeps changing and it would be even quicker with code.
Hope you can help
Kevin
Why don't you just apply auto-filter to column B, and use the Number Filter option on the drop-down to choose Greater than or Equal to and then put 6 in the dialogue box.
Hope this helps.
Pete
Try in E2:
This is an ARRAY formula, should be confirmed by CTRL-SHIFT-ENTER.![]()
=INDEX(A$1:A$45,SMALL(IF($B$3:$B$45>6,ROW($B$3:$B$45)-ROWS($B$3)+1,""),ROW(A1)))
Drag down and across untill getting error signs
Quang PT
Non-array alternative for E2:
=IFERROR(INDEX($A$3:$A$45,SMALL(INDEX(($B$3:$B$45>6)*(ROW($B$3:$B$45)-MIN(ROW($B$3:$B$45))+1),,),ROWS($B$3:$B$45)-COUNTIF($B$3:$B$45,">6")+ROWS($1:1))),"")
Regards
For your Excel 2003 version:
Copy of greater than 6.xls
If you arehappy with the results, please add to the contributor's
reputation by clicking the reputation icon (star icon).
If you are satisfied with the solution(s) provided, please mark your thread as Solved.
Select Thread Tools-> Mark thread as Solved.
To undo, select Thread Tools-> Mark thread as Unsolved.
http://www.excelaris.co.uk
Edit: didn't see you were on 2003.
=IF(ROWS($1:1)>COUNTIF($B$3:$B$45,">6"),"",INDEX($A$3:$A$45,SMALL(INDEX(($B$3:$B$45>6)*(ROW($B$3:$B$45)-MIN(ROW($B$3:$B$45))+1),,),ROWS($B$3:$B$45)-COUNTIF($B$3:$B$45,">6")+ROWS($1:1))))
Regards
As I understand it, you want both the name and the grade.
In F2 enter this formula with Ctrl + Shift + Enter and copy down.
Formula:![]()
=IFERROR(SMALL(IF(B:B>6,B:B),ROW()-1),"")
In E2 enter this formula and copy down:
Formula:
=IFERROR(INDEX($A$3:$A$45,MATCH(F2,$B$3:$B$45,0)),"")
Last edited by newdoverman; 10-21-2013 at 01:12 PM.
<---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.Ron W
greater than 2.1.xls
Thanks everyone for the replies.
I got it working but the values in each cell are found from a pivot table making each cell appear blank but actually they are bound by a formula. So the previous formula is preventing it from working.
I have now attached the pivot table all all routes from the original data.
Hopefully it will be a small tweek to get it working?
Kevin
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks