Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Display selected fields from one sheet on a new sheet in alphabetical order 1

Status
Not open for further replies.

johngiggs

Technical User
Oct 30, 2002
492
0
0
US
I have tried a few different things with VLOOKUP in Excel to try to display data from one sheet on a new sheet in alphabetical order, but was unsuccessful.

The data I want in the new sheet is in columns A and Q of sheet 1. If Q is not null print the value of column A and column Q in column A and B of sheet 2.

Ex.

Sheet 1:

Column A | ... | Column Q
item 1 | ... | data
item 2 | ... |
item 3 | ... | data2

Desired output on Sheet 2:

Column A | Column B
item 1 | data
item 3 | data2

For item 2 it should not be printed because sheet 1 column q is null.

Any help would be greatly appreciated.

Thanks,

John
 
hi,

You could use a PivotTable. You could use MS Query. Both would use your data in sheet 1 as the source.

Your data need to be structured as a TABLE. faq68-5184

THe easiest is Insert > Tables > PivotTable

My results (took about 10 seconds)
Code:
Column A  Column Q
item 1    data
item 3    data2




Skip,
[sub]
[glasses]Just traded in my old subtlety...
for a NUANCE![tongue][/sub]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top