Trying to present a cut down table using VLookups

whirlwind147

New Member
Joined
Nov 14, 2011
Messages
31
Hi,


Not really sure the best way to describe what I need to do but I'll give it a go.


I have a stock listing for one of our customers of all we hold for them and they want to see a cut down version of this on a different sheet in the same workbook but only items that meet certain criteria. I've sorted out the formula I need to highlight just these items on the original sheet but I'm having trouble listing the different items on a separate sheet. I've used a VLookup but (as most of you will know being experts) it's picking up the same entry again and again as the identifier on the main sheet is the same.

I've currently got this formula on a few rows:
=VLOOKUP("BI!",'ProdSchedRep'!$A$1:$X$100,2)
And it's picking up the same row each time from the other sheet. What would I need to do to this to get it to show each row with the same identifier? I'm guessing that VLookup isn't the right formula to try but I don't know what is. I've tried to search the forums but not knowing the right formula I do need to use I'm finding it a struggle to search!

If more info is needed then let me know what you need and I'll supply :)
Thanks for any help you can give.
 

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.
Post a sample spreadsheet with expected results, remove any sensitive data, create a mockup example if necessary.

You cant attach files on this forum. There are tools on this forum for adding small spreadsheet images

Attachments

Or upload the file to an online storage site and post a link to it, though some people may not download the file for fear of viruses.
 
Upvote 0
Excel Workbook
ABCDEFGHIJKLMNOPQ
1Full Table Example:
2Ref OnlyDel DateDespatch DateDespatch MethodBooked on System?Booking in DateOur RefOur Order NoCust Order NoItem NoJob RefQty OrdQty DelNo tickets produced to dateStockTickets in HandAwaiting No Of Tickets
399921/07/201721/07/2017DC T?21/07/201717/1234511111WE1111123456Job Ref 117004717047123
4BI!21/07/201721/07/2017DC T?21/07/201717/2345622222WE2222234567Job Ref 21304760831370
599904/09/201704/09/2017EW?04/09/201717/3456733333WE3333345678Job Ref 3800080080
699904/09/201704/09/2017EW?04/09/201717/4567844444WE4444456789Job Ref 4300479525348205
799904/08/201704/08/2017DD 3P?04/08/201717/5678955555WE5555987654Job Ref 5500005000500
8BI!28/08/201728/08/2017DD 3P?28/08/201717/6789066666WE6666654321Job Ref 6260477321326187
9BI!07/08/201707/08/2017DC T?07/08/201717/0123477777WE7777654789Job Ref 7211101
10
11Cut Down:
12Ref OnlyDel DateCust Order NoItem NumberJob RefQty Ord
13BI!42954WE7777654789Job Ref 72
14BI!42954WE7777654789Job Ref 72
15BI!42954WE7777654789Job Ref 72
16BI!42954WE7777654789Job Ref 72
17BI!42954WE7777654789Job Ref 72
18BI!42954WE7777654789Job Ref 72
Sheet1
 
Upvote 0
Yep looks good.

in Sheet2!A2
=IFERROR(INDEX(Sheet1!$A$3:$Q$9,SMALL(IF((Sheet1!$D$3:$D$9="DCT")*(Sheet1!$M3<>0),ROW($A$3:$A$9)),ROW(A1))-(ROW(A$3)-1),1),"")

in Sheet2!B2
=IFERROR(INDEX(Sheet1!$A$3:$Q$9,SMALL(IF((Sheet1!$D$3:$D$9="DCT")*(Sheet1!$M3<>0),ROW($A$3:$A$9)),ROW(A1))-(ROW(A$3)-1),2),"")

in Sheet2!C2
=IFERROR(INDEX(Sheet1!$A$3:$Q$9,SMALL(IF((Sheet1!$D$3:$D$9="DCT")*(Sheet1!$M3<>0),ROW($A$3:$A$9)),ROW(A1))-(ROW(A$3)-1),9),"")

in Sheet2!D2
=IFERROR(INDEX(Sheet1!$A$3:$Q$9,SMALL(IF((Sheet1!$D$3:$D$9="DCT")*(Sheet1!$M3<>0),ROW($A$3:$A$9)),ROW(A1))-(ROW(A$3)-1),10),"")

in Sheet2!E2
=IFERROR(INDEX(Sheet1!$A$3:$Q$9,SMALL(IF((Sheet1!$D$3:$D$9="DCT")*(Sheet1!$M3<>0),ROW($A$3:$A$9)),ROW(A1))-(ROW(A$3)-1),11),"")

in Sheet2!F2
=IFERROR(INDEX(Sheet1!$A$3:$Q$9,SMALL(IF((Sheet1!$D$3:$D$9="DCT")*(Sheet1!$M3<>0),ROW($A$3:$A$9)),ROW(A1))-(ROW(A$3)-1),12),"")

NOTE: These are ALL array formulas so enter them using Ctrl-Shift-Enter
Once entered in row 2 copy them down the column for as many rows as you have in Sheet1.
In this case your range in Sheet1 is A3:A9 which is 7 rows so copy the formulas down on Sheet 2 for 7 rows.
If you have 1000 rows on your proper "Sheet1" you will need to copy the formulas down 1000 rows on Sheet2.
 
