+ Reply to Thread
Results 1 to 4 of 4

Check for two data values with prerequisites

  1. #1
    Registered User
    Join Date
    07-18-2016
    Location
    Germany
    MS-Off Ver
    2007
    Posts
    5

    Check for two data values with prerequisites

    Hello everyone,

    I have a problem finding a decent solution to write a function that checks for a combination of values in two different columns, but only if a certain value is existing in a 3rd column in that same row. As i have some problems describing the problem, i've just tried to build an example (picture-link bellow)

    http://s75i.imgup.net/Excelquest704c.jpg

    So I am trying to build a function that checks which colors and sizes of a specific shirt-type are available. It's not important to count results or get ammounts or anything - a "simple" does the combination of shirt-type, size and color exist (x) or not ( )

    Hope i could make my question clear. thanks for all help already in advance
    Attached Files Attached Files
    Last edited by Kalestu; 07-18-2016 at 03:47 AM.

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

    Re: Check for two data values with prerequisites

    With your results table in E1 to I9, this in G2, copied across and down three rows:

    =IF(COUNTIFS($A$2:$A$16,$E$2,$B$2:$B$16,$F2,$C$2:$C$16,G$1)>0,"x","")

    and this in G6:

    =IF(COUNTIFS($A$2:$A$16,$E$6,$B$2:$B$16,$F2,$C$2:$C$16,G$1)>0,"x","")
    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.

  3. #3
    Registered User
    Join Date
    07-18-2016
    Location
    Germany
    MS-Off Ver
    2007
    Posts
    5

    Re: Check for two data values with prerequisites

    Mhh...that's a completely different and way more simple approach than anything i tried so far - works great - thanks

  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
    79,333

    Re: Check for two data values with prerequisites

    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. possible to check for file in multiple folders, then check for values in specific cells?
    By mattheritage in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-04-2014, 08:33 AM
  2. Replies: 5
    Last Post: 10-26-2013, 01:03 PM
  3. Formula to check unique values based on data from 2 columns
    By notsobrilliant in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-10-2013, 04:15 PM
  4. Summing of cells of different sheets that meet prerequisites
    By Krsta_Kljaic in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-25-2013, 02:07 PM
  5. Formula to check values based on Category data
    By Excel_R in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-30-2011, 07:07 AM
  6. Replies: 0
    Last Post: 05-16-2011, 09:48 AM
  7. copying data into worksheet based on check box values
    By JESSIER4025 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-02-2010, 08:49 AM
  8. MVP Prerequisites/requirements
    By roadkill in forum Excel General
    Replies: 4
    Last Post: 04-04-2006, 02:40 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