Hello all,
First time posting so I apologies in advance if I break any forum rules or I don’t explain myself to well.
I have a formula that I use to pull data off query table and sort it based on a cell value above it. At the moment it works as is but I see it as a sloppy way of getting it done and hope that there was a way to change to vba code. The formula in question is below. It basically have it look for a match and exclude anything I have on a list and display the rest. I would love to shorten this up in VB and have it apply to a certain range then to have this code in every cell.
=IFERROR(INDEX(‘Raw Data’!$C$2:$C$5000,SMALL(IF((‘Raw Data’!$A$2:$A$5000=B$1)*(‘Raw Data’!$B$2:$B$5000″”)*(IF((‘Raw Data’!$B$2:$B$5000=$AA$2)+(‘Raw Data’!$B$2:$B$5000=$AA$3)+(‘Raw Data’!$B$2:$B$5000=$AA$4)+(‘Raw Data’!$B$2:$B$5000=$AA$5)+(‘Raw Data’!$B$2:$B$5000=$AA$6)+(‘Raw Data’!$B$2:$B$5000=$AA$7)+(‘Raw Data’!$B$2:$B$5000=$AA$8)+(‘Raw Data’!$B$2:$B$5000=$AA$9)+(‘Raw Data’!$B$2:$B$5000=$AA$10)+(‘Raw Data’!$B$2:$B$5000=$AA$11)+(‘Raw Data’!$B$2:$B$5000=$AA$12)+(‘Raw Data’!$B$2:$B$5000=$AA$13)+(‘Raw Data’!$B$2:$B$5000=$AA$14)+(‘Raw Data’!$B$2:$B$5000=$AA$15)+(‘Raw Data’!$B$2:$B$5000=$AA$16)=1,0,1)),ROW(‘Raw Data’!$C$2:$C$5000)-ROW(‘Raw Data’!$C$2)+1),ROWS(‘Raw Data’!$C$2:’Raw Data’!$C2))),””)
I would appreciate any advice or help as I’m true novice and have hit a wall.
Sample
40444-Report