+ Reply to Thread
Results 1 to 12 of 12

Sorting Data

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    08-24-2011
    Location
    Richmond, Va
    MS-Off Ver
    Microsoft® Excel® for Microsoft 365 MSO
    Posts
    137

    Sorting Data

    Hi,

    Could use some help with sorting data in this particular format

    Thanks
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Sorting Data

    Formula for G4.

    Enter using Ctrl Shift Enter

    =SUM(IF(MID($A$5:$A$20,2,1)=F4,1,0))
    My General Rules if you want my help. Not aimed at any person in particular:

    1. Please Make Requests not demands, none of us get paid here.

    2. Check back on your post regularly. I will not return to a post after 4 days.
    If it is not important to you then it definitely is not important to me.

  3. #3
    Forum Contributor
    Join Date
    08-24-2011
    Location
    Richmond, Va
    MS-Off Ver
    Microsoft® Excel® for Microsoft 365 MSO
    Posts
    137
    Quote Originally Posted by mehmetcik View Post
    Formula for G4.

    Enter using Ctrl Shift Enter

    =SUM(IF(MID($A$5:$A$20,2,1)=F4,1,0))
    Thx for trying, what about other cells?

  4. #4
    Forum Contributor
    Join Date
    08-24-2011
    Location
    Richmond, Va
    MS-Off Ver
    Microsoft® Excel® for Microsoft 365 MSO
    Posts
    137
    Quote Originally Posted by mehmetcik View Post
    Formula for G4.

    Enter using Ctrl Shift Enter

    =SUM(IF(MID($A$5:$A$20,2,1)=F4,1,0))
    Can you post an excel spreadsheet as example of your formulas?

  5. #5
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,412

    Re: Sorting Data

    You can put this formula in G4:

    =SUMPRODUCT(--(MID($A$5:$A$20,2,1)=F4))

    then copy into G6, G8 and G11.

    You can use this formula in J4:

    =COUNTIF($A$5:$A$20,I4)

    and copy down into J5:J11.

    This formula in L4:

    =IF(COUNT(O4:S4)=0,"",INDEX($O$3:$S$3,MATCH(MAX(O4:S4),O4:S4,0)))

    copied down to L11 will give you the first subject that is a maximum - I'm just thinking of the best way to get the other subjects.

    Hope this helps (for now).

    Pete

  6. #6
    Forum Contributor
    Join Date
    08-24-2011
    Location
    Richmond, Va
    MS-Off Ver
    Microsoft® Excel® for Microsoft 365 MSO
    Posts
    137
    Quote Originally Posted by Pete_UK View Post
    You can put this formula in G4:

    =SUMPRODUCT(--(MID($A$5:$A$20,2,1)=F4))

    then copy into G6, G8 and G11.

    You can use this formula in J4:

    =COUNTIF($A$5:$A$20,I4)

    and copy down into J5:J11.

    This formula in L4:

    =IF(COUNT(O4:S4)=0,"",INDEX($O$3:$S$3,MATCH(MAX(O4:S4),O4:S4,0)))

    copied down to L11 will give you the first subject that is a maximum - I'm just thinking of the best way to get the other subjects.

    Hope this helps (for now).

    Pete
    Thx . Will give you feedback in a day or 2...... Can you post your example spreadsheet
    Last edited by omer123456; 05-08-2016 at 08:14 AM.

  7. #7
    Forum Contributor
    Join Date
    08-24-2011
    Location
    Richmond, Va
    MS-Off Ver
    Microsoft® Excel® for Microsoft 365 MSO
    Posts
    137
    [QUOTE=omer123456;4381239]Thx . Will give you feedback in a day or 2[/QUOTE

    Can you kindly post an excel example spreadsheet?

  8. #8
    Forum Contributor
    Join Date
    08-24-2011
    Location
    Richmond, Va
    MS-Off Ver
    Microsoft® Excel® for Microsoft 365 MSO
    Posts
    137
    Quote Originally Posted by Pete_UK View Post
    You can put this formula in G4:

    =SUMPRODUCT(--(MID($A$5:$A$20,2,1)=F4))

    Hope this helps (for now).

    Pete
    What if I didn't want mid . Example p2dV5..... This time I need V as my criteria

  9. #9
    Forum Contributor
    Join Date
    08-24-2011
    Location
    Richmond, Va
    MS-Off Ver
    Microsoft® Excel® for Microsoft 365 MSO
    Posts
    137

    Re: Sorting Data

    Hi Pete_UK

    Can you kindly post your spreadsheet too?

    Thx

  10. #10
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,412

    Re: Sorting Data

    I deleted the file without saving it. I told you what formulae to use and in which cells, so you should be able to reproduce it yourself.

    Pete

  11. #11
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Sorting Data

    I didn't understand what you wanted with the other formulae.

    But this works for Column G.


    =SUM(IF(MID($A$5:$A$20,2,1)=F4,1,0))
    Attached Files Attached Files

  12. #12
    Forum Contributor
    Join Date
    08-24-2011
    Location
    Richmond, Va
    MS-Off Ver
    Microsoft® Excel® for Microsoft 365 MSO
    Posts
    137

    Re: Sorting Data

    Thx for trying

+ 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: 12-16-2015, 01:04 PM
  2. Replies: 0
    Last Post: 02-24-2014, 11:27 AM
  3. Macro-need help sorting data to other worksheets/update as new data is entered.
    By Beefy1 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-31-2014, 12:09 PM
  4. [SOLVED] Data Analysis: Comparing 3 columns, sorting, removing unique values, display data
    By kmills2626 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 10-14-2013, 07:27 AM
  5. Sorting 2 data ranges by comparing one column in each and sorting to match
    By MDKsmiffy in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-17-2013, 03:30 PM
  6. Replies: 3
    Last Post: 12-20-2012, 06:16 AM
  7. Sorting, finding dulicates, moving one data element up, deleting original data
    By rickwtx in forum Excel Programming / VBA / Macros
    Replies: 22
    Last Post: 01-13-2011, 07:32 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