Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Ron M.
 
Posts: n/a
Default Sticky sorting/macro/VLOOKUP problem

I've tried to find the answer to this here and elsewhere, but no luck,
although there's quite a bit on "sorting with blank lines."

I have a spreadsheet with 10,000 blank lines and several columns, A
through E. It's on a networked server, and various people in the office
open it and enter data into it, filling it in from the top.

In Column E, their last names are automatically entered from a table
using VLOOKUP, matched to data they enter in one of the other columns.

When I try to sort data by the names in Column E, in ascending order,
it does so, but shoves it all down to the BOTTOM of the spreadsheet,
with the blank lines on top. Keep in mind that each of the cells in
Column E contains the VLOOKUP formula.

I need to make a "sort by name" macro my supervisor can activate with a
button. Is there some way to make this work so the data stays at the
top of the spreadsheet?

Ron M.

  #2   Report Post  
Dave Peterson
 
Posts: n/a
Default Sticky sorting/macro/VLOOKUP problem

Maybe you could change the formula:

=if(b2="","",vlookup(....))
to something like:
=if(b2="","zzzzzzzzzzzzzzz",vlookup(....))

Then use format|conditional formatting to make that zzzzz stuff look invisible
(white font on white fill???).

=======
Or....

Maybe you could add a helper column
=if(g2="","zzzzzzzzzzzzzz",g2)
and drag down

Then sort by this helper column.



"Ron M." wrote:

I've tried to find the answer to this here and elsewhere, but no luck,
although there's quite a bit on "sorting with blank lines."

I have a spreadsheet with 10,000 blank lines and several columns, A
through E. It's on a networked server, and various people in the office
open it and enter data into it, filling it in from the top.

In Column E, their last names are automatically entered from a table
using VLOOKUP, matched to data they enter in one of the other columns.

When I try to sort data by the names in Column E, in ascending order,
it does so, but shoves it all down to the BOTTOM of the spreadsheet,
with the blank lines on top. Keep in mind that each of the cells in
Column E contains the VLOOKUP formula.

I need to make a "sort by name" macro my supervisor can activate with a
button. Is there some way to make this work so the data stays at the
top of the spreadsheet?

Ron M.


--

Dave Peterson
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem With Reference Update Egon Excel Worksheet Functions 17 July 16th 05 05:45 AM
Excel Display Problem Bill Martin -- (Remove NOSPAM from address) Excel Discussion (Misc queries) 0 April 19th 05 05:25 PM
EXCEL 2003 PROBLEM Amandle Excel Worksheet Functions 4 April 1st 05 02:25 PM
Freeze Pane problem in shared workbooks JM Excel Discussion (Misc queries) 1 February 1st 05 12:04 AM
Row Autofit problem Excel 2003 Matthias Klaey Excel Discussion (Misc queries) 0 January 19th 05 05:33 PM


All times are GMT +1. The time now is 09:43 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"