Hi
Could someone help me with a formula please. I had it all working correctly but the customer now wants to check for multiple conditions and this is where I'm stuck.
I have a worksheet that contains several thousand rows of data and I want to be able to:
1) check column AI to count all records where the date falls between the dates specified in cells A3 and A4
2) when its found these records I want to be able to check column AJ (which contains a location that a test was taken at) to see if the values match the text in cell B3
3) I then need to check whether any of the values in column AR (test result) match either cells C4, C5 OR C6 and count the number that do. For each individual test type, the test result could be either C4, C5 or C6 - I just need a count of how many of any of these test results it finds for the location and date specified.
4) Finally I need to then find all values in column AL (test type) that match the value in cell D4
I managed to get it working on just one of the conditions in point 3 as you can see from the formula below but I can't work out how to check for either of the other conditions in point 3 as well.
=COUNTIFS('Test Requests & Results DTEX'!$AI$2:$AI$27,">="&$A$3,'Test Requests & Results DTEX'!$AI$2:$AI$27,"<="&$A$4,'Test Requests & Results DTEX'!$AJ$2:$AJ$27,"="&$B$3,'Test Requests & Results DTEX'!$AR$2:$AR$27,"="&'Calcs 2018'!$C$4,'Test Requests & Results DTEX'!$AL$2:$AL$27,"="&$D4)
Unfortunately I'm a bit restricted on what I can use e.g. no VBA as out client's IT department will not allow this.
I'd be really grateful for any help.
Could someone help me with a formula please. I had it all working correctly but the customer now wants to check for multiple conditions and this is where I'm stuck.
I have a worksheet that contains several thousand rows of data and I want to be able to:
1) check column AI to count all records where the date falls between the dates specified in cells A3 and A4
2) when its found these records I want to be able to check column AJ (which contains a location that a test was taken at) to see if the values match the text in cell B3
3) I then need to check whether any of the values in column AR (test result) match either cells C4, C5 OR C6 and count the number that do. For each individual test type, the test result could be either C4, C5 or C6 - I just need a count of how many of any of these test results it finds for the location and date specified.
4) Finally I need to then find all values in column AL (test type) that match the value in cell D4
I managed to get it working on just one of the conditions in point 3 as you can see from the formula below but I can't work out how to check for either of the other conditions in point 3 as well.
=COUNTIFS('Test Requests & Results DTEX'!$AI$2:$AI$27,">="&$A$3,'Test Requests & Results DTEX'!$AI$2:$AI$27,"<="&$A$4,'Test Requests & Results DTEX'!$AJ$2:$AJ$27,"="&$B$3,'Test Requests & Results DTEX'!$AR$2:$AR$27,"="&'Calcs 2018'!$C$4,'Test Requests & Results DTEX'!$AL$2:$AL$27,"="&$D4)
Unfortunately I'm a bit restricted on what I can use e.g. no VBA as out client's IT department will not allow this.
I'd be really grateful for any help.