Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 67
Default Sort changing formulas

I have a range of cells that I am sorting based the cells in a particular
column which is =IF(B2=B3,FALSE,""). I want the formula to stay the same
"relative" to it's location (if that's the right way to say it). The B2=B3
part might change to B20=B27 or something like that - in the sense that it
doesn't keep it relative like how a macro can record. Any ideas?

--
David P.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,856
Default Sort changing formulas

Starting with the formula:

=IF(B2=B3,FALSE,""),

copy this down the column. Then highlight the column and CTRL-H (Find
& Replace) with these settings:

Find What: B
Replace with: B$

Click Replace All. Then when you sort you should get the effect that
you are after.

Hope this helps.

Pete


On May 12, 10:13 pm, David P.
wrote:
I have a range of cells that I am sorting based the cells in a particular
column which is =IF(B2=B3,FALSE,""). I want the formula to stay the same
"relative" to it's location (if that's the right way to say it). The B2=B3
part might change to B20=B27 or something like that - in the sense that it
doesn't keep it relative like how a macro can record. Any ideas?

--
David P.



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 903
Default Sort changing formulas

Hi David P.,

If the formula is on Row 3 when entered:

=IF(OFFSET(B3,-1,0)=B3,False,"")

More information on OFFSET
http://www.mvps.org/dmcritchie/excel/offset.htm

---
HTH,
David McRitchie, Microsoft MVP - Excel
My Excel Pages: http://www.mvps.org/dmcritchie/excel/excel.htm
Search Page: http://www.mvps.org/dmcritchie/excel/search.htm

"David P." wrote in message ...
I have a range of cells that I am sorting based the cells in a particular
column which is =IF(B2=B3,FALSE,""). I want the formula to stay the same
"relative" to it's location (if that's the right way to say it). The B2=B3
part might change to B20=B27 or something like that - in the sense that it
doesn't keep it relative like how a macro can record. Any ideas?

--
David P.



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 sort two columns without changing the formatting? LisaD Excel Worksheet Functions 5 April 5th 07 02:01 PM
automatically sort a table after changing a cell Aaron Excel Discussion (Misc queries) 1 July 26th 06 06:30 PM
Changing the range of a table sort RedHook New Users to Excel 2 May 31st 06 08:38 AM
Preform alphabetical sort without formula in cell changing ace Excel Discussion (Misc queries) 1 April 16th 05 01:46 PM
sort data without formulas in other cells changing? Vicky Excel Discussion (Misc queries) 2 March 15th 05 01:17 PM


All times are GMT +1. The time now is 06:16 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"