+ Reply to Thread
Results 1 to 23 of 23

How can numbering alphabetically grop wise from master sheet?

  1. #1
    Registered User
    Join Date
    03-13-2011
    Location
    Dhaka
    MS-Off Ver
    Excel 2003
    Posts
    11

    How can numbering alphabetically grop wise from master sheet?

    Dear Experts,
    Pls help me how can numbering alphabetically group wise from master excel sheet. For example-

    Master sheet
    SL # Group Name Sort Number
    1 1 Genamox 4
    2 1 Anquil 1
    3 1 Citaparm 3
    4 1 Ariprazole 2
    5 2 Genamox 4
    6 2 Anquil 1
    7 2 Citaparm 3
    8 2 Ariprazole 2


    Can it possible automatically through any formula? pls

    Regards

    Emran
    Attached Files Attached Files
    Last edited by emran06; 01-25-2015 at 08:17 AM. Reason: update

  2. #2
    Forum Expert sourabhg98's Avatar
    Join Date
    10-22-2014
    Location
    New Delhi, India
    MS-Off Ver
    Excel 2007, 2013
    Posts
    1,899

    Re: How can numbering alphabetically grop wise from master sheet?

    Please attach a sample workbook. Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.
    http://www.excelforum.com/members/da...ch-a-file.html

  3. #3
    Forum Expert sourabhg98's Avatar
    Join Date
    10-22-2014
    Location
    New Delhi, India
    MS-Off Ver
    Excel 2007, 2013
    Posts
    1,899

    Re: How can numbering alphabetically grop wise from master sheet?

    So you want to first sort out by group number and then alphabetically in each group?

  4. #4
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: How can numbering alphabetically grop wise from master sheet?

    For excel 2007 and higher you can use the formula below.

    d4= 1+countifs($B$3:$B$100,B3,$C$3:$C$100,"<"&C3)

    Since you use excel 2003 I believe countifs is not available.

    In that case you have to sort.

    First criteria column B => small to big, second criteria column C => A to Z
    Last edited by oeldere; 01-25-2015 at 07:47 AM. Reason: countif changed in countifs
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  5. #5
    Forum Expert sourabhg98's Avatar
    Join Date
    10-22-2014
    Location
    New Delhi, India
    MS-Off Ver
    Excel 2007, 2013
    Posts
    1,899

    Re: How can numbering alphabetically grop wise from master sheet?

    Try this
    I have made a macro----
    Just put in your data and press go
    Works for first 30 rows ...change the array to suit your requirement or ask me to do the same....
    Tell me if it works right….

    Hope it helps

    If you are satisfied then mark the thread as solved and you can just click on ADD REPUTATION below my post to say thanks...by doing this you add to my reputation…...

    Regards
    Sourabh Gupta
    Attached Files Attached Files

  6. #6
    Forum Expert sourabhg98's Avatar
    Join Date
    10-22-2014
    Location
    New Delhi, India
    MS-Off Ver
    Excel 2007, 2013
    Posts
    1,899

    Re: How can numbering alphabetically grop wise from master sheet?

    Quote Originally Posted by oeldere View Post
    For excel 2007 and higher you can use the formula below.

    d4= 1+countif($B$3:$B$100,B3,$C$3:$C$100,"<"&C3)
    I think that should be countifs....

  7. #7
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: How can numbering alphabetically grop wise from master sheet?

    @sourabhg98

    very good point, I changed it in #4.

    Thanks for showing the error, realy appreciate it.

  8. #8
    Registered User
    Join Date
    03-13-2011
    Location
    Dhaka
    MS-Off Ver
    Excel 2003
    Posts
    11

    Re: How can numbering alphabetically grop wise from master sheet?

    Quote Originally Posted by sourabhg98 View Post
    So you want to first sort out by group number and then alphabetically in each group?
    Data not allowed to sort out by group, Formula can be conditional so that if group is 1 then data will count in alphabetly

  9. #9
    Registered User
    Join Date
    03-13-2011
    Location
    Dhaka
    MS-Off Ver
    Excel 2003
    Posts
    11

    Re: How can numbering alphabetically grop wise from master sheet?

    Quote Originally Posted by sourabhg98 View Post
    So you want to first sort out by group number and then alphabetically in each group?
    Data not allowed to sort out by group, Formula can be conditional so that if group is 1 then data will count in alphabetically

  10. #10
    Registered User
    Join Date
    03-13-2011
    Location
    Dhaka
    MS-Off Ver
    Excel 2003
    Posts
    11

    Re: How can numbering alphabetically grop wise from master sheet?

    not working in 2003

  11. #11
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: How can numbering alphabetically grop wise from master sheet?

    Please Login or Register  to view this content.
    This means you are NOT allowed to sort the data?

  12. #12
    Registered User
    Join Date
    03-13-2011
    Location
    Dhaka
    MS-Off Ver
    Excel 2003
    Posts
    11

    Re: How can numbering alphabetically grop wise from master sheet?

    Quote Originally Posted by oeldere View Post
    Please Login or Register  to view this content.
    This means you are NOT allowed to sort the data?
    Yes sir, here data more 1000 rows and more then 50 groups (equal group number in different rows like group 1 is row 1, 10, 50, 105, 250, so on etc) and each group required sequence number in alphabetically.

    Thank you

  13. #13
    Forum Expert sourabhg98's Avatar
    Join Date
    10-22-2014
    Location
    New Delhi, India
    MS-Off Ver
    Excel 2007, 2013
    Posts
    1,899

    Re: How can numbering alphabetically grop wise from master sheet?

    Ohk
    So you just need those numbers
    Check out this one.....
    After entering your data press the go button....
    Works for 1000 rows...

    Note: Remember to enable the macros from the options bar that appears just after you open the workbook

    Hope it helps

    If you are satisfied then mark the thread as solved and you can just click on ADD REPUTATION below my post to say thanks...by doing this you add to my reputation…...

    Regards
    Sourabh Gupta
    Attached Files Attached Files

  14. #14
    Registered User
    Join Date
    03-13-2011
    Location
    Dhaka
    MS-Off Ver
    Excel 2003
    Posts
    11

    Re: How can numbering alphabetically grop wise from master sheet?

    Quote Originally Posted by sourabhg98 View Post
    Ohk
    So you just need those numbers
    Check out this one.....
    After entering your data press the go button....
    Works for 1000 rows...

    Note: Remember to enable the macros from the options bar that appears just after you open the workbook

    Hope it helps

    If you are satisfied then mark the thread as solved and you can just click on ADD REPUTATION below my post to say thanks...by doing this you add to my reputation…...

    Regards
    Sourabh Gupta
    Thank you sir for your cordial trying but sorry to inform u that the sheet makes run time error, end and debug

  15. #15
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: How can numbering alphabetically grop wise from master sheet?

    1) What you gonna do with your data, when you know the ranknumber?

    2) There is always a set of 4 data, belonging to a set?

  16. #16
    Forum Expert sourabhg98's Avatar
    Join Date
    10-22-2014
    Location
    New Delhi, India
    MS-Off Ver
    Excel 2007, 2013
    Posts
    1,899

    Re: How can numbering alphabetically grop wise from master sheet?

    Are you sure??... It is working perfectly here.....

  17. #17
    Forum Expert sourabhg98's Avatar
    Join Date
    10-22-2014
    Location
    New Delhi, India
    MS-Off Ver
    Excel 2007, 2013
    Posts
    1,899

    Re: How can numbering alphabetically grop wise from master sheet?

    Maybe there is a problem with the excel version...

  18. #18
    Forum Expert sourabhg98's Avatar
    Join Date
    10-22-2014
    Location
    New Delhi, India
    MS-Off Ver
    Excel 2007, 2013
    Posts
    1,899

    Re: How can numbering alphabetically grop wise from master sheet?

    Just try by putting this in the beginning {before "Range("A2:D1000")}
    Application.DisplayAlerts=False
    and this at the end {before "end sub"}
    Application.DisplayAlerts=True

  19. #19
    Registered User
    Join Date
    03-13-2011
    Location
    Dhaka
    MS-Off Ver
    Excel 2003
    Posts
    11

    Re: How can numbering alphabetically grop wise from master sheet?

    Quote Originally Posted by oeldere View Post
    1) What you gonna do with your data, when you know the ranknumber?

    2) There is always a set of 4 data, belonging to a set?
    I have attached revised sheet, Pls see it again. Previous sheet name was duplicate but actual data is unique not same for each group.

  20. #20
    Forum Expert sourabhg98's Avatar
    Join Date
    10-22-2014
    Location
    New Delhi, India
    MS-Off Ver
    Excel 2007, 2013
    Posts
    1,899

    Re: How can numbering alphabetically grop wise from master sheet?

    Ohk use this one
    D3 =IF(A3="","",1+SUMPRODUCT(($B$3:$B$10=B3)*($C$3:$C$10<C3)))
    Copy downwards......

    Hope it helps.....
    If you are satisfied then mark the thread as solved and you can just click on ADD REPUTATION below my post to say thanks...by doing this you add to my reputation…...

    Regards
    Sourabh Gupta

  21. #21
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: How can numbering alphabetically grop wise from master sheet?

    @sourabhg98

    Very good point using sumproduct (which is available in excel 2003).

    I added your formula in a sheet and attached it.

    @emran06

    You did not answered the question what you gonna do with the result.

  22. #22
    Registered User
    Join Date
    03-13-2011
    Location
    Dhaka
    MS-Off Ver
    Excel 2003
    Posts
    11

    Re: How can numbering alphabetically grop wise from master sheet?

    Quote Originally Posted by sourabhg98 View Post
    Ohk use this one
    D3 =IF(A3="","",1+SUMPRODUCT(($B$3:$B$10=B3)*($C$3:$C$10<C3)))
    Copy downwards......

    Hope it helps.....
    If you are satisfied then mark the thread as solved and you can just click on ADD REPUTATION below my post to say thanks...by doing this you add to my reputation…...

    Regards
    Sourabh Gupta
    Thank you very much Sourabh Gupta, Problem is solved as per your formula. Thank you again for your cordial cooperation.

    Emran

  23. #23
    Registered User
    Join Date
    03-13-2011
    Location
    Dhaka
    MS-Off Ver
    Excel 2003
    Posts
    11

    Re: How can numbering alphabetically grop wise from master sheet?

    Quote Originally Posted by oeldere View Post
    @sourabhg98

    Very good point using sumproduct (which is available in excel 2003).

    I added your formula in a sheet and attached it.

    @emran06

    You did not answered the question what you gonna do with the result.
    I will make item code in group wise from master sheet of all items.

    Thanks

+ 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. Replies: 1
    Last Post: 09-15-2014, 01:03 PM
  2. split BD wise data into individual workbook from master sheet
    By sinha.riteshabap in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 07-10-2014, 03:24 AM
  3. [SOLVED] Weekly Sales moved to Master, if match conditions replace existing other wise new line
    By gwsampso in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-16-2013, 07:18 AM
  4. Location Wise Inventory Report from Master Data of Inward & Outward
    By pakhare.kiran in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-11-2013, 04:18 PM
  5. [SOLVED] I want change the data row wise to coloum wise & coloumn wise to row wise.
    By satputenandkumar0 in forum Excel General
    Replies: 3
    Last Post: 12-20-2012, 08:34 AM

Tags for this Thread

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