How to display only the vlookup results that are integers, with no gaps

Captain Hindsight

New Member
Joined
Oct 9, 2013
Messages
46
I have a tab in Excel in a normal database style.

One of the columns categorises the items.

I then have subsequent tabs - one per category - where I want formulas e.g. a vlookup to extract all the entries in that category from the base sheet.

I can do this with a vlookup or IF function, but:

1. I will constantly be adding rows to the base data so the range will change
2. I do not want any blanks to be on these subsequent tabs

For example, if the range on my base tab is 10 rows from A1 to A10 and A1, A4, A9 all meet category 1 .... in my category 1 tab I want to see the value from A1 in cell A1, the value from A4 in cell A2, the value from A9 in cell A3 etc.

In my sheet this principle is over 100 rows, so I do not want any blank cells or #N/A's inbetween the values I want to see (the ones in the relevant category, in that categories tab).​
 

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop

Forum statistics

Threads
1,215,464
Messages
6,124,966
Members
449,200
Latest member
Jamil ahmed

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