+ Reply to Thread
Results 1 to 5 of 5

CountIF Values (Text) related to a Cell

  1. #1
    Registered User
    Join Date
    08-14-2019
    Location
    Montenegro
    MS-Off Ver
    MS Office 365 Version
    Posts
    16

    Question CountIF Values (Text) related to a Cell

    I need to count how many times an item went from a certain source, and afterwards from which source it went the most.
    Say...

    Source - Item
    Wallmart - Apple
    Wallmart - Apple
    Target - Apple
    Wallmart - Apple
    Newegg - Apple
    Wallmart - Apple
    Target - Apple

    How do I, on a new sheet add next to the cell with value "Apple", columns Wallmart/Target/Newegg, and how many times they appeared related to the value "Apple", or oranges etc.

    And/or, just return the "Source" that appeared the most related to the value Apple.
    If needed I can provide an actual file with example.

    Regards

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

    Re: CountIF Values (Text) related to a Cell

    Try using a Pivot Table.
    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


  3. #3
    Registered User
    Join Date
    08-14-2019
    Location
    Montenegro
    MS-Off Ver
    MS Office 365 Version
    Posts
    16

    Re: CountIF Values (Text) related to a Cell

    Quote Originally Posted by TMS View Post
    Try using a Pivot Table.
    Not familiar with Pivot Tables, and also it's not just "apples", for some ocassion there might be say 10k unique items.
    Any further advice?

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,830

    Re: CountIF Values (Text) related to a Cell

    Not without a more realistic set of sample data. What you have given us is overly simplified.

    Will you please attach a small sample Excel workbook? We are not able to work with or manipulate a picture of one and nobody wants to have to recreate your data from scratch.

    1. Make sure that your sample data are REPRESENTATIVE of your real data. The use of unrepresentative data is very frustrating and can lead to long delays in reaching a solution.

    2. Make sure that your desired results are also shown (mock up the results manually).

    3. Make sure that all confidential data is removed or replaced with dummy data first (e.g. names, addresses, E-mails, etc.).

    4. Try to avoid using merged cells as they cause lots of problems.

    Unfortunately the attachment icon doesn't work at the moment (it hasn't worked for years, and despite our repeatedly asking the technical team who own the forum to fix it, they can't be bothered to do so), so to attach an Excel file you have to do the following: just before posting, scroll down to Go Advanced and then scroll down to Manage Attachments. Now follow the instructions at the top of that screen.

    Please pay particular attention to point 2 (above): without an idea of your intended outcomes, it is often very difficult to offer appropriate advice.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  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,440

    Re: CountIF Values (Text) related to a Cell

    Not familiar with Pivot Tables, and also it's not just "apples", for some ocassion there might be say 10k unique items.
    Google: excel pivot table

    https://support.office.com/en-gb/art...9-f99134456576

+ 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] Cell with data bar and non-related text
    By Memphismark in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-28-2019, 10:15 AM
  2. COUNTIF formula to look up text values and the colour of the cell
    By twaccess in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 12-16-2015, 05:56 AM
  3. Replies: 0
    Last Post: 05-30-2012, 12:14 PM
  4. Add & Subtract Text related to another cell
    By Quagga in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-21-2011, 01:32 PM
  5. Lookup text related to the cell next to it
    By Quagga in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-20-2010, 04:48 PM
  6. finding text and displaying related values
    By reedburg in forum Excel General
    Replies: 6
    Last Post: 03-30-2009, 10:14 AM
  7. Summing values related to text strings
    By LACA in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-30-2008, 03:58 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