LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
Don Don is offline
external usenet poster
 
Posts: 487
Default Last Row In Column..

Hi All,

Here's what I've got, I'll simplify a much bigger sheet for purposes he

"Data" sheet....contains list of people in Column A (A3:A6 presently) for
this example lets use:

A3 = John
A4 = Mary
A5 = Joe
A6 = Peter
A7 = Sam

....various data is entered in Cols B:F. Rows 1 and 2 are header rows.

"Sheet2" ..No data is hand entered on "Sheet2".(data is summoned from "Data"
sheet through formulas in Rge A3:F10)...i.e. in A3:
=if(Data!A3="","",Data!A3)

This formula has been dragged down through A10, allowing for additional
members to be added on the "Data" Sheet and picked up automatically on
"Sheet2".

I've also named a defined range "Rge1" (A3:F10 which refers to
"Sheet2")....as I said the sheet is much bigger than this but this'll do for
an example.

Now, my problem.....I want an alphebetical listing on "Sheet2" without
changing my "Data" sheet. I do a sort on "Sheet2", selecting "Rge1" as the
range (This selects all the data and formula used on Sheet2 but leaves Rows 1
and 2 unchanged (Header Rows). Then selecting "No Header Row", Col A and
Ascending for the sort. This sort leaves three "" rows (containing the IF
formulas as shown above) at the top of the list.

I've done all of the above with a macro with no problem...however, I'd like
for the Range selection to automatically disregard all ""'s in Col A prior to
the sort. This would leave Joe in A3, John in A4, etc....and the formulas
that have pulled no data still at the bottom of the sort.

What I need is the code for selecting the last used Row in Col A,
disregarding formulas that have not pulled data from "Data". When I use the
code I have for finding last used Row, it stops at the formulas whether they
have actually pulled data from "Data" or not. Of course, when new members
are added to "Data", the result of this code will change as will the sort
range.

Got kind of windy here, but I do hope this explains what I'm looking for
adequately.....if not, let me know.

TIA,

Don


 
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
divide column(x) by column(y) to give column(x/y) in excel? James New Users to Excel 2 April 24th 23 11:46 AM
Referencing date column A & time column B to get info from column TVGuy29 Excel Discussion (Misc queries) 1 January 24th 08 09:50 PM
Return text in Column A if Column B and Column K match jeannie v Excel Worksheet Functions 4 December 13th 07 07:36 PM
Based on a condition in one column, search for a year in another column, and display data from another column in the same row look [email protected] Excel Discussion (Misc queries) 1 December 27th 06 05:47 PM
Divide Column A by Column B multiply Column C Stumped Excel Worksheet Functions 3 December 28th 05 05:51 AM


All times are GMT +1. The time now is 03:43 AM.

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"