Last edited:
Upvote 0
I can't get it to show anything but in my haste I think I may have forgotten to tell you a piece of information though.

In the cut down version I only want to show the orders that have BI! in the very first column in the larger table. The BI! only shows in the larger table when the despatch method is DC T or DD 3P and that the Qty Delivered doesn't say 0.

Sorry I forgot to put that bit :-/
 
Upvote 0
In my haste i mistook "DC T" for "DCT", you'll need to amend the formula to account for that.
Try this
Again Array formula, use Ctrl-Shift-Enter copy themown the columns

in Sheet2!A2
=IFERROR(INDEX(Sheet1!$A$3:$Q$9,SMALL(IF((Sheet1!$D$3:$D$9="DC T")*(Sheet1!$M3<>0)*(Sheet1!$A3="BI!"),ROW($A$3:$A$9)),ROW(A1))-(ROW(A$3)-1),1),"")

in Sheet2!B2
=IFERROR(INDEX(Sheet1!$A$3:$Q$9,SMALL(IF((Sheet1!$D$3:$D$9="DC T")*(Sheet1!$M3<>0)*(Sheet1!$A3="BI!"),ROW($A$3:$A$9)),ROW(A1))-(ROW(A$3)-1),2),"")

in Sheet2!C2
=IFERROR(INDEX(Sheet1!$A$3:$Q$9,SMALL(IF((Sheet1!$D$3:$D$9="DC T")*(Sheet1!$M3<>0)*(Sheet1!$A3="BI!"),ROW($A$3:$A$9)),ROW(A1))-(ROW(A$3)-1),9),"")

in Sheet2!D2
=IFERROR(INDEX(Sheet1!$A$3:$Q$9,SMALL(IF((Sheet1!$D$3:$D$9="DC T")*(Sheet1!$M3<>0)*(Sheet1!$A3="BI!"),ROW($A$3:$A$9)),ROW(A1))-(ROW(A$3)-1),10),"")

in Sheet2!E2
=IFERROR(INDEX(Sheet1!$A$3:$Q$9,SMALL(IF((Sheet1!$D$3:$D$9="DC T")*(Sheet1!$M3<>0)*(Sheet1!$A3="BI!"),ROW($A$3:$A$9)),ROW(A1))-(ROW(A$3)-1),11),"")

in Sheet2!F2
=IFERROR(INDEX(Sheet1!$A$3:$Q$9,SMALL(IF((Sheet1!$D$3:$D$9="DC T")*(Sheet1!$M3<>0)*(Sheet1!$A3="BI!"),ROW($A$3:$A$9)),ROW(A1))-(ROW(A$3)-1),12),"")

If this doesn't work post a sample file

Post a sample spreadsheet with expected results, remove any sensitive data, create a mockup example if necessary.
You cant attach files on this forum. There are tools on this forum for adding small spreadsheet images

Attachments

Or upload the file to an online storage site and post a link to it, though some people may not download the file for fear of viruses.
 
Last edited:
Upvote 0
Hi Special-K99 :)

Sorry I have had some normal work to do so had to leave these for a couple of days. I've entered the formula's and I've achieved partial success. The main objective was I wanted the cut down version of the sheet to only pick up the rows with BI! one after the other (so no blank rows). Also something weird is happening with the results. If they all say BI! then they all show up which is great but if one of them is empty then it seems that one or more rows gets ignored. I'll paste an example in the next message.

Thanks for all your help this far by the way :)
 
Upvote 0
Excel Workbook
ABCDEFGHIJKLMNOPQ
1Full Table Example:
2Ref OnlyDel DateDespatch DateDespatch MethodBooked on System?Booking in DateOur RefOur Order NoCust Order NoItem NoJob RefQty OrdQty DelNo tickets produced to dateStockTickets in HandAwaiting No Of Tickets
3BI!21/07/201721/07/2017DC T?21/07/201717/1234511111WE1111123456Job Ref 1170104716037123
4BI!21/07/201721/07/2017DC T?21/07/201717/2345622222WE2222234567Job Ref 213010601205070
5BI!04/09/201704/09/2017DC T?04/09/201717/3456733333WE3333345678Job Ref 38010570-575
699904/09/201704/09/2017EW?04/09/201717/4567844444WE4444456789Job Ref 4300109529085205
7BI!04/08/201704/08/2017DC T?04/08/201717/5678955555WE5555987654Job Ref 5500105490-5495
899928/08/201728/08/2017EW?28/08/201717/6789066666WE6666654321Job Ref 6260107325063187
9BI!07/08/201707/08/2017DC T?07/08/201717/0123477777WE7777654789Job Ref 72101-8-91
10
11Cut Down:
12Ref OnlyDel DateCust Order NoItem NumberJob RefQty Ord
13BI!42937WE1111123456Job Ref 1170
14BI!42937WE2222234567Job Ref 2130
15BI!42982WE3333345678Job Ref 380
16      
17BI!42954WE7777654789Job Ref 72
18      
19      
Sheet1
 
Upvote 0

Forum statistics

Threads
1,215,767
Messages
6,126,773
Members
449,336
Latest member
p17tootie

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