#### mcoll

##### New Member
Here's the thing:
I'm making a list of all threatened species found in Conservation Units of Sao Paulo (Brazil). There are a few categories that species can be included when we talk about their conservation status:
- EX (Extinct);
- EW (Extinct in the Wild);
- CR (Critically Endangered);
- EN (Endangered);
- VU (Vulnerable);

There are 11 criteria. Every threatened specie has one or more criteria that defines its conservation status. For example: Habenaria schwackei (Barb. Rodr.) has criteria 3, 4 and 9. Thus it is an EN (Endangered) specie.

To define which category the specie belongs, we consider the following criteria:
- If it presents Criterion 1 = EX
- If it presents Criterion 2 = EW
- If it presents Criteria 3 AND 4 AND X AND Y other criterias (both between 6 and 11) = CR
- If it presents (a) Criteria 3 AND 4 AND X other criterion (between 6 and 11) OR (b) Criteria 3 OR 4 AND X AND Y other criterias (both between 6 and 11) = EN
- If none of those = VU.

Is there a formula that can represent this idea on Excel?

Thanks a lot!

Last edited:

### Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).
It certainly should be possible with some IF statements, however, more information is needed.
How is your criteria stored in Excel now?
Are there 11 columns with some sort of marker in them:
i.e.
 Specie Status Criteria1 Criteria2 … Criteria11 A ?? YES NO NO

<TBODY>
</TBODY><COLGROUP><COL><COL><COL span=4></COLGROUP>

or is the Criteria data stored in a single cell as text
i.e.
 Specie Status Critiera B ?? 3,4,9

<TBODY>
</TBODY><COLGROUP><COL><COL><COL></COLGROUP>

This information is necessary to develop a solution without wasting time.

The criteria data is stored like this:

 Specie CR CR CR CR CR status A 3 4 9 ?? B 1 ?? C 3 4 9 ... 11 ??

<tbody>
</tbody>

All those "CR" are, actually, merged in one cell, called "Criteria"

I can arrange cells in your first arrangement suggested, if necessary. i.e.

 Specie Status Criteria1 Criteria2 … Criteria11 A ?? YES NO NO

<tbody>
</tbody>

Last edited:
OK, given you can adjust the data in columns A:L as I outline below, the following formula should work.
Formula pasted in cell M2 and dragged down
=IF(B2,"EX",IF(C2,"EW",IF(AND(D2,E2,SUMPRODUCT(--(G2:L2))>=2),"CR",IF(OR(AND(D2,E2,SUMPRODUCT(--(G2:L2))>=1),AND(OR(D2,E2),SUMPRODUCT(--(G2:L2))>=2)),"EN","VU"))))

 A B C D E F G H I J K L M 1 Specie Criteria1 Criteria2 Criteria3 Criteria4 Criteria5 Criteria6 Criteria7 Criteria8 Criteria9 Criteria10 Criteria11 Status 2 A TRUE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE EX 3 B FALSE TRUE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE EW 4 C FALSE FALSE TRUE TRUE FALSE FALSE FALSE TRUE FALSE FALSE TRUE CR 5 D FALSE FALSE TRUE FALSE FALSE FALSE FALSE TRUE FALSE FALSE TRUE EN 6 E FALSE FALSE TRUE TRUE FALSE TRUE FALSE FALSE FALSE FALSE FALSE EN 7 F FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE VU 8 G FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE VU 9 H FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE VU

<TBODY>
</TBODY>

Note: The FALSE values are unnecessary and for ease of reading, can be replaced with "", but the TRUE values must be the logical result of some formula and not a TEXT value of 'TRUE

Last edited:

Replies
3
Views
286
Replies
1
Views
399
Replies
2
Views
544
Replies
0
Views
271
Replies
1
Views
456

1,218,809
Messages
6,144,606
Members
450,559
Latest member
kwenda farai

### We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.

### Which adblocker are you using?

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

### Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

### Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back