+ Reply to Thread
Results 1 to 10 of 10

Conversion and sorting of function from Rows to Columns

  1. #1
    Registered User
    Join Date
    03-01-2018
    Location
    Brno, Czech Republic
    MS-Off Ver
    MS Office 2013
    Posts
    20

    Conversion and sorting of function from Rows to Columns

    Hello guys, could anyone, please, help with following task? I need to find a formula for sorting of results placed in H2:P10 to C2:D11. For example result J7 (2,L1,B) would be automatically positioned in C8? Thank you very much for the help!
    Attached Images Attached Images
    Attached Files Attached Files

  2. #2
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: Conversion and sorting of function from Rows to Columns

    Please try at C2:D11

    =LOOKUP(1,1/($A2=$F$2:$F$9)/(C$1=$G$2:$G$9),INDEX($H$2:$P$9,,MATCH($B2,$H$1:$P$1,)))

  3. #3
    Registered User
    Join Date
    03-01-2018
    Location
    Brno, Czech Republic
    MS-Off Ver
    MS Office 2013
    Posts
    20

    Re: Conversion and sorting of function from Rows to Columns

    I translated it to Czech version: =VYHLEDAT(1;1/($A2=$F$2:$F$9)/(C$1=$G$2:$G$9);INDEX($H$2:$P$9;POZVYHLEDAT($B2;$H$1:$P$1))) and it resulted in "#REF!". Is there any mistake in translated formula?

  4. #4
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: Conversion and sorting of function from Rows to Columns

    I don't know Czech, Please check from attached.
    Attached Files Attached Files

  5. #5
    Forum Expert KOKOSEK's Avatar
    Join Date
    08-03-2018
    Location
    Pole in Yorkshire, UK
    MS-Off Ver
    365/2013
    Posts
    2,743

    Re: Conversion and sorting of function from Rows to Columns

    Quote Originally Posted by tomassitoo View Post
    I translated it to Czech version: =VYHLEDAT(1;1/($A2=$F$2:$F$9)/(C$1=$G$2:$G$9);INDEX($H$2:$P$9;;POZVYHLEDAT($B2;$H$1:$P$1;))) and it resulted in "#REF!". Is there any mistake in translated formula?
    Yes.
    You've missed 2 semicolons I guess.
    Happy with my answer * Add Reputation.
    If You are happy with solution, please use Thread tools and mark thread as SOLVED.

  6. #6
    Registered User
    Join Date
    03-01-2018
    Location
    Brno, Czech Republic
    MS-Off Ver
    MS Office 2013
    Posts
    20

    Re: Conversion and sorting of function from Rows to Columns

    Yeah, it works now! Thank you very much! Could you maybe help me with one little modification? (I found I'm missing some rows) According to your formula, now, H2 is not matching C2, J2 is not matching C4. Do you have any suggestion? Thank you very much.
    Attached Files Attached Files

  7. #7
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: Conversion and sorting of function from Rows to Columns

    This only work with Excel 2010 or above
    =INDEX($H:$P,AGGREGATE(15,6,ROW($F$2:$F$9)/($F$2:$F$9=$A2)/($G$2:$G$9=C$1),COUNTIFS($A$2:$A2,$A2,$B$2:$B2,$B2)),MATCH($B2,$H$1:$P$1,))
    Attached Files Attached Files

  8. #8
    Registered User
    Join Date
    03-01-2018
    Location
    Brno, Czech Republic
    MS-Off Ver
    MS Office 2013
    Posts
    20

    Re: Conversion and sorting of function from Rows to Columns

    Thanks a lot. Any recommendation for Excel 2007?

  9. #9
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: Conversion and sorting of function from Rows to Columns

    C2
    =INDEX($H:$P,SMALL(IF(($F$2:$F$9=$A2)*($G$2:$G$9=C$1),ROW($F$2:$F$9)),COUNTIFS($A$2:$A2,$A2,$B$2:$B2,$B2)),MATCH($B2,$H$1:$P$1,))
    Press Ctrl+Shift+Enter
    Attached Files Attached Files

  10. #10
    Registered User
    Join Date
    03-01-2018
    Location
    Brno, Czech Republic
    MS-Off Ver
    MS Office 2013
    Posts
    20

    Re: Conversion and sorting of function from Rows to Columns

    Man, you're genius, you saved my life! Thank you very much!!!!

+ 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. Conversion of function from Rows to Columns
    By tomassitoo in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 06-29-2019, 06:35 PM
  2. Replies: 3
    Last Post: 06-17-2014, 12:07 AM
  3. [SOLVED] alphabetic sorting of 4 columns when one of the columns has 2 rows
    By jnribbit in forum Excel General
    Replies: 10
    Last Post: 08-05-2013, 09:45 PM
  4. Sorting columns by rows
    By transportplanner in forum Excel General
    Replies: 11
    Last Post: 04-21-2010, 09:26 AM
  5. [SOLVED] How to keep rows together when sorting columns?
    By Amit in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-28-2005, 01:06 PM
  6. [SOLVED] Continuous conversion of data from rows to columns
    By Karaman in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-04-2005, 12:06 PM
  7. [SOLVED] Continued Conversion of data from rows to columns in a macro.
    By Karaman in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-03-2005, 12: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