Displaying only values that have a number

jamesmev

Board Regular
Joined
Apr 9, 2015
Messages
233
Office Version
  1. 365
Platform
  1. Windows
I am working on a sheet where we have a list of 1100 item codes in row A.
In Row B we would note the volume needed of item code in row a.

On the second sheet I need the sheet to only display the item codes that have a volume and then the volume listed in the column to the right for each code used. Not displaying any item code with a zero volume

Example
Sheet 1

Item Code Volume

12323 5
34234
43543543 4
3435
2343245 1

sheet 2 returns
A B C D E F etc...
1 Item Code volume Item Code Volume Item Code Volume
2 12323 5 43543543 4 2343245 1
 

Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.

Excel 2010
AB
1item codeVolume
2123235
334234
4435435434
53435
623432451
Sheet1



Excel 2010
ABCDEFGH
1item codeVolumeitem codeVolumeitem codeVolumeitem codeVolume
212323543543543423432451  
Sheet2
Cell Formulas
RangeFormula
A2{=IFERROR(IF(A1="volume",INDEX(Sheet1!$B$2:$B$6,SMALL(IF(Sheet1!$B$2:$B$6<>"",ROW(Sheet1!$B$2:$B$6)-ROW(Sheet1!$B$2)+1),COUNTIF($A$1:A1,"item code"))),INDEX(Sheet1!$A$2:$A$6,SMALL(IF(Sheet1!$B$2:$B$6<>"",ROW(Sheet1!$B$2:$B$6)-ROW(Sheet1!$B$2)+1),COUNTIF($A$1:A1,"item code")))),"")}
B2{=IFERROR(IF(B1="volume",INDEX(Sheet1!$B$2:$B$6,SMALL(IF(Sheet1!$B$2:$B$6<>"",ROW(Sheet1!$B$2:$B$6)-ROW(Sheet1!$B$2)+1),COUNTIF($A$1:B1,"item code"))),INDEX(Sheet1!$A$2:$A$6,SMALL(IF(Sheet1!$B$2:$B$6<>"",ROW(Sheet1!$B$2:$B$6)-ROW(Sheet1!$B$2)+1),COUNTIF($A$1:B1,"item code")))),"")}
C2{=IFERROR(IF(C1="volume",INDEX(Sheet1!$B$2:$B$6,SMALL(IF(Sheet1!$B$2:$B$6<>"",ROW(Sheet1!$B$2:$B$6)-ROW(Sheet1!$B$2)+1),COUNTIF($A$1:C1,"item code"))),INDEX(Sheet1!$A$2:$A$6,SMALL(IF(Sheet1!$B$2:$B$6<>"",ROW(Sheet1!$B$2:$B$6)-ROW(Sheet1!$B$2)+1),COUNTIF($A$1:C1,"item code")))),"")}
D2{=IFERROR(IF(D1="volume",INDEX(Sheet1!$B$2:$B$6,SMALL(IF(Sheet1!$B$2:$B$6<>"",ROW(Sheet1!$B$2:$B$6)-ROW(Sheet1!$B$2)+1),COUNTIF($A$1:D1,"item code"))),INDEX(Sheet1!$A$2:$A$6,SMALL(IF(Sheet1!$B$2:$B$6<>"",ROW(Sheet1!$B$2:$B$6)-ROW(Sheet1!$B$2)+1),COUNTIF($A$1:D1,"item code")))),"")}
E2{=IFERROR(IF(E1="volume",INDEX(Sheet1!$B$2:$B$6,SMALL(IF(Sheet1!$B$2:$B$6<>"",ROW(Sheet1!$B$2:$B$6)-ROW(Sheet1!$B$2)+1),COUNTIF($A$1:E1,"item code"))),INDEX(Sheet1!$A$2:$A$6,SMALL(IF(Sheet1!$B$2:$B$6<>"",ROW(Sheet1!$B$2:$B$6)-ROW(Sheet1!$B$2)+1),COUNTIF($A$1:E1,"item code")))),"")}
F2{=IFERROR(IF(F1="volume",INDEX(Sheet1!$B$2:$B$6,SMALL(IF(Sheet1!$B$2:$B$6<>"",ROW(Sheet1!$B$2:$B$6)-ROW(Sheet1!$B$2)+1),COUNTIF($A$1:F1,"item code"))),INDEX(Sheet1!$A$2:$A$6,SMALL(IF(Sheet1!$B$2:$B$6<>"",ROW(Sheet1!$B$2:$B$6)-ROW(Sheet1!$B$2)+1),COUNTIF($A$1:F1,"item code")))),"")}
G2{=IFERROR(IF(G1="volume",INDEX(Sheet1!$B$2:$B$6,SMALL(IF(Sheet1!$B$2:$B$6<>"",ROW(Sheet1!$B$2:$B$6)-ROW(Sheet1!$B$2)+1),COUNTIF($A$1:G1,"item code"))),INDEX(Sheet1!$A$2:$A$6,SMALL(IF(Sheet1!$B$2:$B$6<>"",ROW(Sheet1!$B$2:$B$6)-ROW(Sheet1!$B$2)+1),COUNTIF($A$1:G1,"item code")))),"")}
H2{=IFERROR(IF(H1="volume",INDEX(Sheet1!$B$2:$B$6,SMALL(IF(Sheet1!$B$2:$B$6<>"",ROW(Sheet1!$B$2:$B$6)-ROW(Sheet1!$B$2)+1),COUNTIF($A$1:H1,"item code"))),INDEX(Sheet1!$A$2:$A$6,SMALL(IF(Sheet1!$B$2:$B$6<>"",ROW(Sheet1!$B$2:$B$6)-ROW(Sheet1!$B$2)+1),COUNTIF($A$1:H1,"item code")))),"")}
Press CTRL+SHIFT+ENTER to enter array formulas.
 
Upvote 0

Forum statistics

Threads
1,214,920
Messages
6,122,272
Members
449,075
Latest member
staticfluids

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