+ Reply to Thread
Results 1 to 13 of 13

How to match a row in a table and check if it contains a given value (COUNTIF + VLOOKUP)?

Hybrid View

  1. #1
    Registered User
    Join Date
    12-07-2022
    Location
    Hoorn
    MS-Off Ver
    2210 excel
    Posts
    22

    Re: How to match a row in a table and check if it contains a given value (COUNTIF + VLOOKU

    See attachement
    Attached Images Attached Images

  2. #2
    Spammer
    Join Date
    06-09-2014
    Location
    https://t.me/pump_upp
    MS-Off Ver
    Microst Office 365 Plus
    Posts
    149

    Re: How to match a row in a table and check if it contains a given value (COUNTIF + VLOOKU

    Thanks for the reply but actually I don't have to find the row containing the 22, I have the row ID and I have to check if the row contains the given number, i.e. does the row A contains the number 8? No. Does the row C contains the value 35? Yes. etc.

  3. #3
    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. 2406 (Windows 11 23H2 64-bit)
    Posts
    82,535

    Re: How to match a row in a table and check if it contains a given value (COUNTIF + VLOOKU

    Quote Originally Posted by MoldyBread View Post
    Thanks for the reply but actually I don't have to find the row containing the 22, I have the row ID and I have to check if the row contains the given number, i.e. does the row A contains the number 8? No. Does the row C contains the value 35? Yes. etc.
    Isn't that what my solution does??? Maybe you failed to spot it ...

    Your attempt seemed to have the range 2 to 6. If you want 22, use this:

    =LET(f,FILTER(B2:F4,A2:A4="B"),COUNT(FILTER(f,f=22)))
    Last edited by AliGW; 12-08-2022 at 07:49 AM.
    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.

  4. #4
    Spammer
    Join Date
    06-09-2014
    Location
    https://t.me/pump_upp
    MS-Off Ver
    Microst Office 365 Plus
    Posts
    149

    Re: How to match a row in a table and check if it contains a given value (COUNTIF + VLOOKU

    Quote Originally Posted by AliGW View Post
    Isn't that what my solution does??? Maybe you failed to spot it ...

    Your attempt seemed to have the range 2 to 6. If you want 22, use this:

    =LET(f,FILTER(B2:F4,A2:A4="B"),COUNT(FILTER(f,f=22)))
    Sorry, it was a reply for TDus

+ 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] Index,Match,CountIF Formula NOT working for removing duplicate rows frm Table- plz, Check?
    By sumans054 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-23-2019, 11:28 PM
  2. Replies: 4
    Last Post: 02-17-2019, 05:43 PM
  3. [SOLVED] CountIF and INDEX/MATCH or VLOOKUP or another?
    By er0_sennin in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 12-04-2018, 07:08 AM
  4. [SOLVED] Array, VLOOKUP - or- Match/index with a Countif.
    By JasonNeedsHelp in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-15-2015, 05:38 PM
  5. [SOLVED] COUNTIF integrated with a MATCH or VLOOKUP
    By jshaw82 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 03-22-2013, 05:48 PM
  6. Replies: 2
    Last Post: 03-16-2012, 12:03 PM
  7. COUNTIF/VLOOKUP/MATCH combination
    By gmcana in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-03-2008, 04:32 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