View Single Post
  #6   Report Post  
Aladin Akyurek
 
Posts: n/a
Default

=SUMPRODUCT(--($D$1:$D$798="City"),--(ISNUMBER(MATCH(TRIM($C$1:$C$798),{"11-190-12",
"11-190-5", "11-190-6", "11-190-7"},0)))

Steved wrote:
Hello from Steved

"11-190" is type of vehicle

"11-190-12", "11-190-5", "11-190-6", "11-190-7"
Can the above be incorporated into the formula below.

=SUMPRODUCT(--($D$1:$D$798="City"),--(TRIM($C$1:$C$798)="11-190"))

Thankyou.


--

[1] The SumProduct function should implicitly coerce the truth values to
their Excel numeric equivalents.
[2] The lookup functions should have an optional argument for the return
value, defaulting to #N/A in its absence.