+ Reply to Thread
Results 1 to 4 of 4

Compare two tables and have an output

  1. #1
    Registered User
    Join Date
    12-02-2016
    Location
    new york
    MS-Off Ver
    Office 2013
    Posts
    2

    Compare two tables and have an output

    Hi ,
    I'm fairly new to formulas and I want to compare two tables and have specific output
    Example:
    formula.PNG

    At the right I just want to have how many are yes and no for specific color.
    I've have tried with countif formula , but it's adding all counts for each color. Instead of matching how many are for red,blue,etc..
    Any help would be appreciated.

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    90,972

    Re: Compare two tables and have an output

    Try COUNTIFS instead:

    =COUNTIFS(criteria_range_1,criteria_1,criteria_range_2,criteria_2)

    So, something like:

    =COUNTIFS($B$4:$B$12,$E4,$C$4:$C$12,F$3)
    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. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    12-02-2016
    Location
    new york
    MS-Off Ver
    Office 2013
    Posts
    2

    Re: Compare two tables and have an output

    You're awesome!!!!
    That's the formula that I was looking for!

    Thank you!

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

    Re: Compare two tables and have an output

    And you're welcome!

+ 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. Compare values and output cell titles, able to output multiple results
    By TMG2016 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 05-07-2016, 11:42 AM
  2. how to compare 2 columns & output 3rd column
    By Babylon65 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 01-10-2016, 12:35 PM
  3. Compare and output
    By mathanraj76 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-18-2015, 10:44 AM
  4. Comparing Two Tables - Output Changes
    By Fishbone in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 02-10-2011, 06:32 PM
  5. Compare and give output
    By piriz in forum Excel General
    Replies: 2
    Last Post: 04-05-2007, 01:29 PM
  6. how to compare two columns and get a output from it
    By torajeshkg@hotmail.com in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-05-2006, 03:25 AM
  7. [SOLVED] How do I compare output data from 2 pivot tables in a graph forma.
    By Doobi in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 02-06-2005, 08:08 PM

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