+ Reply to Thread
Results 1 to 11 of 11

Write once a word written several times in another table and find a percentage by category

  1. #1
    Registered User
    Join Date
    08-17-2021
    Location
    Israel, South
    MS-Off Ver
    Microsoft 365
    Posts
    11

    Write once a word written several times in another table and find a percentage by category

    there is one table of "Type of transportation" and if the KM is good or bad
    I want to create another table just with the "Type of transportation" and "Good percentage", this means if I add more types for example "taxi" it automatically adds in the right table with the "Good percentage"
    Attached Files Attached Files

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

    Re: Write once a word written several times in another table and find a percentage by cate

    Seems like one easy way to accomplish this would be to add two columns, Good and Bad.
    The columns are populated using formulas similar to: =IF([@[good / bad]]=Table1[[#Headers],[Good]],1,0)
    The results are displayed using a pivot table to which the following calculated field is added: =Good/(Good+Bad )
    Note that when new items are added to Table1 (columns A:E) the pivot table needs to be refreshed.
    Let us know if you have any questions.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

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

    Re: Write once a word written several times in another table and find a percentage by cate

    If you don't want to add columns and since you are using the 365 version of Excel, you could add Table 1 to the data model and utilize the following measure:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Pivot Table still needs to be refreshed after new data is added to Table1.
    Let us know if you have any questions.

  4. #4
    Forum Expert wk9128's Avatar
    Join Date
    08-15-2020
    Location
    Taiwan
    MS-Off Ver
    365 V2403 and WPS V2022
    Posts
    3,393

    Re: Write once a word written several times in another table and find a percentage by cate

    Cell F3 formula

    HTML Code: 
    Cell G3 formula , drag down
    HTML Code: 

  5. #5
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,409

    Re: Write once a word written several times in another table and find a percentage by cate

    This:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    dragged down

    Could be this (maybe):
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    NOT dragged down (should spill)
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  6. #6
    Forum Expert wk9128's Avatar
    Join Date
    08-15-2020
    Location
    Taiwan
    MS-Off Ver
    365 V2403 and WPS V2022
    Posts
    3,393

    Re: Write once a word written several times in another table and find a percentage by cate

    @TMS'S You are right TQVM , almost forgot the most basic 365, SPILL features, 365 is still new to me (since July), Still discussing and groping
    Add REP. to you. But the Forum system says it can’t give the same person
    Last edited by wk9128; 10-07-2021 at 11:33 PM.

  7. #7
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,409

    Re: Write once a word written several times in another table and find a percentage by cate

    @wk9128: You're welcome.

  8. #8
    Registered User
    Join Date
    08-17-2021
    Location
    Israel, South
    MS-Off Ver
    Microsoft 365
    Posts
    11

    Re: Write once a word written several times in another table and find a percentage by cate

    tnx, you help me so much

  9. #9
    Registered User
    Join Date
    08-17-2021
    Location
    Israel, South
    MS-Off Ver
    Microsoft 365
    Posts
    11

    Re: Write once a word written several times in another table and find a percentage by cate

    Quote Originally Posted by TMS View Post
    This:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    dragged down

    Could be this (maybe):
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    NOT dragged down (should spill)
    What does the "#" sign do?

  10. #10
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,409

    Re: Write once a word written several times in another table and find a percentage by cate

    The formula in cell F3 is a dynamic array formula using the UNIQUE function. That will spill down an unknown number of rows. Using F3# allows you to refer to the whole spilled range, regardless of how many rows there are. Effectively, it makes the formula in G3 dynamic … so you don't need to drag the formula down.

  11. #11
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,409

    Re: Write once a word written several times in another table and find a percentage by cate

    If you are satisfied with the solution(s) provided, please mark your thread as Solved.


    New quick method:
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

    Or you can use this way:

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save


    You may also want to consider thanking those people who helped you by clicking on the little star at the bottom left of their reply to your question.

+ 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. Parser to Find Words in a Cell and Copy the Word(s) to pre-defined Category(cies)
    By ATL10SPRO in forum Excel Programming / VBA / Macros
    Replies: 21
    Last Post: 10-19-2020, 12:35 PM
  2. [SOLVED] Assign category where word from lookup table appears in string
    By phodges in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 10-20-2017, 09:33 AM
  3. Need code written to write word files that are checked to new word file
    By rhdean in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-20-2017, 03:11 AM
  4. Find percentage of times two adjacent cells have the same data
    By jamie_bisson in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 02-26-2013, 01:53 AM
  5. Filtering by text
    By saltarazan in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 01-16-2013, 04:18 AM
  6. [SOLVED] How do I write a formula to convert numbers to written text?
    By Jess in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-25-2006, 10:30 AM
  7. [SOLVED] Write a Help file for an excel application that I've written
    By Fred Russell in forum Excel General
    Replies: 5
    Last Post: 12-26-2005, 06:25 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