+ Reply to Thread
Results 1 to 17 of 17

formula to auto arrange the markings

  1. #1
    Registered User
    Join Date
    10-02-2012
    Location
    Philippines
    MS-Off Ver
    Excel 2007
    Posts
    86

    formula to auto arrange the markings

    friends,

    please help me for the formula to auto arrange the markings :

    Column A Column B

    WWC001 WWC001
    WWC005 WWC002
    WWC003 WWC003
    WWC002 WWC004
    WWC004 WWC005


    column B should be formula to arrange the column A.
    👍

  2. #2
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: formula to auto arrange the markings

    Try this array formula

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    ***Array formula must be entered by using key combination of CTRL+SHIFT+ENTER and not just ENTER

    Data Range
    A
    B
    1
    WWC001
    WWC001
    2
    WWC005
    WWC002
    3
    WWC003
    WWC003
    4
    WWC002
    WWC004
    5
    WWC004
    WWC005

    or regular version

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Last edited by AlKey; 11-10-2015 at 12:12 PM.
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  3. #3
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: formula to auto arrange the markings

    Try this...

    Data Range
    A
    B
    1
    Data
    Sorted
    2
    WWC001
    WWC001
    3
    WWC005
    WWC002
    4
    WWC003
    WWC003
    5
    WWC002
    WWC004
    6
    WWC004
    WWC005


    This array formula** entered in B2 and copied down:

    =INDEX(A$2:A$6,MATCH(SMALL(COUNTIF(A$2:A$6,"<"&A$2:A$6),ROWS(B$2:B2)),COUNTIF(A$2:A$6,"<"&A$2:A$6),0))

    ** array formulas need to be entered using the key
    combination of CTRL,SHIFT,ENTER (not just ENTER).
    Hold down both the CTRL key and the SHIFT key
    then hit ENTER.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  4. #4
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,466

    Re: formula to auto arrange the markings

    If all cells have unique first 3-characters, then rank the next 3 digits:

    ="WWC"&TEXT(SMALL(INDEX(--RIGHT($A$1:$A$5,3),),ROW(1:1)),"000")
    Quang PT

  5. #5
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: formula to auto arrange the markings

    Quote Originally Posted by AlKey View Post
    Try this array formula

    =INDEX($A$1:$A$5,MATCH(ROWS(A$1:A1),COUNTIF($A$1:$A$5,"<="&$A$1:$A$5),0))
    Just be aware that that formula will fail if there are duplicate entries:

    Data Range
    A
    B
    1
    Data
    Sorted
    2
    WWC001
    WWC001
    3
    WWC003
    WWC002
    4
    WWC003
    #N/A
    5
    WWC002
    WWC003
    6
    WWC004
    WWC004

  6. #6
    Registered User
    Join Date
    10-02-2012
    Location
    Philippines
    MS-Off Ver
    Excel 2007
    Posts
    86

    Re: formula to auto arrange the markings

    thank you. its great...

  7. #7
    Registered User
    Join Date
    10-02-2012
    Location
    Philippines
    MS-Off Ver
    Excel 2007
    Posts
    86

    Re: formula to auto arrange the markings

    Yes, how about if there is subletter A,B,C etc...

    WWC001
    WWC001A
    WWC001B

    something like that. its not function..

  8. #8
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,466

    Re: formula to auto arrange the markings

    Quote Originally Posted by felixpanganiban View Post
    Yes, how about if there is subletter A,B,C etc...

    WWC001
    WWC001A
    WWC001B

    something like that. its not function..
    Are they full representative ? Is there others, i.e WWC001AZ, or WWC001-A?

  9. #9
    Registered User
    Join Date
    10-02-2012
    Location
    Philippines
    MS-Off Ver
    Excel 2007
    Posts
    86

    Re: formula to auto arrange the markings

    only like this WWC001a, WWC002ab.,,,,,

  10. #10
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,466

    Re: formula to auto arrange the markings

    With original entries in A1:A5, type below formula in B1 then drag down:

    Please Login or Register  to view this content.

  11. #11
    Registered User
    Join Date
    10-02-2012
    Location
    Philippines
    MS-Off Ver
    Excel 2007
    Posts
    86

    Re: formula to auto arrange the markings

    friends,

    also the attached file. pls help.
    Attached Files Attached Files

  12. #12
    Registered User
    Join Date
    10-02-2012
    Location
    Philippines
    MS-Off Ver
    Excel 2007
    Posts
    86

    Re: formula to auto arrange the markings

    sir,

    the above formula is not working

  13. #13
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: formula to auto arrange the markings

    If you have duplicates use formula suggested by Tony Valco in post#3

  14. #14
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,466

    Re: formula to auto arrange the markings

    www.Withdraw.com by bebo021999
    with latest sample file not also I could not find any sub-letter, but I could find other prior strings like "CCF","BR"...

  15. #15
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: formula to auto arrange the markings

    Quote Originally Posted by felixpanganiban View Post
    also the attached file. pls help.
    This array formula** entered in G8:

    =IFERROR(INDEX(B$8:B$23,MATCH(SMALL(IF(D$8:D$23>=G$5,IF(D$8:D$23<=G$6,COUNTIF(B$8:B$23,"<"&B$8:B$23))),ROWS(G$8:G8)),IF(D$8:D$23>=G$5,IF(D$8:D$23<=G$6,COUNTIF(B$8:B$23,"<"&B$8:B$23))),0)),"")

    ** array formulas need to be entered using the key
    combination of CTRL,SHIFT,ENTER (not just ENTER).
    Hold down both the CTRL key and the SHIFT key
    then hit ENTER.

    Copy down until you get blanks.

    Here's your file with this formula implemented...
    Attached Files Attached Files

  16. #16
    Registered User
    Join Date
    10-02-2012
    Location
    Philippines
    MS-Off Ver
    Excel 2007
    Posts
    86

    Re: formula to auto arrange the markings

    thank you very very much mr tony valko. its great!!!!!

  17. #17
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: formula to auto arrange the markings

    You're welcome. Thanks for the feedback!


    If your question has been solved please mark the thread as being solved.

    In the menu bar above the very first post select Thread Tools, then select Mark this thread as solved.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Auto lookup and arrange.
    By elricsia in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 06-29-2015, 04:13 AM
  2. Shape Auto Arrange
    By keby1nko in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-15-2014, 05:11 AM
  3. [SOLVED] Auto Arrange / sort data
    By sarahqputra in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 09-18-2014, 02:24 PM
  4. Macro Auto Arrange Data!
    By sianjialin in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-20-2013, 09:35 PM
  5. Formulas to auto arrange in ascending
    By cyee in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-03-2013, 07:45 AM
  6. [SOLVED] High/Low Markings - Bar Chart
    By calumll in forum Excel General
    Replies: 3
    Last Post: 04-11-2012, 10:07 AM
  7. Auto Arrange Sheets
    By dsexpress in forum Excel General
    Replies: 3
    Last Post: 04-27-2008, 01:06 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1