Question: Let's say that i have an array:

```
   |A  B  C  D
---------------
1  |2  8  6  3
2  |1  2  5  2

```

Where first row stand for "Goals Scored" and the second row for "Goals Lost". Columns stands for games/matches

I want to find the maximum total number of goals scored and lost in one match. In case above it would be 11 (C1 + C2). 

I don't want to use

I spent few days trying functions like: MAX, ADDRESS, CELL, SUBTOTAL, SUM, MMULT, TRANSPOSE, etc. and even combined but i didn't get satisfying result.

Answer: 
To anyone who is interested I have now solved this using:

```html
<?php $term_list = wp_get_post_terms($post->ID, 'department', array("fields" => "all")); ?>
```

and by using 

```html
<?php echo $term_list[0]->slug ;  ?>
```

as class name.

Thanks
You can solve this problem by this code also,
Put this code inside while loop, 'portfolio\_category' is custom taxonomy name

```
$terms = get_the_terms( $post->ID, 'portfolio_category' );  

                            if ( $terms && ! is_wp_error( $terms ) ) : 
                                 $links = array();
                                 foreach ( $terms as $term ) {
                                     $links[] = $term->name;
                                 }
                                 $tax_links = join( " ", str_replace(' ', '-', $links));          
                                 $tax = strtolower($tax_links);
                             else : 
                             $tax = '';                 
                             endif; 

```