Forum Discussion

RmLaMont's avatar
RmLaMont
Copper Contributor
Apr 10, 2023
Solved

Formula Help

I have a formula working and returning the correct value. What I need now is to add 1 more condition based on a value from column F from the 'Test Set Test Cases' tab. 

 

The below resolves to a correct value, but I need to add an additional condition to the formula - I want this to resolve when column F from the 'Test Set Test Cases' tab = "SCM". How do I add this condition to the below statement? Hopefully, I explained this correctly. 

 

IF(ISBLANK(D7),"", COUNTIF ('Test Set Test Cases'!I:I,'Day by Day (2)'!$D7))

 

I'm struggling so I need another set of eyes or ideas. Your help is appreciated.

 

Thanks!

  • sounds like you want:
    IF(ISBLANK(D7),"", COUNTIFS ('Test Set Test Cases'!I:I,'Day by Day (2)'!$D7, 'Test Set Test Cases'!F:F, "SCM" ))
    notice I changed from COUNTIF to COUNTIFS
  • RmLaMont 

    You can use COUNTIFS instead of COUNTIF:

     

    =IF(ISBLANK(D7), "", COUNTIFS('Test Set Test Cases'!I:I, 'Day by Day (2)'!$D7, 'Test Set Test Cases'!F:F, "SCM"))

    • RmLaMont's avatar
      RmLaMont
      Copper Contributor
      Thank you very much. So glad there is a community like this!
  • mtarler's avatar
    mtarler
    Silver Contributor
    sounds like you want:
    IF(ISBLANK(D7),"", COUNTIFS ('Test Set Test Cases'!I:I,'Day by Day (2)'!$D7, 'Test Set Test Cases'!F:F, "SCM" ))
    notice I changed from COUNTIF to COUNTIFS

Resources