+ Reply to Thread
Results 1 to 11 of 11

How to sort the types of materials from one column according to position from other column

  1. #1
    Registered User
    Join Date
    02-24-2021
    Location
    Romaia
    MS-Off Ver
    sheets
    Posts
    6

    Exclamation How to sort the types of materials from one column according to position from other column

    I have in Page1, column B, 5 types of materials. In column L, I have numbered the position of each one.
    So, Position 1 to 6, is 'Plastic tube', 7 to 11 is 'Textil Tube':

    Screenshot 2021-02-24 at 11.17.52 AM.png

    I need a formula, in Page 2, to summarize all of this, that can calculate this automatically, what kind of material is in each postion .

    Like this:

    Position :
    1,2,3,4,5,6,15,16,17 - Plastic tube
    7,8,9,10,11,19,20,21,22 - Textil tube
    12,13,14 - Heat tube


    I tried a lot with IF but not a good result. Not even close...

    Anyone can help?

    Thank you
    Attached Files Attached Files
    Last edited by El3cTr0; 02-25-2021 at 03:28 AM.

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: How to sort the types of materials from one column according to position from other co

    Hi,

    It's not clear what results you expect, i.e what do YOU mean by summarise? Do you mean Count?

    Please ADD the results you expect and reupload
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Registered User
    Join Date
    02-24-2021
    Location
    Romaia
    MS-Off Ver
    sheets
    Posts
    6

    Re: How to sort the types of materials from one column according to position from other co

    Hi,

    Yes. I need it to count them.

    The result that I'm looking for is in Page1 or below.

    Screenshot 2021-02-24 at 1.25.09 PM.png

    For each Position from Column L, what kind of material is in Column B
    Attached Files Attached Files

  4. #4
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: How to sort the types of materials from one column according to position from other co

    This is still confusing. What you're showing is a list of positions, not a count of anything?

    Are you in fact saying that the count results you want to know are 10 plastic tubes, (you seem to have missed out position 18), 9 Textil tubes, 3 Heat tubes
    Last edited by Richard Buttrey; 02-24-2021 at 07:48 AM.

  5. #5
    Registered User
    Join Date
    02-24-2021
    Location
    Romaia
    MS-Off Ver
    sheets
    Posts
    6

    Re: How to sort the types of materials from one column according to position from other co

    No, All the positions from column L should appear. But I need to make the difference. What I sent, are just 22 position, normally I have hundreds.
    The point is that I need to classify for each type of material(from column B) in what positions, the number(from column L) can be found.

  6. #6
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,337

    Re: How to sort the types of materials from one column according to position from other co

    Are you saying from the "table" (data) in Sheet 1 you want to create the formatted table in Page 2 i.e fill in Column B with the article corresponding to those in Page1?

  7. #7
    Registered User
    Join Date
    02-24-2021
    Location
    Romaia
    MS-Off Ver
    sheets
    Posts
    6

    Re: How to sort the types of materials from one column according to position from other co

    Contrary. Only Page 2 is important. The Page 1 is for example, just for what formula should do.
    From table from page 2 I need to get the result data from Page 1, a formula that can do what I did manually.

    I have the table in front and I need to organize each type of material and write in what position can be found.

  8. #8
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: How to sort the types of materials from one column according to position from other co

    I accept that language may be a problem here but I'm really struggling to understand the requirement.

    You've mentioned the need to COUNT something but other than the totals on row 36, which presumably are not relevant to this task, I can't see any count of anything. In #5 you also mention 'differences' but again I've no idea what you expect.

    Please clearly indicate with specific references to ranges
    a) what data you start out with.
    b) manually add the results you expect and say where those are, and explain in a note the calculations you have done to obtain the results.

  9. #9
    Registered User
    Join Date
    02-24-2021
    Location
    Romaia
    MS-Off Ver
    sheets
    Posts
    6

    Re: How to sort the types of materials from one column according to position from other co

    a) data that I start is the Page 2.
    Attachment 720476

    This is what I have and from this I need to start.

    b) The result is in Page 1 and is:
    Attachment 720478

    The results are in Page 2. If I'm looking at Column L, I have numbered the positions, 1,2,3,4, etc... We'll this are the positions from a document. First position is Plastic tube, second Plastic tube, .... 7th Textil tube and so on.
    Now, if in document I have 300-400 positions then I need to explain what type of material is in those positions. To show them Page 2 is too much, that's why I need to make it shorter.
    For that I need a formula that can search for description and add the numbers from column L that can be found.

    So, IF I search for Plastic tube to show 1,2,3,4,5,6,15,16,17.

    What I tried is function IF. To search in Column B from description and then to show in what position can be found. But I don't know how to show the position .
    EX:=if(left(Page2!B:B100,7) = "Plastic".......

    I hope that I have explained myself...

  10. #10
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,337

    Re: How to sort the types of materials from one column according to position from other co

    In Page2 .Helper column

    M14

    =IF($B14<>$B13,$M13+1,$M13)

    copy down


    In Page 1

    D31

    =INDEX(Page2!$B$14:$B$35,MATCH(ROWS($1:1),Page2!$M$14:$M$35,0))

    E31

    =INDEX(Page2!$L$14:$L$35,MATCH(ROWS($1:1),Page2!$M$14:$M$35,0))

    F31

    =COUNTIF(Page2!$M$14:$M$35,"<=" &ROWS($1:1))

    G31

    =$E31 & " - " & $F31


    Copy all down
    Attached Files Attached Files
    Last edited by JohnTopley; 02-24-2021 at 10:51 AM.

  11. #11
    Registered User
    Join Date
    02-24-2021
    Location
    Romaia
    MS-Off Ver
    sheets
    Posts
    6

    Talking Re: How to sort the types of materials from one column according to position from other co

    Thank a lot. You saved a lot of my time.

    Thank youuu

+ 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: 2
    Last Post: 11-14-2019, 05:24 AM
  2. Replies: 12
    Last Post: 09-08-2018, 10:34 PM
  3. [SOLVED] Button to Copy Column Range with ActiveCell position, Losing formatting after 3rd column
    By xlyfe in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 04-16-2018, 03:42 PM
  4. Replies: 1
    Last Post: 03-29-2018, 07:58 AM
  5. Replies: 2
    Last Post: 05-19-2015, 08:50 AM
  6. How to sort by date column, which is not always at the same position?
    By Efendi in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-22-2013, 09:06 AM
  7. Sort column containing different data types
    By pavlosbat in forum Excel General
    Replies: 1
    Last Post: 11-24-2005, 04:45 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