#1   Report Post  
Posted to microsoft.public.excel.misc
harvindersingh1
 
Posts: n/a
Default Sorting


I have certain data in a column A(say). Now, in column A there are
certain entries that are repeating.I want that the entries that are
repeating two times should be displayed in column B, the items that are
repeating three times are displayed in column C and so on.

Kindly help....

With regards
Harvinder Singh


--
harvindersingh1
------------------------------------------------------------------------
harvindersingh1's Profile: http://www.excelforum.com/member.php...o&userid=31725
View this thread: http://www.excelforum.com/showthread...hreadid=533628

  #2   Report Post  
Posted to microsoft.public.excel.misc
starguy
 
Posts: n/a
Default Sorting


i supposed that your data is in the range of A1:A50
in col B enter this formula
=if(countif($A$1:$A$50,A1)=2,A1,"") and copy this formula down to B50
in col C enter this formula
=if(countif($A$1:$A$50,A1)=3,A1,"") and copy this formula down to C50

harvindersingh1 Wrote:
I have certain data in a column A(say). Now, in column A there are
certain entries that are repeating.I want that the entries that are
repeating two times should be displayed in column B, the items that are
repeating three times are displayed in column C and so on.

Kindly help....

With regards
Harvinder Singh



--
starguy
------------------------------------------------------------------------
starguy's Profile: http://www.excelforum.com/member.php...o&userid=32434
View this thread: http://www.excelforum.com/showthread...hreadid=533628

  #3   Report Post  
Posted to microsoft.public.excel.misc
Bryan Hessey
 
Posts: n/a
Default Sorting


For data starting at A2, in B2 put the formula:


=IF($A2=$A1,"",IF($A2<INDIRECT("$A"&ROW()+COLUMN( )-2),"",INDIRECT("$A"&ROW()+COLUMN()-2)))

and formula drag this to the right as far as needed, then down as far
as needed (ie, bulk-drag B2 to (say) F2) will show up to 5 repeats,
display on the first line only.

Hope this helps

--

starguy Wrote:
i supposed that your data is in the range of A1:A50
in col B enter this formula
=if(countif($A$1:$A$50,A1)=2,A1,"") and copy this formula down to B50
in col C enter this formula
=if(countif($A$1:$A$50,A1)=3,A1,"") and copy this formula down to C50



--
Bryan Hessey
------------------------------------------------------------------------
Bryan Hessey's Profile: http://www.excelforum.com/member.php...o&userid=21059
View this thread: http://www.excelforum.com/showthread...hreadid=533628

  #4   Report Post  
Posted to microsoft.public.excel.misc
Bryan Hessey
 
Posts: n/a
Default Sorting


For data starting at A2, in B2 put the formula:


=IF($A2=$A1,"",IF($A2<INDIRECT("$A"&ROW()+COLUMN( )-2),"",INDIRECT("$A"&ROW()+COLUMN()-2)))

and formula drag this to the right as far as needed, then down as far
as needed (ie, bulk-drag B2 to (say) F2) will show up to 5 repeats,
display on the first line only.

Hope this helps

--

starguy Wrote:
i supposed that your data is in the range of A1:A50
in col B enter this formula
=if(countif($A$1:$A$50,A1)=2,A1,"") and copy this formula down to B50
in col C enter this formula
=if(countif($A$1:$A$50,A1)=3,A1,"") and copy this formula down to C50



--
Bryan Hessey
------------------------------------------------------------------------
Bryan Hessey's Profile: http://www.excelforum.com/member.php...o&userid=21059
View this thread: http://www.excelforum.com/showthread...hreadid=533628

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
Maintaining cell reference after sorting GRITS Excel Discussion (Misc queries) 2 April 30th 23 07:42 PM
Sorting SnobbishJade New Users to Excel 6 April 2nd 06 02:08 AM
sorting non contiguous ranges gsh20 Excel Discussion (Misc queries) 1 September 8th 05 04:50 PM
Advice sought: Multiple column sorting davidm Excel Worksheet Functions 3 July 29th 05 02:06 PM
Adding a KeyID column for sorting Rebecca New Users to Excel 3 February 20th 05 07:09 PM


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