+ Reply to Thread
Results 1 to 7 of 7

count each element in the column and assign it to the row it is responsible for.

  1. #1
    Registered User
    Join Date
    08-08-2022
    Location
    Azerbaijan
    MS-Off Ver
    Office 365, 16.0.15602.35055
    Posts
    3

    Post count each element in the column and assign it to the row it is responsible for.

    Hi everyone!

    I'm new at this forum and that's my first question about Excel.

    So, I have a one table which it has a different kind of data.

    ***First table (table with machines column)***

    I want to count each vlans in the "vlan" column and assign it to the "host" it is responsible for.

    İ attached a example table image that I want:

    ***Second Table***

    So. how can i automate this procedure? I need, when new vlan added to first table it will change in the second table also
    Attached Images Attached Images
    Attached Files Attached Files
    Last edited by radjabov; 08-08-2022 at 09:48 AM.

  2. #2
    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,200

    Re: count each element in the column and assign it to the row it is responsible for.

    See yellow banner at top of pageon how to attach a sample workbook.

    And please update your Excel version (365, 2019, 2016) as you appear to have entered the release number: answers DO depend on this information being correct.
    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

  3. #3
    Registered User
    Join Date
    08-08-2022
    Location
    Azerbaijan
    MS-Off Ver
    Office 365, 16.0.15602.35055
    Posts
    3

    Re: count each element in the column and assign it to the row it is responsible for.

    Thank you for advice, I changed the Excel version and I attached the workbook.
    Last edited by radjabov; 08-08-2022 at 09:18 AM.

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

    Re: count each element in the column and assign it to the row it is responsible for.

    With Text to column and , as seperator.

    After that Power Query to re-arange the data.

    After that a Pivot Table to show the expected result.


    See the attached file.


    Notice the expected result is differant.
    Attached Files Attached Files
    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
    Registered User
    Join Date
    08-08-2022
    Location
    Azerbaijan
    MS-Off Ver
    Office 365, 16.0.15602.35055
    Posts
    3

    Re: count each element in the column and assign it to the row it is responsible for.

    Yeah That's what I want!

    Thank you for helping!

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

    Re: count each element in the column and assign it to the row it is responsible for.

    Thanks for the rep.

    Glad I could help.

    Thanks for marking the question solved.

  7. #7
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,080

    Re: count each element in the column and assign it to the row it is responsible for.

    With a formula
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files

+ 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] Count only cells with specific formula element
    By CMPeterson in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 08-14-2019, 09:11 AM
  2. Count if previous element doesnīt have specific value
    By Ataps in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-19-2018, 02:16 PM
  3. [SOLVED] Comma separated string element count
    By icyrius in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 09-30-2017, 10:58 AM
  4. How to count number of occurences of each element within array
    By cgkmal in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 07-05-2014, 04:33 PM
  5. Replies: 2
    Last Post: 09-25-2013, 10:14 AM
  6. count number of element
    By iscar_marius in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 12-19-2008, 10:45 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