+ Reply to Thread
Results 1 to 7 of 7

combine sector 1 with sector 2 and with sector 3. but it cannot have a repeated number.

  1. #1
    Forum Contributor
    Join Date
    11-29-2014
    Location
    brasil
    MS-Off Ver
    excel 2016
    Posts
    2,179

    combine sector 1 with sector 2 and with sector 3. but it cannot have a repeated number.

    combine sector 1 with sector 2 and with sector 3. but it cannot have a repeated number.
    objective is to always cross the three sectors adding 15 numbers without having repetitions =
    ex= sector 1 has 01 02 05 06 with sector two 06 07..
    it cannot because it repeats the number 06, when the macro combines and has repeated numbers, you have to exclude the
    line
    always the crossing is sector 1 with sector 2 and with sector 3 adding 15 numbers
    https://www.excelforum.com/attachmen...1&d=1691840837
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    10-11-2021
    Location
    Netherlands
    MS-Off Ver
    365
    Posts
    1,388

    Re: combine sector 1 with sector 2 and with sector 3. but it cannot have a repeated number

    So what is your expected outcome? All lines which are allowed?

  3. #3
    Forum Expert
    Join Date
    10-11-2021
    Location
    Netherlands
    MS-Off Ver
    365
    Posts
    1,388

    Re: combine sector 1 with sector 2 and with sector 3. but it cannot have a repeated number

    Please Login or Register  to view this content.

  4. #4
    Forum Contributor
    Join Date
    11-29-2014
    Location
    brasil
    MS-Off Ver
    excel 2016
    Posts
    2,179

    Re: combine sector 1 with sector 2 and with sector 3. but it cannot have a repeated number

    hello,ok jec, thanks, for seeing the post, yes they are all the lines crossing in the three sectors, but it cannot have repeated numbers, in the line,
    yes they are all the lines of sector1 with sector2 and with sector3, amacro will filter the lines with repetition of numbers and exclude

  5. #5
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,670

    Re: combine sector 1 with sector 2 and with sector 3. but it cannot have a repeated number

    If I understand correctly, then this is a way to get the rows using formulas.
    1. Fill column R using: =MAX(FREQUENCY(A6:Q6,A6:Q6))=1
    2. Fill columns AK:BA using: =IFERROR(INDEX(A$6:A$131,AGGREGATE(15,6,(ROW(A$6:A$131)-ROW(A$5))/($R$6:$R$133=TRUE),ROWS(AK$6:AK6))),"")
    3. Apply the following formatting to columns AK:BA 00;;
    Let us know if you have any questions.
    Attached Files Attached Files
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  6. #6
    Forum Contributor
    Join Date
    11-29-2014
    Location
    brasil
    MS-Off Ver
    excel 2016
    Posts
    2,179

    Re: combine sector 1 with sector 2 and with sector 3. but it cannot have a repeated number

    hello jeteMC, almost there, the macro has to combine all of sector 1 with sector two and with sector 3, it has to combine THE THREE COLUMNS OR THE THREE SECTORS
    The sum of the sectors must give 15 numbers
    goal is to eliminate repeated numbers in each line
    I already tried to combine 126x7126x 126 sectors1x2x3
    but with a lot of repetition of numbers the macro will do precisely this to filter the lines that have repeated numbers

  7. #7
    Forum Contributor
    Join Date
    11-29-2014
    Location
    brasil
    MS-Off Ver
    excel 2016
    Posts
    2,179

    Re: combine sector 1 with sector 2 and with sector 3. but it cannot have a repeated number

    hello jeteMec almost there, the way you did it was in a straight line, you have to combine the 1st sector with all the formations of the 2nd sector 126x1716 and then with the third sector, not in a straight line is wrong
    126x7116x126= 1x2x3

+ 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. [SOLVED] detect the number of digits in each sector.
    By jorel in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-29-2021, 05:50 AM
  2. [SOLVED] detect only the 1st number in the position of each sector.
    By jorel in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-14-2020, 08:18 AM
  3. [SOLVED] detect the smallest with the highest number in each sector, forming two pairs
    By jorel in forum Excel Programming / VBA / Macros
    Replies: 32
    Last Post: 04-12-2020, 02:56 PM
  4. detect in each sector its corresponding number.
    By jorel in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 10-26-2019, 02:24 PM
  5. Summing sub-sector but returning sector data
    By JonnyOh in forum Excel General
    Replies: 2
    Last Post: 08-22-2019, 11:04 AM
  6. Count Sector wise number of client
    By Arif Abdullah in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-05-2013, 06:20 AM
  7. sorting by sector and find largest 3 number each macro help needed
    By barkiny in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-07-2005, 07:05 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