Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4
Default Locate merged cells to sort on 3 columns

Repeated attempts to locate merged cells have failed. Get message when trying
to sort data with priority on 3 columns: "This operation requires the merged
cells to be identically sized"

How can this be done? I have tried copying & pastng vaulues only; am at wits
end. Size of datset: 600+rows x 52 columns
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 35,218
Default Locate merged cells to sort on 3 columns

Do you want to locate the merged cells or do you want to remove them?

If you want to remove the merged cells, then select the range to fix (all the
cells on the worksheet is ok with me!).

Then Format|Cells|alignment tab
clear that merge cells checkbox.

If you really only wanted to determine where they were, you could use a divide
an conquer approach.

Select a range
show alignment tab and check that "merge cells" checkbox.

If it's clear, then there are no merged cells in that selection.

If it's not clear, then reduce the size of the range (by half) and check each
half again. (repeat until you've checked all the cells you're interested in.

Or you could use a macro:

Option Explicit
Sub testme()

Dim myCell As Range
Dim resp As Long

For Each myCell In ActiveSheet.UsedRange.Cells
If myCell.MergeCells Then
If myCell.Address = myCell.MergeArea(1).Address Then
resp = MsgBox(prompt:="found: " _
& myCell.MergeArea.Address & vbLf & _
"Continue looking", Buttons:=vbYesNo)
If resp = vbNo Then
Exit Sub
End If
End If
End If
Next myCell

End Sub

If you're new to macros:

Debra Dalgleish has some notes how to implement macros he
http://www.contextures.com/xlvba01.html

David McRitchie has an intro to macros:
http://www.mvps.org/dmcritchie/excel/getstarted.htm

Ron de Bruin's intro to macros:
http://www.rondebruin.nl/code.htm

(General, Regular and Standard modules all describe the same thing.)

Rob B wrote:

Repeated attempts to locate merged cells have failed. Get message when trying
to sort data with priority on 3 columns: "This operation requires the merged
cells to be identically sized"

How can this be done? I have tried copying & pastng vaulues only; am at wits
end. Size of datset: 600+rows x 52 columns


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,722
Default Locate merged cells to sort on 3 columns

As it sounds like you are not wanting merged cells, what you could do would
be to select all, then format cells. Under alignment, make sure the "merge
cells" box is unchecked. Ok out.

You should now be able to sort.
--
Best Regards,

Luke M
*Remember to click "yes" if this post helped you!*


"Rob B" wrote:

Repeated attempts to locate merged cells have failed. Get message when trying
to sort data with priority on 3 columns: "This operation requires the merged
cells to be identically sized"

How can this be done? I have tried copying & pastng vaulues only; am at wits
end. Size of datset: 600+rows x 52 columns

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 locate merged cells in my Excel worksheet? KarenB Excel Discussion (Misc queries) 3 April 10th 09 08:40 PM
How do I locate merged cells jben001 Excel Discussion (Misc queries) 4 April 26th 07 09:57 PM
How locate merged cells in Excel LESTEREDEN Excel Discussion (Misc queries) 1 September 8th 05 08:02 PM
Sort columns containing merged cells. Ron Excel Discussion (Misc queries) 1 May 4th 05 01:08 PM
Sorting merged cellsHow do I sort merged cells not identically siz Laval Excel Worksheet Functions 1 November 3rd 04 09:40 PM


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