#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Cell reference moves

I am usinng a spreadsheet with 2 sheets.
Sheet 1 contains a list of companies.
Sheet 2 refers to the company name on, sheet 1, by "=Sheet2!B2" type formular.
As I add names to sheet 1 I wish to re-order them alphabetically, however,
when I do this their relative position is not remeberd and I get the same
cell, but a different name. I need to retain the contents location.
Can you help please.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 347
Default Cell reference moves

Hi,

Here's one way:
In sheet1 insert a blank column in front of the company, use thta column for
numbering your entries, when sorting select both columns and sort using the
company column, you can hide the added column when done, now on sheet2 use
something like this:

=VLOOKUP(ROW(A1),Sheet1!$A$1:$B$1000,2,0) and copy down as far as needed

A1 being the row of the first entry on sheet1 and $A$1:$B$1000 is the range
with your entries on sheet1, adjust accordingly!

HTH
Jean-Guy


"Big Geoff" wrote:

I am usinng a spreadsheet with 2 sheets.
Sheet 1 contains a list of companies.
Sheet 2 refers to the company name on, sheet 1, by "=Sheet2!B2" type formular.
As I add names to sheet 1 I wish to re-order them alphabetically, however,
when I do this their relative position is not remeberd and I get the same
cell, but a different name. I need to retain the contents location.
Can you help please.

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
How do I set up a constant reference to a cell that moves? ThirstyDave Excel Worksheet Functions 2 September 19th 07 03:50 PM
Target cell reference moves when target is cut and pasted Illya Teideman Excel Discussion (Misc queries) 5 May 31st 07 11:34 AM
Cell to cell movement with arrow keys moves entire sheet ken heinemann Excel Worksheet Functions 1 December 29th 06 12:30 AM
If cell has any character typed in it cell curser moves to next c Form maker Excel Discussion (Misc queries) 1 December 18th 06 03:15 AM
The absolute referenced cell does not move when source cell moves johnc Excel Worksheet Functions 2 May 8th 06 06:33 PM


All times are GMT +1. The time now is 01:20 PM.

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

About Us

"It's about Microsoft Excel"